A Discrete-Event Network Simulator
API
Public Types | Public Member Functions | Static Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
AttributeObjectTest Class Reference
+ Inheritance 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...
 
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 95 of file attribute-test-suite.cc.

Member Typedef Documentation

◆ NumericTracedCallback

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

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

Member Enumeration Documentation

◆ Test_e

Enumerator
TEST_A 
TEST_B 
TEST_C 

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

Constructor & Destructor Documentation

◆ AttributeObjectTest()

AttributeObjectTest::AttributeObjectTest ( void  )
inline

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

References NS_UNUSED.

◆ ~AttributeObjectTest()

virtual AttributeObjectTest::~AttributeObjectTest ( void  )
inlinevirtual

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

Member Function Documentation

◆ AddToMap1()

void AttributeObjectTest::AddToMap1 ( uint32_t  i)
inline

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

Referenced by ObjectMapAttributeTestCase::DoRun().

◆ AddToVector1()

void AttributeObjectTest::AddToVector1 ( void  )
inline

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

Referenced by ObjectVectorAttributeTestCase::DoRun().

◆ AddToVector2()

void AttributeObjectTest::AddToVector2 ( void  )
inline

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

◆ DoGetEnum()

Test_e AttributeObjectTest::DoGetEnum ( void  ) const
inlineprivate

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

Referenced by GetTypeId().

◆ DoGetInt16()

int16_t AttributeObjectTest::DoGetInt16 ( void  ) const
inlineprivate

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

Referenced by GetTypeId().

◆ DoGetIntSrc()

int8_t AttributeObjectTest::DoGetIntSrc ( void  ) const
inlineprivate

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

Referenced by GetTypeId().

◆ DoGetTestB()

bool AttributeObjectTest::DoGetTestB ( void  ) const
inlineprivate

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

Referenced by GetTypeId().

◆ DoGetVector()

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

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

Referenced by GetTypeId().

◆ DoGetVectorN()

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

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

Referenced by GetTypeId().

◆ DoSetEnum()

bool AttributeObjectTest::DoSetEnum ( Test_e  v)
inlineprivate

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

Referenced by GetTypeId().

◆ DoSetInt16()

void AttributeObjectTest::DoSetInt16 ( int16_t  v)
inlineprivate

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

Referenced by GetTypeId().

◆ DoSetIntSrc()

bool AttributeObjectTest::DoSetIntSrc ( int8_t  v)
inlineprivate

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

Referenced by GetTypeId().

◆ DoSetTestB()

void AttributeObjectTest::DoSetTestB ( bool  v)
inlineprivate

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

Referenced by GetTypeId().

◆ GetTypeId()

static TypeId AttributeObjectTest::GetTypeId ( void  )
inlinestatic

◆ InvokeCb()

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

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

Referenced by TracedCallbackTestCase::DoRun().

◆ InvokeCbValue()

void AttributeObjectTest::InvokeCbValue ( int8_t  a)
inline

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

Referenced by CallbackValueTestCase::DoRun().

Member Data Documentation

◆ m_boolSrc

TracedValue<bool> AttributeObjectTest::m_boolSrc
private

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

Referenced by GetTypeId().

◆ m_boolTest

bool AttributeObjectTest::m_boolTest
private

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

Referenced by GetTypeId().

◆ m_boolTestA

bool AttributeObjectTest::m_boolTestA
private

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

◆ m_cb

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

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

Referenced by GetTypeId().

◆ m_cbValue

Callback<void,int8_t> AttributeObjectTest::m_cbValue
private

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

Referenced by GetTypeId().

◆ m_doubleSrc

TracedValue<double> AttributeObjectTest::m_doubleSrc
private

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

Referenced by GetTypeId().

◆ m_enum

enum Test_e AttributeObjectTest::m_enum
private

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

Referenced by GetTypeId().

◆ m_enumSetGet

enum Test_e AttributeObjectTest::m_enumSetGet
private

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

◆ m_enumSrc

TracedValue<enum Test_e> AttributeObjectTest::m_enumSrc
private

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

Referenced by GetTypeId().

◆ m_float

float AttributeObjectTest::m_float
private

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

Referenced by GetTypeId().

◆ m_int16

int16_t AttributeObjectTest::m_int16
private

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

Referenced by GetTypeId().

◆ m_int16SetGet

int16_t AttributeObjectTest::m_int16SetGet
private

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

◆ m_int16WithBounds

int16_t AttributeObjectTest::m_int16WithBounds
private

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

Referenced by GetTypeId().

◆ m_intSrc1

TracedValue<int8_t> AttributeObjectTest::m_intSrc1
private

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

Referenced by GetTypeId().

◆ m_intSrc2

TracedValue<int8_t> AttributeObjectTest::m_intSrc2
private

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

◆ m_map1

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

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

Referenced by GetTypeId().

◆ m_ptr

Ptr<Derived> AttributeObjectTest::m_ptr
private

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

Referenced by GetTypeId().

◆ m_ptrInitialized

Ptr<Derived> AttributeObjectTest::m_ptrInitialized
private

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

Referenced by GetTypeId().

◆ m_ptrInitialized2

Ptr<Derived> AttributeObjectTest::m_ptrInitialized2
private

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

Referenced by GetTypeId().

◆ m_random

Ptr<RandomVariableStream> AttributeObjectTest::m_random
private

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

Referenced by GetTypeId().

◆ m_timeWithBounds

Time AttributeObjectTest::m_timeWithBounds
private

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

Referenced by GetTypeId().

◆ m_uint8

uint8_t AttributeObjectTest::m_uint8
private

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

Referenced by GetTypeId().

◆ m_uintSrc

TracedValue<uint8_t> AttributeObjectTest::m_uintSrc
private

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

Referenced by GetTypeId().

◆ m_valueSrc

TracedValue<ValueClassTest> AttributeObjectTest::m_valueSrc
private

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

Referenced by GetTypeId().

◆ m_vector1

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

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

Referenced by GetTypeId().

◆ m_vector2

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

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


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