20 #ifndef GLOBAL_VALUE_H 
   21 #define GLOBAL_VALUE_H 
   57   typedef std::vector<GlobalValue *> 
Vector;
 
   82   std::string 
GetName (
void) 
const;
 
   87   std::string 
GetHelp (
void) 
const;
 
  136   static Iterator 
Begin (
void);
 
  141   static Iterator 
End (
void);
 
  168   friend class ::GlobalValueTestCase;
 
Smart pointer class similar to boost::intrusive_ptr. 
 
std::string m_help
The help string. 
 
Smart pointer implementation. 
 
Hold a value for an Attribute. 
 
Vector::const_iterator Iterator
Iterator type for the list of all global values. 
 
Ptr< AttributeValue > m_initialValue
The initial value. 
 
hold a so-called 'global value'. 
 
GlobalValue(std::string name, std::string help, const AttributeValue &initialValue, Ptr< const AttributeChecker > checker)
Constructor. 
 
std::string GetName(void) const 
Get the name. 
 
void ResetInitialValue(void)
Reset to the initial value. 
 
static Vector * GetVector(void)
Get the static vector of all GlobalValues. 
 
static Iterator Begin(void)
The Begin iterator. 
 
ns3::AttributeValue, ns3::AttributeAccessor and ns3::AttributeChecker declarations. 
 
Ptr< const AttributeChecker > m_checker
The AttributeChecker for this GlobalValue. 
 
std::vector< GlobalValue * > Vector
Container type for holding all the GlobalValues. 
 
static void Bind(std::string name, const AttributeValue &value)
Iterate over the set of GlobalValues until a matching name is found and then set its value with Globa...
 
static bool GetValueByNameFailSafe(std::string name, AttributeValue &value)
Finds the GlobalValue with the given name and returns its value. 
 
Every class exported by the ns3 library is enclosed in the ns3 namespace. 
 
bool SetValue(const AttributeValue &value)
Set the value of this GlobalValue. 
 
std::string m_name
The name of this GlobalValue. 
 
Ptr< AttributeValue > m_currentValue
The current value. 
 
static Iterator End(void)
The End iterator. 
 
static bool BindFailSafe(std::string name, const AttributeValue &value)
Iterate over the set of GlobalValues until a matching name is found and then set its value with Globa...
 
std::string GetHelp(void) const 
Get the help string. 
 
static void GetValueByName(std::string name, AttributeValue &value)
Finds the GlobalValue with the given name and returns its value. 
 
Ptr< const AttributeChecker > GetChecker(void) const 
Get the AttributeChecker. 
 
void InitializeFromEnv(void)
Initialize from the NS_GLOBAL_VALUE environment variable. 
 
void GetValue(AttributeValue &value) const 
Get the value.