My Project
 All Classes Functions Variables Typedefs Enumerations Enumerator Pages
Classes | Public Types | Public Member Functions | Public Attributes | Friends | List of all members
Value Class Reference

This class implements a value. More...

#include <Value.h>

Classes

class  Iterator
 This class implements an iterator through a Value list. More...
 

Public Types

enum  ValueType {
  ddl_none = -1, ddl_bool = 0, ddl_int8, ddl_int16,
  ddl_int32, ddl_int64, ddl_unsigned_int8, ddl_unsigned_int16,
  ddl_unsigned_int32, ddl_unsigned_int64, ddl_half, ddl_float,
  ddl_double, ddl_string, ddl_ref, ddl_types_max
}
 This enum describes the data type stored in the value. More...
 

Public Member Functions

 Value (ValueType type)
 
void setBool (bool value)
 
bool getBool ()
 
void setInt8 (int8 value)
 
int8 getInt8 ()
 
void setInt16 (int16 value)
 
int16 getInt16 ()
 
void setInt32 (int32 value)
 
int32 getInt32 ()
 
void setInt64 (int64 value)
 
int64 getInt64 ()
 
void setUnsignedInt8 (uint8 value)
 
uint8 getUnsignedInt8 () const
 
void setUnsignedInt16 (uint16 value)
 
uint16 getUnsignedInt16 () const
 
void setUnsignedInt32 (uint32 value)
 
uint32 getUnsignedInt32 () const
 
void setUnsignedInt64 (uint64 value)
 
uint64 getUnsignedInt64 () const
 
void setFloat (float value)
 
float getFloat () const
 
void setDouble (double value)
 
double getDouble () const
 
void setString (const std::string &str)
 
const char * getString () const
 
void dump ()
 
void setNext (Value *next)
 
ValuegetNext () const
 

Public Attributes

ValueType m_type
 
size_t m_size
 
unsigned char * m_data
 
Valuem_next
 

Friends

struct ValueAllocator
 

Detailed Description

This class implements a value.


Values are used to store data types like boolean, integer, floats, double and many mode. To get an overview please check the enum VylueType (

See also
Value::ValueType ).

Values can be single items or lists of items. They are implemented as linked lists.

Member Enumeration Documentation

This enum describes the data type stored in the value.

Enumerator
ddl_none 

Nothing specified.

ddl_bool 

A boolean type.

ddl_int8 

Integer type, 8 bytes.

ddl_int16 

Integer type, 16 bytes.

ddl_int32 

Integer type, 32 bytes.

ddl_int64 

Integer type, 64 bytes.

ddl_unsigned_int8 

Unsigned integer type, 8 bytes.

ddl_unsigned_int16 

Unsigned integer type, 16 bytes.

ddl_unsigned_int32 

Unsigned integer type, 32 bytes.

ddl_unsigned_int64 

Unsigned integer type, 64 bytes.


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