ns3::rapidnet::Value Class Reference
[RapidNet Value Types]

The base for all RapidNet value types. More...

#include <value.h>

Inheritance diagram for ns3::rapidnet::Value:

Inheritance graph
[legend]
Collaboration diagram for ns3::rapidnet::Value:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Value (ValueTypeId value)
 Value constructor that initializes the type of the value should be a member of the.
virtual uint32_t GetSerializedSize (void) const
 Returns the size in bytes when serialized.
virtual void Serialize (Buffer::Iterator &start) const
 Serializes the object for transmitting over the network inside a RapidNet header.
virtual uint32_t Deserialize (Buffer::Iterator &end)=0
 De-serializes the object that is embedded in a RapidNet header received from the network.
ValueTypeId GetType () const
 Returns the type of the value object. See.
string GetTypeName () const
 Returns the type name as a string.
virtual string ToString () const =0
 Returns the string representation of the value object.
virtual Ptr< ValueClone () const =0
 Create and return a deep copy or clone of this object.
virtual bool Equals (const Ptr< Value > v) const =0
 To compare any two value objects.
virtual bool Less (const Ptr< Value > v) const =0
 This method is used by the hash function of std::map when the value objects are inserted as keys.
virtual Ptr< ValueEval (Operator op, Ptr< Tuple > tuple, Ptr< Expression > expr=Ptr< Expression >(NULL))=0
 Pass argument expression and tuple instead of argument value to allow lazy evaluation in case of short circuit operations.

Static Public Member Functions

static bool Less (const Ptr< Value > v1, const Ptr< Value > v2)
 Compares the given two value objects by invoking the.
static Ptr< ValueGetInstanceOfType (ValueTypeId type)
 Returns a default instance of given type. Used for de-serialization.

Static Public Attributes

static const uint32_t SIZE_TYPEID
 Number of bytes occupied by the type id when serialized into a buffer.


Detailed Description

The base for all RapidNet value types.

All RapidNet value types must extend Value and implement all the abstract methods.


Constructor & Destructor Documentation

ns3::rapidnet::Value::Value ( ValueTypeId  value  ) 

Value constructor that initializes the type of the value should be a member of the.

See also:
ValueTypeId enum.


Member Function Documentation

ValueTypeId ns3::rapidnet::Value::GetType ( void   )  const [inline]

Returns the type of the value object. See.

See also:
ValueTypeId.

static bool ns3::rapidnet::Value::Less ( const Ptr< Value v1,
const Ptr< Value v2 
) [static]

Compares the given two value objects by invoking the.

See also:
Less() method on them.


The documentation for this class was generated from the following file:

Generated on Fri Apr 9 15:01:12 2010 for NS-3 by  doxygen 1.5.8