ns3::EmptyAttributeValue Class Reference
[Attribute]

A class for an empty attribute value. More...

#include <attribute.h>

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

List of all members.

Public Member Functions

 EmptyAttributeValue ()

Private Member Functions

virtual Ptr< AttributeValueCopy (void) const
virtual std::string SerializeToString (Ptr< const AttributeChecker > checker) const
virtual bool DeserializeFromString (std::string value, Ptr< const AttributeChecker > checker)

Detailed Description

A class for an empty attribute value.

Definition at line 201 of file attribute.h.


Constructor & Destructor Documentation

ns3::EmptyAttributeValue::EmptyAttributeValue (  ) 

Definition at line 45 of file attribute.cc.


Member Function Documentation

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

Implements ns3::AttributeValue.

Definition at line 48 of file attribute.cc.

bool ns3::EmptyAttributeValue::DeserializeFromString ( std::string  value,
Ptr< const AttributeChecker checker 
) [private, 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.

Definition at line 58 of file attribute.cc.

std::string ns3::EmptyAttributeValue::SerializeToString ( Ptr< const AttributeChecker checker  )  const [private, 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.

Definition at line 53 of file attribute.cc.


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