A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 ()
 
virtual ~Object ()
 
void AggregateObject (Ptr< Object > other)
 
void Dispose (void)
 Run the DoDispose methods of this object and all the objects aggregated to it. More...
 
AggregateIterator GetAggregateIterator (void) const
 
virtual TypeId GetInstanceTypeId (void) const
 
template<typename T >
Ptr< T > GetObject (void) const
 
template<typename T >
Ptr< T > GetObject (TypeId tid) const
 
void Initialize (void)
 This method calls the virtual DoInitialize method on all the objects aggregated to this object. More...
 
- Public Member Functions inherited from ns3::SimpleRefCount< Object, ObjectBase, ObjectDeleter >
 SimpleRefCount ()
 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. 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
 
bool GetAttributeFailSafe (std::string name, AttributeValue &attribute) const
 
void SetAttribute (std::string name, const AttributeValue &value)
 
bool SetAttributeFailSafe (std::string name, const AttributeValue &value)
 
bool TraceConnect (std::string name, std::string context, const CallbackBase &cb)
 
bool TraceConnectWithoutContext (std::string name, const CallbackBase &cb)
 
bool TraceDisconnect (std::string name, std::string context, const CallbackBase &cb)
 
bool TraceDisconnectWithoutContext (std::string name, const CallbackBase &cb)
 

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::SimpleRefCount< Object, ObjectBase, ObjectDeleter >
static void Cleanup (void)
 Noop. More...
 
- Static Public Member Functions inherited from ns3::ObjectBase
static TypeId GetTypeId (void)
 Get the type ID. More...
 

Private Member Functions

int16_t DoGetInt16 (void) const
 
int8_t DoGetIntSrc (void) const
 
bool DoGetTestB (void) const
 
Ptr< DerivedDoGetVector (uint32_t i) const
 
uint32_t DoGetVectorN (void) const
 
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
 
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)
 
virtual void DoDispose (void)
 This method is called by Object::Dispose or by the object's destructor, whichever comes first. More...
 
virtual void DoInitialize (void)
 This method is called only once by Object::Initialize. More...
 
virtual void NotifyNewAggregate (void)
 This method is invoked whenever two sets of objects are aggregated together. More...
 
- Protected Member Functions inherited from ns3::ObjectBase
void ConstructSelf (const AttributeConstructionList &attributes)
 
virtual void NotifyConstructionCompleted (void)
 This method is invoked once all member attributes have been initialized. More...
 

Detailed Description

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

Member Enumeration Documentation

Enumerator
TEST_A 
TEST_B 
TEST_C 

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

Constructor & Destructor Documentation

AttributeObjectTest::AttributeObjectTest ( void  )
inline

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

References NS_UNUSED.

virtual AttributeObjectTest::~AttributeObjectTest ( void  )
inlinevirtual

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

Member Function Documentation

void AttributeObjectTest::AddToMap1 ( uint32_t  i)
inline

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

Referenced by ObjectMapAttributeTestCase::DoRun().

+ Here is the caller graph for this function:

void AttributeObjectTest::AddToVector1 ( void  )
inline

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

Referenced by ObjectVectorAttributeTestCase::DoRun().

+ Here is the caller graph for this function:

void AttributeObjectTest::AddToVector2 ( void  )
inline

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

int16_t AttributeObjectTest::DoGetInt16 ( void  ) const
inlineprivate

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

Referenced by GetTypeId().

+ Here is the caller graph for this function:

int8_t AttributeObjectTest::DoGetIntSrc ( void  ) const
inlineprivate

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

Referenced by GetTypeId().

+ Here is the caller graph for this function:

bool AttributeObjectTest::DoGetTestB ( void  ) const
inlineprivate

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

Referenced by GetTypeId().

+ Here is the caller graph for this function:

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

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

Referenced by GetTypeId().

+ Here is the caller graph for this function:

uint32_t AttributeObjectTest::DoGetVectorN ( void  ) const
inlineprivate

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

Referenced by GetTypeId().

+ Here is the caller graph for this function:

void AttributeObjectTest::DoSetInt16 ( int16_t  v)
inlineprivate

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

Referenced by GetTypeId().

+ Here is the caller graph for this function:

bool AttributeObjectTest::DoSetIntSrc ( int8_t  v)
inlineprivate

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

Referenced by GetTypeId().

+ Here is the caller graph for this function:

void AttributeObjectTest::DoSetTestB ( bool  v)
inlineprivate

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

Referenced by GetTypeId().

+ Here is the caller graph for this function:

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

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

Referenced by TracedCallbackTestCase::DoRun().

+ Here is the caller graph for this function:

void AttributeObjectTest::InvokeCbValue ( int8_t  a)
inline

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

Referenced by CallbackValueTestCase::DoRun().

+ Here is the caller graph for this function:

Member Data Documentation

TracedValue<bool> AttributeObjectTest::m_boolSrc
private

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

Referenced by GetTypeId().

bool AttributeObjectTest::m_boolTest
private

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

Referenced by GetTypeId().

bool AttributeObjectTest::m_boolTestA
private

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

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

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

Referenced by GetTypeId().

Callback<void,int8_t> AttributeObjectTest::m_cbValue
private

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

Referenced by GetTypeId().

TracedValue<double> AttributeObjectTest::m_doubleSrc
private

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

Referenced by GetTypeId().

enum Test_e AttributeObjectTest::m_enum
private

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

Referenced by GetTypeId().

TracedValue<enum Test_e> AttributeObjectTest::m_enumSrc
private

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

Referenced by GetTypeId().

float AttributeObjectTest::m_float
private

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

Referenced by GetTypeId().

int16_t AttributeObjectTest::m_int16
private

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

Referenced by GetTypeId().

int16_t AttributeObjectTest::m_int16SetGet
private

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

int16_t AttributeObjectTest::m_int16WithBounds
private

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

Referenced by GetTypeId().

TracedValue<int8_t> AttributeObjectTest::m_intSrc1
private

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

Referenced by GetTypeId().

TracedValue<int8_t> AttributeObjectTest::m_intSrc2
private

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

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

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

Referenced by GetTypeId().

Ptr<Derived> AttributeObjectTest::m_ptr
private

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

Referenced by GetTypeId().

Ptr<Derived> AttributeObjectTest::m_ptrInitialized
private

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

Referenced by GetTypeId().

Ptr<Derived> AttributeObjectTest::m_ptrInitialized2
private

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

Referenced by GetTypeId().

Ptr<RandomVariableStream> AttributeObjectTest::m_random
private

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

Referenced by GetTypeId().

Time AttributeObjectTest::m_timeWithBounds
private

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

Referenced by GetTypeId().

uint8_t AttributeObjectTest::m_uint8
private

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

Referenced by GetTypeId().

TracedValue<uint8_t> AttributeObjectTest::m_uintSrc
private

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

Referenced by GetTypeId().

TracedValue<ValueClassTest> AttributeObjectTest::m_valueSrc
private

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

Referenced by GetTypeId().

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

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

Referenced by GetTypeId().

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

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


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