|
A Discrete-Event Network Simulator
|
API
|
Go to the documentation of this file.
68 void Set (std::string path,
const AttributeValue &value);
75 bool SetFailSafe (std::string path,
const AttributeValue &value);
85 void SetDefault (std::string name,
const AttributeValue &value);
103 void SetGlobal (std::string name,
const AttributeValue &value);
154 void Connect (std::string path,
const CallbackBase &cb);
170 void Disconnect (std::string path,
const CallbackBase &cb);
184 typedef std::vector<Ptr<Object> >::const_iterator
Iterator;
194 const std::vector<std::string> &contexts,
208 std::size_t
GetN (
void)
const;
225 std::string
GetPath (
void)
const;
void Set(std::string path, const AttributeValue &value)
bool SetFailSafe(std::string name, const AttributeValue &value)
Set the specified attribute value to all the objects stored in this container.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
MatchContainer::Iterator Begin(void) const
std::string m_path
The path used to perform the object matching.
std::vector< Ptr< Object > > m_objects
The list of objects in this container.
void Connect(std::string name, const CallbackBase &cb)
void DisconnectWithoutContext(std::string name, const CallbackBase &cb)
Hold a value for an Attribute.
Ptr< Object > GetRootNamespaceObject(uint32_t i)
void Reset(void)
Reset the initial value of every attribute as well as the value of every global to what they were bef...
void RegisterRootNamespaceObject(Ptr< Object > obj)
MatchContainer LookupMatches(std::string path)
std::vector< Ptr< Object > >::const_iterator Iterator
Const iterator over the objects in this container.
std::vector< std::string > m_contexts
The context for each object.
hold a set of objects which match a specific search string.
bool SetGlobalFailSafe(std::string name, const AttributeValue &value)
MatchContainer::Iterator End(void) const
void ConnectWithoutContext(std::string path, const CallbackBase &cb)
std::size_t GetRootNamespaceObjectN(void)
std::string GetMatchedPath(uint32_t i) const
bool ConnectWithoutContextFailSafe(std::string name, const CallbackBase &cb)
Connect the specified sink to all the objects stored in this container.
void Set(std::string name, const AttributeValue &value)
bool ConnectWithoutContextFailSafe(std::string path, const CallbackBase &cb)
This function will attempt to find all trace sources which match the input path and will then connect...
bool ConnectFailSafe(std::string path, const CallbackBase &cb)
This function will attempt to find all trace sources which match the input path and will then connect...
void UnregisterRootNamespaceObject(Ptr< Object > obj)
void DisconnectWithoutContext(std::string path, const CallbackBase &cb)
std::string GetPath(void) const
std::size_t GetN(void) const
void Connect(std::string path, const CallbackBase &cb)
bool SetDefaultFailSafe(std::string fullName, const AttributeValue &value)
void Disconnect(std::string name, const CallbackBase &cb)
Ptr< Object > Get(std::size_t i) const
Base class for Callback class.
bool SetFailSafe(std::string path, const AttributeValue &value)
This function will attempt to find attributes which match the input path and will then set their valu...
void SetGlobal(std::string name, const AttributeValue &value)
void SetDefault(std::string name, const AttributeValue &value)
bool ConnectFailSafe(std::string name, const CallbackBase &cb)
Connect the specified sink to all the objects stored in this container.
ns3::Ptr smart pointer declaration and implementation.
void Disconnect(std::string path, const CallbackBase &cb)
void ConnectWithoutContext(std::string name, const CallbackBase &cb)