ns3::ObjectFactory Class Reference
[Object]
instantiate subclasses of
ns3::Object.
More...
#include <object-factory.h>
List of all members.
Detailed Description
instantiate subclasses of
ns3::Object.
This class can also hold a set of attributes to set automatically during the object construction.
Member Function Documentation
template<typename T >
Ptr<T> ns3::ObjectFactory::Create |
( |
void |
|
) |
const [inline] |
- Returns:
- a new object instance.
This method performs an extra call to
ns3::Object::GetObject before returning a pointer of the requested type to the user. This method is really syntactical sugar.
Ptr< T > ns3::ObjectFactory::Create |
( |
void |
|
) |
const [inline] |
- Returns:
- a new object instance.
TypeId ns3::ObjectFactory::GetTypeId |
( |
void |
|
) |
const |
- Returns:
- the currently-selected TypeId to use to create an object instance.
void ns3::ObjectFactory::Set |
( |
std::string |
name, |
|
|
const AttributeValue & |
value | |
|
) |
| | |
- Parameters:
-
| name | the name of the attribute to set during object construction |
| value | the value of the attribute to set during object construction |
void ns3::ObjectFactory::SetTypeId |
( |
std::string |
tid |
) |
|
- Parameters:
-
| tid | the TypeId of the object to instantiate. |
void ns3::ObjectFactory::SetTypeId |
( |
const char * |
tid |
) |
|
- Parameters:
-
| tid | the TypeId of the object to instantiate. |
void ns3::ObjectFactory::SetTypeId |
( |
TypeId |
tid |
) |
|
- Parameters:
-
| tid | the TypeId of the object to instantiate. |
The documentation for this class was generated from the following file:
- src/core/object-factory.h