A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
anonymous_namespace{object-test-suite.cc}::DerivedB Class Reference
+ Inheritance diagram for anonymous_namespace{object-test-suite.cc}::DerivedB:
+ Collaboration diagram for anonymous_namespace{object-test-suite.cc}::DerivedB:

Public Member Functions

 DerivedB ()
virtual void Dispose (void)
- Public Member Functions inherited from anonymous_namespace{object-test-suite.cc}::BaseB
 BaseB ()
- Public Member Functions inherited from ns3::Object
 Object ()
virtual ~Object ()
void AggregateObject (Ptr< Object > other)
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 Start (void)
- Public Member Functions inherited from ns3::SimpleRefCount< Object, ObjectBase, ObjectDeleter >
 SimpleRefCount ()
 SimpleRefCount (const SimpleRefCount &o)
uint32_t GetReferenceCount (void) const
SimpleRefCountoperator= (const SimpleRefCount &o)
void Ref (void) const
void Unref (void) const
- Public Member Functions inherited from ns3::ObjectBase
virtual ~ObjectBase ()
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 ns3::TypeId GetTypeId (void)
 This method returns the TypeId associated to ns3::Object.

Additional Inherited Members

- Protected Member Functions inherited from ns3::Object
 Object (const Object &o)
virtual void DoDispose (void)
virtual void DoStart (void)
virtual void NotifyNewAggregate (void)

Detailed Description

Definition at line 75 of file object-test-suite.cc.

Constructor & Destructor Documentation

anonymous_namespace{object-test-suite.cc}::DerivedB::DerivedB ( )
inline

Definition at line 85 of file object-test-suite.cc.

Member Function Documentation

virtual void anonymous_namespace{object-test-suite.cc}::DerivedB::Dispose ( void  )
inlinevirtual

Run the DoDispose methods of this object and all the objects aggregated to it. After calling this method, the object is expected to be totally unusable except for the Ref and Unref methods.

Note that you can call Dispose many times on the same object or different objects aggregated together, and DoDispose will be called only once for each aggregated object.

This method is typically used to break reference cycles.

Note: the code here is a bit tricky because we need to protect ourselves from modifications in the aggregate array while DoDispose is called. The user's DoDispose implementation could call GetObject (which could reorder the array) and it could call AggregateObject which would add an object at the end of the array. So, to be safe, we restart the iteration over the array whenever we call some user code.

Reimplemented from anonymous_namespace{object-test-suite.cc}::BaseB.

Definition at line 87 of file object-test-suite.cc.

static ns3::TypeId anonymous_namespace{object-test-suite.cc}::DerivedB::GetTypeId ( void  )
inlinestatic

This method returns the TypeId associated to ns3::Object.

No Attributes defined for this type.
No TraceSources defined for this type.

Reimplemented from anonymous_namespace{object-test-suite.cc}::BaseB.

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

References ns3::TypeId::AddConstructor(), ns3::TypeId::HideFromDocumentation(), and ns3::TypeId::SetParent().

+ Here is the call graph for this function:


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