Classes | Public Member Functions | Static Public Member Functions | Friends

ns3::AttributeList Class Reference
[Attribute]

a container of attributes to be used during object's construction and in ns3::Object::Set. More...

#include <attribute-list.h>

List of all members.

Classes

struct  Attr

Public Member Functions

 AttributeList (const AttributeList &o)
AttributeListoperator= (const AttributeList &o)
void Set (std::string name, const AttributeValue &value)
bool SetFailSafe (std::string name, const AttributeValue &value)
void SetWithTid (TypeId tid, std::string name, const AttributeValue &value)
void Reset (void)
std::string SerializeToString (void) const
bool DeserializeFromString (std::string value)

Static Public Member Functions

static AttributeListGetGlobal (void)

Friends

class ObjectBase

Detailed Description

a container of attributes to be used during object's construction and in ns3::Object::Set.


Member Function Documentation

static AttributeList* ns3::AttributeList::GetGlobal ( void   )  [static]
Returns:
the global attribute container

The global attribute container can be used to specify a set of attribute values without having to re-specify them for each object when it is created. This container is checked only during object construction and it is always checked last, after any per-object container is checked.

void ns3::AttributeList::Reset ( void   ) 

Clear the content of this instance.

void ns3::AttributeList::Set ( std::string  name,
const AttributeValue value 
)
Parameters:
name the full name of the attribute to set
value the value to set

This method checks that a attribute with the requested name exists and that the value specified is an acceptable value of that attribute. If any of these checks fails, the program terminates with a message.

bool ns3::AttributeList::SetFailSafe ( std::string  name,
const AttributeValue value 
)
Parameters:
name the full name of the attribute to set
value the value to set
Returns:
true if the requested attribute exists and could be stored, false otherwise.
void ns3::AttributeList::SetWithTid ( TypeId  tid,
std::string  name,
const AttributeValue value 
)
Parameters:
tid the TypeId associated to this attribute
name the name (not full!) of the attribute
value the value to set

This method checks that a attribute with the requested name exists and that the value specified is an acceptable value of that attribute. If any of these checks fails, the program terminates with a message.


The documentation for this class was generated from the following file: