Pyro higlevel API
Public Member Functions | List of all members
os::Variant Class Reference

Public Member Functions

 Variant ()
 
 Variant (int nValue)
 
 Variant (int64 nValue)
 
 Variant (float vValue)
 
 Variant (double vValue)
 
 Variant (bool bValue)
 
 Variant (const String &cString)
 
 Variant (const Point &cValue)
 
 Variant (const IPoint &cValue)
 
 Variant (const Rect &cValue)
 
 Variant (const IRect &cValue)
 
 Variant (const Message &cValue)
 
 Variant (const Color32 &cValue)
 
 Variant (void *pValue)
 
 Variant (void *pData, int nSize)
 
 Variant (const Variant &cOther)
 
 ~Variant ()
 
void SetInt8 (int8 nValue)
 
void SetInt16 (int16 nValue)
 
void SetInt32 (int32 nValue)
 
void SetInt64 (int64 nValue)
 
void SetFloat (float vValue)
 
void SetDouble (double vValue)
 
void SetBool (bool bValue)
 
void SetString (const String &cValue)
 
void SetPoint (const Point &cValue)
 
void SetIPoint (const IPoint &cValue)
 
void SetRect (const Rect &cValue)
 
void SetIRect (const IRect &cValue)
 
void SetColor32 (const Color32 &cValue)
 
void SetPointer (void *pValue)
 
void SetRaw (const void *pData, int nSize)
 
int8 AsInt8 () const
 
int16 AsInt16 () const
 
int32 AsInt32 () const
 
int64 AsInt64 () const
 
float AsFloat () const
 
double AsDouble () const
 
bool AsBool () const
 
String AsString () const
 
Point AsPoint () const
 
IPoint AsIPoint () const
 
Rect AsRect () const
 
IRect AsIRect () const
 
Color32 AsColor32 () const
 
void * AsPointer () const
 
void * AsRaw (size_t *pnSize)
 
Variantoperator= (int8 nValue)
 
Variantoperator= (int16 nValue)
 
Variantoperator= (int32 nValue)
 
Variantoperator= (int64 nValue)
 
Variantoperator= (float vValue)
 
Variantoperator= (double vValue)
 
Variantoperator= (bool bValue)
 
Variantoperator= (const String &cValue)
 
Variantoperator= (const Point &cValue)
 
Variantoperator= (const IPoint &cValue)
 
Variantoperator= (const Rect &cValue)
 
Variantoperator= (const IRect &cValue)
 
Variantoperator= (const Color32 &cValue)
 
Variantoperator= (const Variant &cValue)
 
 operator int () const
 
 operator int64 () const
 
 operator float () const
 
 operator double () const
 
 operator bool () const
 
 operator String () const
 
 operator Point () const
 
 operator IPoint () const
 
 operator Rect () const
 
 operator IRect () const
 
 operator Color32 () const
 
bool operator== (const Variant &cValue) const
 
bool operator!= (const Variant &cValue) const
 
size_t GetFlattenedSize () const
 
status_t Flatten (void *pBuffer, size_t nBufSize) const
 
status_t Unflatten (const void *pBuffer, size_t nBufSize)
 

Constructor & Destructor Documentation

Variant::Variant ( )

References os::T_ANY_TYPE.

Variant::Variant ( int  nValue)

References os::T_INT32.

Variant::Variant ( int64  nValue)

References os::T_INT64.

Variant::Variant ( float  vValue)

References os::T_FLOAT.

Variant::Variant ( double  vValue)

References os::T_DOUBLE.

Variant::Variant ( bool  bValue)

References os::T_BOOL.

Variant::Variant ( const String cString)
Variant::Variant ( const Point cValue)

References HEAP_ALLOC, and os::T_POINT.

Variant::Variant ( const IPoint cValue)

References HEAP_ALLOC, and os::T_IPOINT.

Variant::Variant ( const Rect cValue)

References HEAP_ALLOC, and os::T_RECT.

Variant::Variant ( const IRect cValue)

References HEAP_ALLOC, and os::T_IRECT.

Variant::Variant ( const Message cValue)
Variant::Variant ( const Color32 cValue)

References HEAP_ALLOC, and os::T_COLOR32.

Variant::Variant ( void *  pValue)

References os::T_POINTER.

Variant::Variant ( void *  pData,
int  nSize 
)

References nSize, and os::T_RAW.

Variant::Variant ( const Variant cOther)

References os::T_ANY_TYPE.

Variant::~Variant ( )

Member Function Documentation

bool Variant::AsBool ( ) const
Color32 Variant::AsColor32 ( ) const
double Variant::AsDouble ( ) const
float Variant::AsFloat ( ) const
int16 Variant::AsInt16 ( ) const
int32 Variant::AsInt32 ( ) const
int64 Variant::AsInt64 ( ) const
int8 Variant::AsInt8 ( ) const
IPoint Variant::AsIPoint ( ) const

References os::T_IPOINT, os::T_IRECT, os::T_POINT, and os::T_RECT.

Referenced by operator==().

IRect Variant::AsIRect ( ) const

References os::T_IPOINT, os::T_IRECT, os::T_POINT, and os::T_RECT.

Referenced by operator==().

Point Variant::AsPoint ( ) const

References os::T_IPOINT, os::T_IRECT, os::T_POINT, and os::T_RECT.

Referenced by operator==().

void * Variant::AsPointer ( ) const

References os::T_POINTER.

void * Variant::AsRaw ( size_t *  pnSize)

References os::T_RAW.

Rect Variant::AsRect ( ) const

References os::T_IPOINT, os::T_IRECT, os::T_POINT, and os::T_RECT.

Referenced by operator==().

String Variant::AsString ( ) const
status_t Variant::Flatten ( void *  pBuffer,
size_t  nBufSize 
) const
size_t Variant::GetFlattenedSize ( void  ) const
Variant::operator bool ( ) const
Variant::operator Color32 ( ) const
Variant::operator double ( ) const
Variant::operator float ( ) const
Variant::operator int ( ) const
Variant::operator int64 ( ) const
Variant::operator IPoint ( ) const
Variant::operator IRect ( ) const
Variant::operator Point ( ) const
Variant::operator Rect ( ) const
Variant::operator String ( ) const
bool Variant::operator!= ( const Variant cValue) const
Variant & Variant::operator= ( int8  nValue)

References SetInt8().

Variant & Variant::operator= ( int16  nValue)

References SetInt16().

Variant & Variant::operator= ( int32  nValue)

References SetInt32().

Variant & Variant::operator= ( int64  nValue)

References SetInt64().

Variant & Variant::operator= ( float  vValue)

References SetFloat().

Variant & Variant::operator= ( double  vValue)

References SetDouble().

Variant & Variant::operator= ( bool  bValue)

References SetBool().

Variant & Variant::operator= ( const String cValue)

References SetString().

Variant & Variant::operator= ( const Point cValue)

References SetPoint().

Variant & Variant::operator= ( const IPoint cValue)

References SetIPoint().

Variant & Variant::operator= ( const Rect cValue)

References SetRect().

Variant & Variant::operator= ( const IRect cValue)

References SetIRect().

Variant & Variant::operator= ( const Color32 cValue)

References SetColor32().

Variant & Variant::operator= ( const Variant cValue)
bool Variant::operator== ( const Variant cValue) const
void Variant::SetBool ( bool  bValue)

References os::T_BOOL.

Referenced by operator=().

void Variant::SetColor32 ( const Color32 cValue)

References HEAP_ALLOC, and os::T_COLOR32.

Referenced by operator=().

void Variant::SetDouble ( double  vValue)

References os::T_DOUBLE.

Referenced by operator=().

void Variant::SetFloat ( float  vValue)

References os::T_FLOAT.

Referenced by operator=().

void Variant::SetInt16 ( int16  nValue)

References os::T_INT16.

Referenced by operator=().

void Variant::SetInt32 ( int32  nValue)

References os::T_INT32.

Referenced by operator=().

void Variant::SetInt64 ( int64  nValue)

References os::T_INT64.

Referenced by operator=().

void Variant::SetInt8 ( int8  nValue)

References os::T_INT8.

Referenced by operator=().

void Variant::SetIPoint ( const IPoint cValue)

References HEAP_ALLOC, and os::T_IPOINT.

Referenced by operator=().

void Variant::SetIRect ( const IRect cValue)

References HEAP_ALLOC, and os::T_IRECT.

Referenced by operator=().

void Variant::SetPoint ( const Point cValue)

References HEAP_ALLOC, and os::T_POINT.

Referenced by operator=().

void Variant::SetPointer ( void *  pValue)

References os::T_POINTER.

void Variant::SetRaw ( const void *  pData,
int  nSize 
)

References nSize, and os::T_RAW.

void Variant::SetRect ( const Rect cValue)

References HEAP_ALLOC, and os::T_RECT.

Referenced by operator=().

void Variant::SetString ( const String cValue)
status_t Variant::Unflatten ( const void *  pBuffer,
size_t  nBufSize 
)

Member Data Documentation

bool os::Variant::bBool

Referenced by operator==().

int32 os::Variant::nInt32

Referenced by operator==().

int64 os::Variant::nInt64

Referenced by operator==().

size_t os::Variant::nSize

Referenced by SetRaw(), Unflatten(), and Variant().

void* os::Variant::pBuffer

Referenced by Unflatten().

void* os::Variant::pData

Referenced by operator==().

char* os::Variant::pzString

Referenced by operator=(), and operator==().

struct { ... } os::Variant::sBuffer

Referenced by operator=(), and operator==().

double os::Variant::vDouble

Referenced by operator==().

float os::Variant::vFloat

Referenced by operator==().