Class used to check attributes. More...
Public Types | |
enum | Test_e { TEST_A , TEST_B , TEST_C } |
Test enumerator. More... | |
enum class | Test_ec { TEST_D , TEST_E , TEST_F } |
Test enumerator. More... | |
Public Member Functions | |
AttributeObjectTest () | |
~AttributeObjectTest () override | |
void | AddToMap1 (uint32_t i) |
Adds an object to the first map. More... | |
void | AddToUnorderedMap (uint64_t i) |
Adds an object to the unordered map. More... | |
void | AddToVector1 () |
Add an object to the first vector. More... | |
void | AddToVector2 () |
Add an object to the second vector. More... | |
void | InvokeCb (double a, int b, float c) |
Invoke the m_cb callback. More... | |
void | InvokeCbValue (int8_t a) |
Invoke the m_cbValue callback. More... | |
void | RemoveFromUnorderedMap (uint64_t i) |
Remove an object from the first map. More... | |
Public Member Functions inherited from ns3::Object | |
Object () | |
Constructor. More... | |
~Object () override | |
Destructor. More... | |
void | AggregateObject (Ptr< Object > other) |
Aggregate two Objects together. More... | |
void | Dispose () |
Dispose of this Object. More... | |
AggregateIterator | GetAggregateIterator () const |
Get an iterator to the Objects aggregated to this one. More... | |
TypeId | GetInstanceTypeId () const override |
Get the most derived TypeId for this Object. More... | |
template<typename T > | |
Ptr< T > | GetObject () const |
Get a pointer to the requested aggregated Object. More... | |
template<> | |
Ptr< Object > | GetObject () const |
Specialization of () for objects of type ns3::Object. More... | |
template<typename T > | |
Ptr< T > | GetObject (TypeId tid) const |
Get a pointer to the requested aggregated Object by TypeId. More... | |
template<> | |
Ptr< Object > | GetObject (TypeId tid) const |
Specialization of (TypeId tid) for objects of type ns3::Object. More... | |
void | Initialize () |
Invoke DoInitialize on all Objects aggregated to this one. More... | |
bool | IsInitialized () const |
Check if the object has been initialized. More... | |
Public Member Functions inherited from ns3::SimpleRefCount< Object, ObjectBase, ObjectDeleter > | |
SimpleRefCount () | |
Default constructor. More... | |
SimpleRefCount (const SimpleRefCount &o[[maybe_unused]]) | |
Copy constructor. More... | |
uint32_t | GetReferenceCount () const |
Get the reference count of the object. More... | |
SimpleRefCount & | operator= (const SimpleRefCount &o[[maybe_unused]]) |
Assignment operator. More... | |
void | Ref () const |
Increment the reference count. More... | |
void | Unref () const |
Decrement the reference count. More... | |
Public Member Functions inherited from ns3::ObjectBase | |
virtual | ~ObjectBase () |
Virtual destructor. More... | |
void | GetAttribute (std::string name, AttributeValue &value) const |
Get the value of an attribute, raising fatal errors if unsuccessful. More... | |
bool | GetAttributeFailSafe (std::string name, AttributeValue &value) const |
Get the value of an attribute without raising errors. More... | |
void | SetAttribute (std::string name, const AttributeValue &value) |
Set a single attribute, raising fatal errors if unsuccessful. More... | |
bool | SetAttributeFailSafe (std::string name, const AttributeValue &value) |
Set a single attribute without raising errors. More... | |
bool | TraceConnect (std::string name, std::string context, const CallbackBase &cb) |
Connect a TraceSource to a Callback with a context. More... | |
bool | TraceConnectWithoutContext (std::string name, const CallbackBase &cb) |
Connect a TraceSource to a Callback without a context. More... | |
bool | TraceDisconnect (std::string name, std::string context, const CallbackBase &cb) |
Disconnect from a TraceSource a Callback previously connected with a context. More... | |
bool | TraceDisconnectWithoutContext (std::string name, const CallbackBase &cb) |
Disconnect from a TraceSource a Callback previously connected without a context. More... | |
Static Public Member Functions | |
static TypeId | GetTypeId () |
Get the type ID. More... | |
Static Public Member Functions inherited from ns3::Object | |
static TypeId | GetTypeId () |
Register this type. More... | |
Static Public Member Functions inherited from ns3::ObjectBase | |
static TypeId | GetTypeId () |
Get the type ID. More... | |
Private Types | |
typedef void(* | NumericTracedCallback) (double, int, float) |
Traced callbacks for (double, int, float) values. More... | |
Private Member Functions | |
Test_e | DoGetEnum () const |
Get the m_enumSetGet value. More... | |
Test_ec | DoGetEnumClass () const |
Get the m_enumClassSetGet value. More... | |
int16_t | DoGetInt16 () const |
Get the m_int16SetGet value. More... | |
int8_t | DoGetIntSrc () const |
Get the m_intSrc2 value. More... | |
bool | DoGetTestA () const |
Get the m_boolTestA value. More... | |
Ptr< Derived > | DoGetVector (std::size_t i) const |
Get the i-th item of m_vector2. More... | |
std::size_t | DoGetVectorN () const |
Get the length of m_vector2. More... | |
bool | DoSetEnum (Test_e v) |
Set the m_enumSetGet value. More... | |
bool | DoSetEnumClass (Test_ec v) |
Set the m_enumClassSetGet value. More... | |
void | DoSetInt16 (int16_t v) |
Set the m_int16SetGet value. More... | |
bool | DoSetIntSrc (int8_t v) |
Set the m_intSrc2 value. More... | |
void | DoSetTestA (bool v) |
Set the m_boolTestA value. More... | |
Private Attributes | |
TracedValue< bool > | m_boolSrc |
bool Traced value. More... | |
bool | m_boolTest |
Boolean test. More... | |
bool | m_boolTestA |
Boolean test A. More... | |
bool | m_boolTestDeprecated |
Boolean test deprecated. More... | |
TracedCallback< double, int, float > | m_cb |
TracedCallback (double, int, float). More... | |
Callback< void, int8_t > | m_cbValue |
Callback accepting an integer. More... | |
TracedValue< double > | m_doubleSrc |
double Traced value. More... | |
Test_e | m_enum |
Enum. More... | |
Test_ec | m_enumclass |
Enum class. More... | |
Test_ec | m_enumClassSetGet |
Enum class set-get. More... | |
Test_e | m_enumSetGet |
Enum set-get. More... | |
TracedValue< Test_e > | m_enumSrc |
enum Traced value. More... | |
float | m_float |
float. More... | |
int16_t | m_int16 |
16-bit integer. More... | |
int16_t | m_int16SetGet |
16-bit integer set-get. More... | |
int16_t | m_int16WithBounds |
16-bit integer with bounds. More... | |
TracedValue< int8_t > | m_intSrc1 |
First int8_t Traced value. More... | |
TracedValue< int8_t > | m_intSrc2 |
Second int8_t Traced value. More... | |
std::map< uint32_t, Ptr< Derived > > | m_map1 |
Map of uint32_t, derived objects. More... | |
Ptr< Derived > | m_ptr |
Pointer to Derived class. More... | |
Ptr< Derived > | m_ptrInitialized |
Pointer to Derived class. More... | |
Ptr< Derived > | m_ptrInitialized2 |
Pointer to Derived class. More... | |
Ptr< RandomVariableStream > | m_random |
Random number generator. More... | |
Time | m_timeWithBounds |
Time with bounds. More... | |
uint8_t | m_uint8 |
8-bit integer. More... | |
TracedValue< uint8_t > | m_uintSrc |
uint8_t Traced value. More... | |
std::unordered_map< uint64_t, Ptr< Derived > > | m_unorderedMap |
Unordered map of uint64_t, derived objects. More... | |
TracedValue< ValueClassTest > | m_valueSrc |
ValueClassTest Traced value. More... | |
std::vector< Ptr< Derived > > | m_vector1 |
First vector of derived objects. More... | |
std::vector< Ptr< Derived > > | m_vector2 |
Second vector of derived objects. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from ns3::Object | |
Object (const Object &o) | |
Copy an Object. More... | |
virtual void | DoDispose () |
Destructor implementation. More... | |
virtual void | DoInitialize () |
Initialize() implementation. More... | |
virtual void | NotifyNewAggregate () |
Notify all Objects aggregated to this one of a new Object being aggregated. More... | |
Protected Member Functions inherited from ns3::ObjectBase | |
void | ConstructSelf (const AttributeConstructionList &attributes) |
Complete construction of ObjectBase; invoked by derived classes. More... | |
virtual void | NotifyConstructionCompleted () |
Notifier called once the ObjectBase is fully constructed. More... | |
Related Functions inherited from ns3::ObjectBase | |
static TypeId | GetObjectIid () |
Ensure the TypeId for ObjectBase gets fully configured to anchor the inheritance tree properly. More... | |
Class used to check attributes.
Definition at line 149 of file attribute-test-suite.cc.
|
private |
Traced callbacks for (double, int, float) values.
Definition at line 568 of file attribute-test-suite.cc.
Test enumerator.
Enumerator | |
---|---|
TEST_A | Test value A. |
TEST_B | Test value B. |
TEST_C | Test value C. |
Definition at line 153 of file attribute-test-suite.cc.
|
strong |
Test enumerator.
Enumerator | |
---|---|
TEST_D | Test value D. |
TEST_E | Test value E. |
TEST_F | Test value F. |
Definition at line 161 of file attribute-test-suite.cc.
|
inline |
Definition at line 359 of file attribute-test-suite.cc.
|
inlineoverride |
Definition at line 363 of file attribute-test-suite.cc.
|
inline |
Adds an object to the first map.
i | The index to assign to the object. |
Definition at line 383 of file attribute-test-suite.cc.
|
inline |
Adds an object to the unordered map.
i | The index to assign to the object. |
Definition at line 392 of file attribute-test-suite.cc.
|
inline |
Add an object to the first vector.
Definition at line 368 of file attribute-test-suite.cc.
|
inline |
Add an object to the second vector.
Definition at line 374 of file attribute-test-suite.cc.
|
inlineprivate |
Get the m_enumSetGet value.
Definition at line 520 of file attribute-test-suite.cc.
Referenced by GetTypeId().
|
inlineprivate |
Get the m_enumClassSetGet value.
Definition at line 540 of file attribute-test-suite.cc.
Referenced by GetTypeId().
|
inlineprivate |
Get the m_int16SetGet value.
Definition at line 452 of file attribute-test-suite.cc.
Referenced by GetTypeId().
|
inlineprivate |
Get the m_intSrc2 value.
Definition at line 500 of file attribute-test-suite.cc.
Referenced by GetTypeId().
|
inlineprivate |
Get the m_boolTestA value.
Definition at line 443 of file attribute-test-suite.cc.
Referenced by GetTypeId().
Get the i-th item of m_vector2.
i | The index of the element to get. |
Definition at line 480 of file attribute-test-suite.cc.
Referenced by GetTypeId().
|
inlineprivate |
Get the length of m_vector2.
Definition at line 470 of file attribute-test-suite.cc.
Referenced by GetTypeId().
|
inlineprivate |
Set the m_enumSetGet value.
v | The value to set. |
Definition at line 510 of file attribute-test-suite.cc.
Referenced by GetTypeId().
|
inlineprivate |
Set the m_enumClassSetGet value.
v | The value to set. |
Definition at line 530 of file attribute-test-suite.cc.
Referenced by GetTypeId().
|
inlineprivate |
Set the m_int16SetGet value.
v | The value to set. |
Definition at line 461 of file attribute-test-suite.cc.
Referenced by GetTypeId().
|
inlineprivate |
Set the m_intSrc2 value.
v | The value to set. |
Definition at line 490 of file attribute-test-suite.cc.
Referenced by GetTypeId().
|
inlineprivate |
Set the m_boolTestA value.
v | The value to set. |
Definition at line 434 of file attribute-test-suite.cc.
Referenced by GetTypeId().
|
inlinestatic |
Get the type ID.
Definition at line 172 of file attribute-test-suite.cc.
References ns3::TypeId::AddConstructor(), ns3::TypeId::DEPRECATED, DoGetEnum(), DoGetEnumClass(), DoGetInt16(), DoGetIntSrc(), DoGetTestA(), DoGetVector(), DoGetVectorN(), DoSetEnum(), DoSetEnumClass(), DoSetInt16(), DoSetIntSrc(), DoSetTestA(), m_boolSrc, m_boolTest, m_boolTestDeprecated, m_cb, m_cbValue, m_doubleSrc, m_enum, m_enumclass, m_enumSrc, m_float, m_int16, m_int16WithBounds, m_intSrc1, m_map1, m_ptr, m_ptrInitialized, m_ptrInitialized2, m_random, m_timeWithBounds, m_uint8, m_uintSrc, m_unorderedMap, m_valueSrc, m_vector1, ns3::MakeBooleanAccessor(), ns3::MakeBooleanChecker(), ns3::MakeCallbackAccessor(), ns3::MakeCallbackChecker(), ns3::MakeDoubleAccessor(), ns3::MakeEnumChecker(), ns3::MakeIntegerAccessor(), ns3::MakeObjectMapAccessor(), ns3::MakeObjectVectorAccessor(), ns3::MakePointerAccessor(), ns3::MakeTimeAccessor(), ns3::MakeTimeChecker(), ns3::MakeTraceSourceAccessor(), ns3::MakeUintegerAccessor(), and ns3::Seconds().
|
inline |
Invoke the m_cb callback.
a | The first argument of the callback. |
b | The second argument of the callback. |
c | The third argument of the callback. |
Definition at line 412 of file attribute-test-suite.cc.
|
inline |
Invoke the m_cbValue callback.
a | The argument of the callback. |
Definition at line 421 of file attribute-test-suite.cc.
|
inline |
Remove an object from the first map.
i | The index to assign to the object. |
Definition at line 401 of file attribute-test-suite.cc.
|
private |
bool Traced value.
Definition at line 577 of file attribute-test-suite.cc.
Referenced by GetTypeId().
|
private |
|
private |
Boolean test A.
Definition at line 545 of file attribute-test-suite.cc.
|
private |
Boolean test deprecated.
Definition at line 547 of file attribute-test-suite.cc.
Referenced by GetTypeId().
|
private |
TracedCallback (double, int, float).
Definition at line 569 of file attribute-test-suite.cc.
Referenced by GetTypeId().
|
private |
Callback accepting an integer.
Definition at line 563 of file attribute-test-suite.cc.
Referenced by GetTypeId().
|
private |
double Traced value.
Definition at line 576 of file attribute-test-suite.cc.
Referenced by GetTypeId().
|
private |
|
private |
|
private |
Enum class set-get.
Definition at line 556 of file attribute-test-suite.cc.
|
private |
Enum set-get.
Definition at line 554 of file attribute-test-suite.cc.
|
private |
enum Traced value.
Definition at line 575 of file attribute-test-suite.cc.
Referenced by GetTypeId().
|
private |
|
private |
|
private |
16-bit integer set-get.
Definition at line 550 of file attribute-test-suite.cc.
|
private |
16-bit integer with bounds.
Definition at line 549 of file attribute-test-suite.cc.
Referenced by GetTypeId().
|
private |
First int8_t Traced value.
Definition at line 564 of file attribute-test-suite.cc.
Referenced by GetTypeId().
|
private |
Second int8_t Traced value.
Definition at line 565 of file attribute-test-suite.cc.
Map of uint32_t, derived objects.
Definition at line 560 of file attribute-test-suite.cc.
Referenced by GetTypeId().
Pointer to Derived class.
Definition at line 571 of file attribute-test-suite.cc.
Referenced by GetTypeId().
Pointer to Derived class.
Definition at line 572 of file attribute-test-suite.cc.
Referenced by GetTypeId().
Pointer to Derived class.
Definition at line 573 of file attribute-test-suite.cc.
Referenced by GetTypeId().
|
private |
Random number generator.
Definition at line 557 of file attribute-test-suite.cc.
Referenced by GetTypeId().
|
private |
Time with bounds.
Definition at line 578 of file attribute-test-suite.cc.
Referenced by GetTypeId().
|
private |
|
private |
uint8_t Traced value.
Definition at line 574 of file attribute-test-suite.cc.
Referenced by GetTypeId().
Unordered map of uint64_t, derived objects.
Definition at line 562 of file attribute-test-suite.cc.
Referenced by GetTypeId().
|
private |
ValueClassTest Traced value.
Definition at line 570 of file attribute-test-suite.cc.
Referenced by GetTypeId().
First vector of derived objects.
Definition at line 558 of file attribute-test-suite.cc.
Referenced by GetTypeId().
Second vector of derived objects.
Definition at line 559 of file attribute-test-suite.cc.