A Discrete-Event Network Simulator
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
object-base.h File Reference
#include "type-id.h"
#include "callback.h"
#include <string>
#include <list>
+ Include dependency graph for object-base.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


class  ns3::ObjectBase
 implement the ns-3 type and attribute system More...


 Every class exported by the ns3 library is enclosed in the ns3 namespace.


 Register the class in the ns-3 factory. More...

Macro Definition Documentation

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.

Given a class Foo, the .cc implementation should begin

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

Note the closing ';' is not on the same line; this prevents Doxygen from spuriously warning that the macro invocation is undocumented.

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