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.
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.
- 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::CreateObject().
The documentation for this class was generated from the following file:
- src/core/attribute-list.h