#include <value.h>


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< Value > | Clone () 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< Value > | Eval (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< Value > | GetInstanceOfType (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. | |
All RapidNet value types must extend Value and implement all the abstract methods.
| ns3::rapidnet::Value::Value | ( | ValueTypeId | value | ) |
Value constructor that initializes the type of the value should be a member of the.
| ValueTypeId ns3::rapidnet::Value::GetType | ( | void | ) | const [inline] |
1.5.8