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;
Hold a value for an Attribute.
Base class for Callback class.
hold a set of objects which match a specific search string.
std::vector< Ptr< Object > >::const_iterator Iterator
Const iterator over the objects in this container.
bool SetFailSafe(std::string name, const AttributeValue &value)
Set the specified attribute value to all the objects stored in this container.
void Connect(std::string name, const CallbackBase &cb)
void DisconnectWithoutContext(std::string name, const CallbackBase &cb)
void Set(std::string name, const AttributeValue &value)
Ptr< Object > Get(std::size_t i) const
void Disconnect(std::string name, const CallbackBase &cb)
std::string GetPath(void) const
MatchContainer::Iterator End(void) const
std::string GetMatchedPath(uint32_t i) const
bool ConnectFailSafe(std::string name, const CallbackBase &cb)
Connect the specified sink to all the objects stored in this container.
std::size_t GetN(void) const
bool ConnectWithoutContextFailSafe(std::string name, const CallbackBase &cb)
Connect the specified sink to all the objects stored in this container.
std::string m_path
The path used to perform the object matching.
void ConnectWithoutContext(std::string name, const CallbackBase &cb)
std::vector< Ptr< Object > > m_objects
The list of objects in this container.
MatchContainer::Iterator Begin(void) const
std::vector< std::string > m_contexts
The context for each object.
void SetGlobal(std::string name, const AttributeValue &value)
void Reset(void)
Reset the initial value of every attribute as well as the value of every global to what they were bef...
void SetDefault(std::string name, const AttributeValue &value)
void Disconnect(std::string path, const CallbackBase &cb)
void Connect(std::string path, const CallbackBase &cb)
MatchContainer LookupMatches(std::string path)
void DisconnectWithoutContext(std::string path, const CallbackBase &cb)
void ConnectWithoutContext(std::string path, const CallbackBase &cb)
void UnregisterRootNamespaceObject(Ptr< Object > obj)
Ptr< Object > GetRootNamespaceObject(uint32_t i)
bool SetGlobalFailSafe(std::string name, const AttributeValue &value)
void Set(std::string path, const AttributeValue &value)
void RegisterRootNamespaceObject(Ptr< Object > obj)
std::size_t GetRootNamespaceObjectN(void)
bool SetDefaultFailSafe(std::string fullName, const AttributeValue &value)
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...
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...
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...
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::Ptr smart pointer declaration and implementation.