A Discrete-Event Network Simulator
API
AttributeObjectTest Class Reference
+ Inheritance diagram for AttributeObjectTest:
+ Collaboration diagram for AttributeObjectTest:

Public Types

enum  Test_e { TEST_A, TEST_B, TEST_C }
 

Public Member Functions

 AttributeObjectTest (void)
 
virtual ~AttributeObjectTest (void)
 
void AddToMap1 (uint32_t i)
 
void AddToVector1 (void)
 
void AddToVector2 (void)
 
void InvokeCb (double a, int b, float c)
 
void InvokeCbValue (int8_t a)
 
- Public Member Functions inherited from ns3::Object
 Object ()
 Constructor. More...
 
virtual ~Object ()
 Destructor. More...
 
void AggregateObject (Ptr< Object > other)
 Aggregate two Objects together. More...
 
void Dispose (void)
 Dispose of this Object. More...
 
AggregateIterator GetAggregateIterator (void) const
 Get an iterator to the Objects aggregated to this one. More...
 
virtual TypeId GetInstanceTypeId (void) const
 Get the most derived TypeId for this Object. More...
 
template<typename T >
Ptr< T > GetObject (void) const
 Get a pointer to the requested aggregated Object. More...
 
template<typename T >
Ptr< T > GetObject (TypeId tid) const
 Get a pointer to the requested aggregated Object by TypeId. More...
 
template<>
Ptr< ObjectGetObject () const
 
template<>
Ptr< ObjectGetObject (TypeId tid) const
 
void Initialize (void)
 Invoke DoInitialize on all Objects aggregated to this one. More...
 
bool IsInitialized (void) 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)
 Copy constructor. More...
 
uint32_t GetReferenceCount (void) const
 Get the reference count of the object. More...
 
SimpleRefCountoperator= (const SimpleRefCount &o)
 Assignment operator. More...
 
void Ref (void) const
 Increment the reference count. More...
 
void Unref (void) 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 erros. 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 (void)
 
- Static Public Member Functions inherited from ns3::Object
static TypeId GetTypeId (void)
 Register this type. More...
 
- Static Public Member Functions inherited from ns3::ObjectBase
static TypeId GetTypeId (void)
 Get the type ID. More...
 

Private Types

typedef void(* NumericTracedCallback) (double, int, float)
 

Private Member Functions

Test_e DoGetEnum (void) const
 
int16_t DoGetInt16 (void) const
 
int8_t DoGetIntSrc (void) const
 
bool DoGetTestB (void) const
 
Ptr< DerivedDoGetVector (std::size_t i) const
 
std::size_t DoGetVectorN (void) const
 
bool DoSetEnum (Test_e v)
 
void DoSetInt16 (int16_t v)
 
bool DoSetIntSrc (int8_t v)
 
void DoSetTestB (bool v)
 

Private Attributes

TracedValue< bool > m_boolSrc
 
bool m_boolTest
 
bool m_boolTestA
 
TracedCallback< double, int, float > m_cb
 
Callback< void, int8_t > m_cbValue
 
TracedValue< double > m_doubleSrc
 
enum Test_e m_enum
 
enum Test_e m_enumSetGet
 
TracedValue< enum Test_em_enumSrc
 
float m_float
 
int16_t m_int16
 
int16_t m_int16SetGet
 
int16_t m_int16WithBounds
 
TracedValue< int8_t > m_intSrc1
 
TracedValue< int8_t > m_intSrc2
 
std::map< uint32_t, Ptr< Derived > > m_map1
 
Ptr< Derivedm_ptr
 
Ptr< Derivedm_ptrInitialized
 
Ptr< Derivedm_ptrInitialized2
 
Ptr< RandomVariableStreamm_random
 
Time m_timeWithBounds
 
uint8_t m_uint8
 
TracedValue< uint8_t > m_uintSrc
 
TracedValue< ValueClassTestm_valueSrc
 
std::vector< Ptr< Derived > > m_vector1
 
std::vector< Ptr< Derived > > m_vector2
 

Additional Inherited Members

- Protected Member Functions inherited from ns3::Object
 Object (const Object &o)
 Copy an Object. More...
 
virtual void DoDispose (void)
 Destructor implementation. More...
 
virtual void DoInitialize (void)
 Initialize() implementation. More...
 
virtual void NotifyNewAggregate (void)
 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 (void)
 Notifier called once the ObjectBase is fully constructed. More...
 

Detailed Description

Definition at line 98 of file attribute-test-suite.cc.

Member Typedef Documentation

◆ NumericTracedCallback

typedef void(* AttributeObjectTest::NumericTracedCallback) (double, int, float)
private

