hold a so-called 'global value'.
More...
#include <global-value.h>
List of all members.
Detailed Description
hold a so-called 'global value'.
Instances of this class are expected to be allocated as static global variables and should be used to store configurable global state.
Constructor & Destructor Documentation
- Parameters:
-
| name | the name of this global value. |
| help | some help text which describes the purpose of this global value. |
| initialValue | the value to assign to this global value during construction. |
| checker | a pointer to an AttributeChecker which can verify that any user-supplied value to override the initial value matches the requested type constraints. |
Member Function Documentation
static Iterator ns3::GlobalValue::Begin |
( |
void |
|
) |
[static] |
- Returns:
- an iterator which represents a pointer to the first GlobalValue registered.
static void ns3::GlobalValue::Bind |
( |
std::string |
name, |
|
|
const AttributeValue & |
value | |
|
) |
| | [static] |
- Parameters:
-
| name | the name of the global value |
| value | the value to set in the requested global value. |
Iterate over the set of GlobalValues until a matching name is found and then set its value with GlobalValue::SetValue.
This method cannot fail. It will crash if the input is not valid.
static bool ns3::GlobalValue::BindFailSafe |
( |
std::string |
name, |
|
|
const AttributeValue & |
value | |
|
) |
| | [static] |
- Parameters:
-
| name | the name of the global value |
| value | the value to set in the requested global value. |
- Returns:
- true if the value could be set successfully, false otherwise.
Iterate over the set of GlobalValues until a matching name is found and then set its value with GlobalValue::SetValue.
static Iterator ns3::GlobalValue::End |
( |
void |
|
) |
[static] |
- Returns:
- an iterator which represents a pointer to the last GlobalValue registered.
std::string ns3::GlobalValue::GetHelp |
( |
void |
|
) |
const |
std::string ns3::GlobalValue::GetName |
( |
void |
|
) |
const |
The documentation for this class was generated from the following file: