Configuration of simulation parameters and tracing. More...
Classes | |
class | MatchContainer |
hold a set of objects which match a specific search string. More... | |
Functions | |
void | Set (std::string path, const AttributeValue &value) |
void | SetDefault (std::string name, const AttributeValue &value) |
bool | SetDefaultFailSafe (std::string name, const AttributeValue &value) |
void | SetGlobal (std::string name, const AttributeValue &value) |
bool | SetGlobalFailSafe (std::string name, const AttributeValue &value) |
void | ConnectWithoutContext (std::string path, const CallbackBase &cb) |
void | DisconnectWithoutContext (std::string path, const CallbackBase &cb) |
void | Connect (std::string path, const CallbackBase &cb) |
void | Disconnect (std::string path, const CallbackBase &cb) |
Config::MatchContainer | LookupMatches (std::string path) |
void | RegisterRootNamespaceObject (Ptr< Object > obj) |
void | UnregisterRootNamespaceObject (Ptr< Object > obj) |
uint32_t | GetRootNamespaceObjectN (void) |
Ptr< Object > | GetRootNamespaceObject (uint32_t i) |
Configuration of simulation parameters and tracing.
void ns3::Config::Connect | ( | std::string | path, | |
const CallbackBase & | cb | |||
) |
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.
Referenced by ns3::DoMakeTraceSourceAccessor(), ns3::YansWifiPhyHelper::EnableAscii(), ns3::Ns2ExtWifiPhyHelper::EnableAscii(), ns3::EmuHelper::EnableAscii(), and ns3::ConfigTest::RunTests().
void ns3::Config::ConnectWithoutContext | ( | std::string | path, | |
const CallbackBase & | cb | |||
) |
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.
Referenced by ns3::DoMakeTraceSourceAccessor(), ns3::MobilityHelper::EnableAscii(), ns3::EmuHelper::EnablePcap(), and ns3::ConfigTest::RunTests().
void ns3::Config::Disconnect | ( | std::string | path, | |
const CallbackBase & | cb | |||
) |
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.
Referenced by ns3::DoMakeTraceSourceAccessor(), and ns3::ConfigTest::RunTests().
void ns3::Config::DisconnectWithoutContext | ( | std::string | path, | |
const CallbackBase & | cb | |||
) |
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.
Referenced by ns3::DoMakeTraceSourceAccessor(), and ns3::ConfigTest::RunTests().
i | the index of the requested object. |
Referenced by ns3::AttributeIterator::Iterate().
uint32_t ns3::Config::GetRootNamespaceObjectN | ( | void | ) |
Referenced by ns3::AttributeIterator::Iterate().
MatchContainer ns3::Config::LookupMatches | ( | std::string | path | ) |
path | the path to perform a match against |
void ns3::Config::RegisterRootNamespaceObject | ( | Ptr< Object > | obj | ) |
obj | a new root object |
Each root object is used during path matching as the root of the path by Config::Connect, and Config::Set.
Referenced by ns3::NodeListPriv::DoGet(), and ns3::ConfigTest::RunTests().
void ns3::Config::Set | ( | std::string | path, | |
const AttributeValue & | value | |||
) |
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.
Referenced by ns3::TimeTests::CheckPrecision(), ns3::ConfigStore::LoadFrom(), ns3::TimeTests::RunTests(), and ns3::ConfigTest::RunTests().
void ns3::Config::SetDefault | ( | std::string | name, | |
const AttributeValue & | value | |||
) |
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.
Referenced by ns3::TcpSocketImplTest::Test3().
bool ns3::Config::SetDefaultFailSafe | ( | std::string | name, | |
const AttributeValue & | value | |||
) |
name | the full name of the attribute | |
value | the value to set. |
This method overrides the initial value of the matching attribute.
Referenced by ns3::CommandLine::HandleArgument().
void ns3::Config::SetGlobal | ( | std::string | name, | |
const AttributeValue & | value | |||
) |
name | the name of the requested GlobalValue. | |
value | the value to set |
This method is equivalent to GlobalValue::Bind
Referenced by ns3::TimeTests::RunTests().
bool ns3::Config::SetGlobalFailSafe | ( | std::string | name, | |
const AttributeValue & | value | |||
) |
name | the name of the requested GlobalValue. | |
value | the value to set |
This method is equivalent to GlobalValue::BindFailSafe
Referenced by ns3::CommandLine::HandleArgument().
void ns3::Config::UnregisterRootNamespaceObject | ( | Ptr< Object > | obj | ) |
obj | a new root object |
This function undoes the work of Config::RegisterRootNamespaceObject.
Referenced by ns3::NodeListPriv::Delete().