Definition at line 338 of file attribute-test-suite.cc.

Member Enumeration Documentation

◆ Test_e

Enumerator
TEST_A 
TEST_B 
TEST_C 

Definition at line 101 of file attribute-test-suite.cc.

Constructor & Destructor Documentation

◆ AttributeObjectTest()

AttributeObjectTest::AttributeObjectTest ( void  )
inline

Definition at line 236 of file attribute-test-suite.cc.

References NS_UNUSED.

◆ ~AttributeObjectTest()

virtual AttributeObjectTest::~AttributeObjectTest ( void  )
inlinevirtual

Definition at line 247 of file attribute-test-suite.cc.

Member Function Documentation

◆ AddToMap1()

void AttributeObjectTest::AddToMap1 ( uint32_t  i)
inline

Definition at line 259 of file attribute-test-suite.cc.

Referenced by ObjectMapAttributeTestCase::DoRun().

+ Here is the caller graph for this function:

◆ AddToVector1()

void AttributeObjectTest::AddToVector1 ( void  )
inline

Definition at line 250 of file attribute-test-suite.cc.

Referenced by ObjectVectorAttributeTestCase::DoRun().

+ Here is the caller graph for this function:

◆ AddToVector2()

void AttributeObjectTest::AddToVector2 ( void  )
inline

Definition at line 254 of file attribute-test-suite.cc.

◆ DoGetEnum()

Test_e AttributeObjectTest::DoGetEnum ( void  ) const
inlineprivate

Definition at line 316 of file attribute-test-suite.cc.

Referenced by GetTypeId().

+ Here is the caller graph for this function:

◆ DoGetInt16()

int16_t AttributeObjectTest::DoGetInt16 ( void  ) const
inlineprivate

Definition at line 286 of file attribute-test-suite.cc.

Referenced by GetTypeId().

+ Here is the caller graph for this function:

◆ DoGetIntSrc()

int8_t AttributeObjectTest::DoGetIntSrc ( void  ) const
inlineprivate

Definition at line 307 of file attribute-test-suite.cc.

Referenced by GetTypeId().

+ Here is the caller graph for this function:

◆ DoGetTestB()

bool AttributeObjectTest::DoGetTestB ( void  ) const
inlineprivate

Definition at line 282 of file attribute-test-suite.cc.

Referenced by GetTypeId().

+ Here is the caller graph for this function:

◆ DoGetVector()

Ptr<Derived> AttributeObjectTest::DoGetVector ( std::size_t  i) const
inlineprivate

Definition at line 298 of file attribute-test-suite.cc.

Referenced by GetTypeId().

+ Here is the caller graph for this function:

◆ DoGetVectorN()

std::size_t AttributeObjectTest::DoGetVectorN ( void  ) const
inlineprivate

Definition at line 294 of file attribute-test-suite.cc.

Referenced by GetTypeId().

+ Here is the caller graph for this function:

◆ DoSetEnum()

bool AttributeObjectTest::DoSetEnum ( Test_e  v)
inlineprivate

Definition at line 311 of file attribute-test-suite.cc.

Referenced by GetTypeId().

+ Here is the caller graph for this function:

◆ DoSetInt16()

void AttributeObjectTest::DoSetInt16 ( int16_t  v)
inlineprivate

Definition at line 290 of file attribute-test-suite.cc.

Referenced by GetTypeId().

+ Here is the caller graph for this function:

◆ DoSetIntSrc()

bool AttributeObjectTest::DoSetIntSrc ( int8_t  v)
inlineprivate

Definition at line 302 of file attribute-test-suite.cc.

Referenced by GetTypeId().

+ Here is the caller graph for this function:

◆ DoSetTestB()

void AttributeObjectTest::DoSetTestB ( bool  v)
inlineprivate

Definition at line 278 of file attribute-test-suite.cc.

Referenced by GetTypeId().

+ Here is the caller graph for this function:

◆ GetTypeId()

◆ InvokeCb()

void AttributeObjectTest::InvokeCb ( double  a,
int  b,
float  c 
)
inline

Definition at line 264 of file attribute-test-suite.cc.

Referenced by TracedCallbackTestCase::DoRun().

+ Here is the caller graph for this function:

◆ InvokeCbValue()

void AttributeObjectTest::InvokeCbValue ( int8_t  a)
inline

Definition at line 269 of file attribute-test-suite.cc.

Referenced by CallbackValueTestCase::DoRun().

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_boolSrc

TracedValue<bool> AttributeObjectTest::m_boolSrc
private

Definition at line 347 of file attribute-test-suite.cc.

