A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Object

Base classes which provides memory management and object aggregation. More...

+ Collaboration diagram for Object:

Classes

class  ns3::Object
 a base class which provides memory management and object aggregation More...
 
class  ns3::ObjectBase
 implement the ns-3 type and attribute system More...
 
class  ns3::ObjectFactory
 instantiate subclasses of ns3::Object. More...
 
class  ns3::ObjectPtrContainerValue
 contain a set of ns3::Object pointers. More...
 

Macros

#define NS_OBJECT_ENSURE_REGISTERED(type)
 Register the class in the ns-3 factory. More...
 

Detailed Description

Base classes which provides memory management and object aggregation.

Macro Definition Documentation

#define NS_OBJECT_ENSURE_REGISTERED (   type)
Value:
static struct X ## type ## RegistrationClass \
{ \
X ## type ## RegistrationClass () { \
ns3::TypeId tid = type::GetTypeId (); \
tid.GetParent (); \
} \
} x_ ## type ## RegistrationVariable

Register the class in the ns-3 factory.

This macro should be invoked once for every class which defines a new GetTypeId method.

If the class is in a namespace, then the macro call should also be in the namespace.

Definition at line 38 of file object-base.h.