ns3::Config Namespace Reference
[Core]
Configuration of simulation parameters and tracing.
More...
Detailed Description
Configuration of simulation parameters and tracing.
Function Documentation
void ns3::Config::Connect |
( |
std::string |
path, |
|
|
const CallbackBase & |
cb | |
|
) |
| | |
- Parameters:
-
| path | a path to match trace sources. |
| cb | the callback to connect to the matching trace sources. |
This function will attempt to find all trace sources which match the input path and will then connect the input callback to them in such a way that the callback will receive an extra context string upon trace event notification.
void ns3::Config::ConnectWithoutContext |
( |
std::string |
path, |
|
|
const CallbackBase & |
cb | |
|
) |
| | |
- Parameters:
-
| path | a path to match trace sources. |
| cb | the callback to connect to the matching trace sources. |
This function will attempt to find all trace sources which match the input path and will then connect the input callback to them.
void ns3::Config::Disconnect |
( |
std::string |
path, |
|
|
const CallbackBase & |
cb | |
|
) |
| | |
- Parameters:
-
| path | a path to match trace sources. |
| cb | the callback to connect to the matching trace sources. |
This function undoes the work of Config::ConnectWithContext.
void ns3::Config::DisconnectWithoutContext |
( |
std::string |
path, |
|
|
const CallbackBase & |
cb | |
|
) |
| | |
- Parameters:
-
| path | a path to match trace sources. |
| cb | the callback to disconnect to the matching trace sources. |
This function undoes the work of
Config::Connect.
Ptr<Object> ns3::Config::GetRootNamespaceObject |
( |
uint32_t |
i |
) |
|
- Parameters:
-
| i | the index of the requested object. |
- Returns:
- the requested root namespace object
uint32_t ns3::Config::GetRootNamespaceObjectN |
( |
void |
|
) |
|
- Returns:
- the number of registered root namespace objects.
- Parameters:
-
| path | the path to perform a match against |
- Returns:
- a container which contains all the objects which match the input path.
void ns3::Config::RegisterRootNamespaceObject |
( |
Ptr< Object > |
obj |
) |
|
void ns3::Config::Set |
( |
std::string |
path, |
|
|
const AttributeValue & |
value | |
|
) |
| | |
- Parameters:
-
| path | a path to match attributes. |
| value | the value to set in all matching attributes. |
This function will attempt to find attributes which match the input path and will then set their value to the input value.
void ns3::Config::SetDefault |
( |
std::string |
name, |
|
|
const AttributeValue & |
value | |
|
) |
| | |
- Parameters:
-
| name | the full name of the attribute |
| value | the value to set. |
This method overrides the initial value of the matching attribute. This method cannot fail: it will crash if the input attribute name or value is invalid.
bool ns3::Config::SetDefaultFailSafe |
( |
std::string |
name, |
|
|
const AttributeValue & |
value | |
|
) |
| | |
- Parameters:
-
| name | the full name of the attribute |
| value | the value to set. |
- Returns:
- true if the value was set successfully, false otherwise.
This method overrides the initial value of the matching attribute.
void ns3::Config::SetGlobal |
( |
std::string |
name, |
|
|
const AttributeValue & |
value | |
|
) |
| | |
bool ns3::Config::SetGlobalFailSafe |
( |
std::string |
name, |
|
|
const AttributeValue & |
value | |
|
) |
| | |
void ns3::Config::UnregisterRootNamespaceObject |
( |
Ptr< Object > |
obj |
) |
|