#include <list-value.h>
Public Member Functions | |
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) |
De-serializes the object that is embedded in a RapidNet header received from the network. | |
virtual string | ToString () const |
Returns the string representation of the value object. | |
list< Ptr< Value > > | GetListValue () const |
Returns the list of value objects. | |
virtual Ptr< Value > | Clone () const |
Create and return a deep copy or clone of this object. | |
virtual bool | Equals (const Ptr< Value > v) const |
To compare any two value objects. | |
virtual bool | Less (const Ptr< Value > v) const |
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)) |
Pass argument expression and tuple instead of argument value to allow lazy evaluation in case of short circuit operations. | |
uint32_t | Size () const |
Returns the number of elements in the list. | |
rn_list_iterator | Begin () const |
Returns an iterator pointing to the first value object in this list. | |
rn_list_iterator | End () const |
Returns an iterator pointing to the end of this list. | |
Static Public Member Functions | |
static Ptr< Value > | New (list< Ptr< Value > > value=list< Ptr< Value > >()) |
Factory method that creates a new ListValue object with an empty list. |