ns3::TimeValue Class Reference

hold objects of type ns3::Time More...

#include <nstime.h>

Inheritance diagram for ns3::TimeValue:
Inheritance graph
[legend]
Collaboration diagram for ns3::TimeValue:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 TimeValue ()
 TimeValue (const Time &value)
void Set (const Time &value)
Time Get (void) const
template<typename T >
bool GetAccessor (T &value) const
virtual Ptr< AttributeValueCopy (void) const
virtual std::string SerializeToString (Ptr< const AttributeChecker > checker) const
virtual bool DeserializeFromString (std::string value, Ptr< const AttributeChecker > checker)

Private Attributes

Time m_value

Detailed Description

hold objects of type ns3::Time

Definition at line 683 of file nstime.h.


Constructor & Destructor Documentation

ns3::TimeValue::TimeValue (  ) 
ns3::TimeValue::TimeValue ( const Time value  ) 

Member Function Documentation

virtual Ptr<AttributeValue> ns3::TimeValue::Copy ( void   )  const [virtual]
Returns:
a deep copy of this class, wrapped into an Attribute object.

Implements ns3::AttributeValue.

virtual bool ns3::TimeValue::DeserializeFromString ( std::string  value,
Ptr< const AttributeChecker checker 
) [virtual]
Parameters:
value a string representation of the value
checker a pointer to the checker associated to the attribute.
Returns:
true if the input string was correctly-formatted and could be successfully deserialized, false otherwise.

Upon return of this function, this AttributeValue instance contains the deserialized value. In most cases, this method will not make any use of the checker argument. However, in a very limited set of cases, the checker argument is needed to perform proper serialization. A nice example of code which needs it is the EnumValue::SerializeToString code.

Implements ns3::AttributeValue.

Time ns3::TimeValue::Get ( void   )  const
template<typename T >
bool ns3::TimeValue::GetAccessor ( T &  value  )  const [inline]

Definition at line 683 of file nstime.h.

virtual std::string ns3::TimeValue::SerializeToString ( Ptr< const AttributeChecker checker  )  const [virtual]
Parameters:
checker the checker associated to the attribute
Returns:
a string representation of this value.

In most cases, this method will not make any use of the checker argument. However, in a very limited set of cases, the checker argument is needed to perform proper serialization. A nice example of code which needs it is the EnumValue::SerializeToString code.

Implements ns3::AttributeValue.

void ns3::TimeValue::Set ( const Time value  ) 

Member Data Documentation

Definition at line 683 of file nstime.h.


The documentation for this class was generated from the following file:
Generated on Thu Dec 3 14:12:15 2009 for NS-3 by  doxygen 1.6.3