A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
object-base.h File Reference

ns3::ObjectBase declaration and NS_OBJECT_ENSURE_REGISTERED() macro definition. More...

#include "callback.h"
#include "type-id.h"
#include "warnings.h"
#include <list>
#include <string>
+ 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.

Classes

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

Namespaces

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

Macros

#define NS_OBJECT_ENSURE_REGISTERED(type)
 Register an Object subclass with the TypeId system.
 
#define NS_OBJECT_TEMPLATE_CLASS_DEFINE(type, param)
 Explicitly instantiate a template class with one template parameter and register the resulting instance with the TypeId system.
 
#define NS_OBJECT_TEMPLATE_CLASS_TWO_DEFINE(type, param1, param2)
 Explicitly instantiate a template class with two template parameters and register the resulting instance with the TypeId system.
 

Functions

template<typename T >
std::string ns3::DoGetTemplateClassName ()
 Helper function to get the name (as a string) of the type of a template class.
 
template<typename T >
std::string ns3::GetTemplateClassName ()
 Helper function to get the name (as a string) of the type of a template class.
 

Detailed Description

ns3::ObjectBase declaration and NS_OBJECT_ENSURE_REGISTERED() macro definition.

Definition in file object-base.h.