Referenced by GetTypeId().

◆ m_boolTest

bool AttributeObjectTest::m_boolTest
private

Definition at line 322 of file attribute-test-suite.cc.

Referenced by GetTypeId().

◆ m_boolTestA

bool AttributeObjectTest::m_boolTestA
private

Definition at line 321 of file attribute-test-suite.cc.

◆ m_cb

TracedCallback<double, int, float> AttributeObjectTest::m_cb
private

Definition at line 339 of file attribute-test-suite.cc.

Referenced by GetTypeId().

◆ m_cbValue

Callback<void,int8_t> AttributeObjectTest::m_cbValue
private

Definition at line 334 of file attribute-test-suite.cc.

Referenced by GetTypeId().

◆ m_doubleSrc

TracedValue<double> AttributeObjectTest::m_doubleSrc
private

Definition at line 346 of file attribute-test-suite.cc.

Referenced by GetTypeId().

◆ m_enum

enum Test_e AttributeObjectTest::m_enum
private

Definition at line 328 of file attribute-test-suite.cc.

Referenced by GetTypeId().

◆ m_enumSetGet

enum Test_e AttributeObjectTest::m_enumSetGet
private

Definition at line 329 of file attribute-test-suite.cc.

◆ m_enumSrc

TracedValue<enum Test_e> AttributeObjectTest::m_enumSrc
private

Definition at line 345 of file attribute-test-suite.cc.

Referenced by GetTypeId().

◆ m_float

float AttributeObjectTest::m_float
private

Definition at line 327 of file attribute-test-suite.cc.

Referenced by GetTypeId().

◆ m_int16

int16_t AttributeObjectTest::m_int16
private

Definition at line 323 of file attribute-test-suite.cc.

Referenced by GetTypeId().

◆ m_int16SetGet

int16_t AttributeObjectTest::m_int16SetGet
private

Definition at line 325 of file attribute-test-suite.cc.

◆ m_int16WithBounds

int16_t AttributeObjectTest::m_int16WithBounds
private

Definition at line 324 of file attribute-test-suite.cc.

Referenced by GetTypeId().

◆ m_intSrc1

TracedValue<int8_t> AttributeObjectTest::m_intSrc1
private

Definition at line 335 of file attribute-test-suite.cc.

Referenced by GetTypeId().

◆ m_intSrc2

TracedValue<int8_t> AttributeObjectTest::m_intSrc2
private

Definition at line 336 of file attribute-test-suite.cc.

◆ m_map1

std::map<uint32_t, Ptr<Derived> > AttributeObjectTest::m_map1
private

Definition at line 333 of file attribute-test-suite.cc.

Referenced by GetTypeId().

◆ m_ptr

Ptr<Derived> AttributeObjectTest::m_ptr
private

Definition at line 341 of file attribute-test-suite.cc.

Referenced by GetTypeId().

◆ m_ptrInitialized

Ptr<Derived> AttributeObjectTest::m_ptrInitialized
private

Definition at line 342 of file attribute-test-suite.cc.

Referenced by GetTypeId().

◆ m_ptrInitialized2

Ptr<Derived> AttributeObjectTest::m_ptrInitialized2
private

Definition at line 343 of file attribute-test-suite.cc.

Referenced by GetTypeId().

◆ m_random

Ptr<RandomVariableStream> AttributeObjectTest::m_random
private

Definition at line 330 of file attribute-test-suite.cc.

Referenced by GetTypeId().

◆ m_timeWithBounds

Time AttributeObjectTest::m_timeWithBounds
private

Definition at line 348 of file attribute-test-suite.cc.

Referenced by GetTypeId().

◆ m_uint8

uint8_t AttributeObjectTest::m_uint8
private

Definition at line 326 of file attribute-test-suite.cc.

Referenced by GetTypeId().

◆ m_uintSrc

TracedValue<uint8_t> AttributeObjectTest::m_uintSrc
private

Definition at line 344 of file attribute-test-suite.cc.

Referenced by GetTypeId().

◆ m_valueSrc

TracedValue<ValueClassTest> AttributeObjectTest::m_valueSrc
private

Definition at line 340 of file attribute-test-suite.cc.

Referenced by GetTypeId().

◆ m_vector1

std::vector<Ptr<Derived> > AttributeObjectTest::m_vector1
private

Definition at line 331 of file attribute-test-suite.cc.

Referenced by GetTypeId().

◆ m_vector2

std::vector<Ptr<Derived> > AttributeObjectTest::m_vector2
private

Definition at line 332 of file attribute-test-suite.cc.


The documentation for this class was generated from the following file: