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.

Public Member Functions

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)

Static Public Member Functions

static AttributeListGetGlobal (void)


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.

Referenced by ns3::CreateObjectWithAttributes().


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

Generated on Fri Apr 9 15:01:08 2010 for NS-3 by  doxygen 1.5.8