fastdo  0.5.12
winux::Mixed类 参考

混合体,能表示多种类型的值 更多...

#include <utilities.hpp>

winux::Mixed 的协作图:

class  ArrayAssigner
 
class  CollectionAssigner
 
class  MixedLess
 

Public 类型

enum  MixedType : ushort {
  MT_NULL, MT_BOOLEAN, MT_BYTE, MT_SHORT,
  MT_USHORT, MT_INT, MT_UINT, MT_LONG,
  MT_ULONG, MT_INT64, MT_UINT64, MT_FLOAT,
  MT_DOUBLE, MT_ANSI, MT_UNICODE, MT_ARRAY,
  MT_COLLECTION, MT_BINARY
}
 
typedef std::map< Mixed, Mixed, MixedLessMixedMixedMap
 
typedef MixedMixedMap::value_type MixedMixedPair
 

Public 成员函数

 Mixed ()
 
 Mixed (AnsiString const &str)
 多字节字符串 更多...
 
 Mixed (UnicodeString const &str)
 Unicode字符串 更多...
 
 Mixed (char const *str, int len=-1)
 多字节字符串 更多...
 
 Mixed (wchar const *str, int len=-1)
 Unicode字符串 更多...
 
 Mixed (bool boolVal)
 
 Mixed (byte btVal)
 
 Mixed (short shVal)
 
 Mixed (ushort ushVal)
 
 Mixed (int iVal)
 
 Mixed (uint uiVal)
 
 Mixed (long lVal)
 
 Mixed (ulong ulVal)
 
 Mixed (float fltVal)
 
 Mixed (int64 i64Val)
 
 Mixed (uint64 ui64Val)
 
 Mixed (double dblVal)
 
 Mixed (Buffer const &buf)
 
 Mixed (void *binaryData, uint size, bool isPeek=false)
 
 Mixed (Mixed *arr, uint count)
 数组构造函数 更多...
 
template<typename _Ty >
 Mixed (std::vector< _Ty > const &arr)
 
template<typename _Ty , uint n>
 Mixed (_Ty(&arr)[n])
 
template<typename _KTy , typename _VTy , typename _Pr , typename _Alloc >
 Mixed (std::map< _KTy, _VTy, _Pr, _Alloc > const &m)
 Collection构造函数 更多...
 
template<typename _KTy , typename _VTy , uint count>
 Mixed (std::pair< _KTy, _VTy >(&pairs)[count])
 
template<typename _KTy , typename _VTy , uint count>
 Mixed (_KTy(&keys)[count], _VTy(&vals)[count])
 
 ~Mixed ()
 析构函数 更多...
 
 Mixed (Mixed const &other)
 拷贝构造函数 更多...
 
Mixedoperator= (Mixed const &other)
 拷贝赋值操作 更多...
 
 Mixed (Mixed &&other)
 移动构造函数 更多...
 
Mixedoperator= (Mixed &&other)
 移动赋值操作 更多...
 
 Mixed (Buffer &&buf)
 
void assign (Buffer &&buf)
 
 Mixed (GrowBuffer &&buf)
 
void assign (GrowBuffer &&buf)
 
void free ()
 释放相关资源 更多...
 
MixedType type () const
 取得类型 更多...
 
String const & typeString () const
 取得类型串 更多...
 
 operator AnsiString () const
 
 operator UnicodeString () const
 
 operator Buffer () const
 
 operator bool () const
 
 operator byte () const
 
 operator short () const
 
 operator ushort () const
 
 operator int () const
 
 operator uint () const
 
 operator long () const
 
 operator ulong () const
 
 operator float () const
 
 operator int64 () const
 
 operator uint64 () const
 
 operator double () const
 
AnsiString toAnsi () const
 
UnicodeString toUnicode () const
 
Buffer toBuffer () const
 
bool toBool () const
 
byte toByte () const
 
short toShort () const
 
ushort toUShort () const
 
int toInt () const
 
uint toUInt () const
 
long toLong () const
 
ulong toULong () const
 
float toFloat () const
 
int64 toInt64 () const
 
uint64 toUInt64 () const
 
double toDouble () const
 
bool operator== (Mixed const &other) const
 
bool operator< (Mixed const &other) const
 
bool operator!= (Mixed const &other) const
 
bool operator> (Mixed const &other) const
 
bool operator>= (Mixed const &other) const
 
bool operator<= (Mixed const &other) const
 
bool isNull () const
 
bool isArray () const
 
bool isCollection () const
 
bool isContainer () const
 
bool isBinary () const
 
bool isNumeric () const
 
bool isInteger () const
 
bool isAnsi () const
 
bool isUnicode () const
 
bool isString () const
 
MixedcreateString ()
 创建一个Ansi字符串,并设置type为MT_STRING 更多...
 
MixedcreateUnicode ()
 创建一个Unicode字符串,并设置type为MT_UNICODE 更多...
 
MixedcreateArray (uint count=0)
 创建一个数组,自动把先前的数据清空,并设置type为MT_ARRAY 更多...
 
MixedcreateCollection ()
 创建一个集合,自动把先前的数据清空,并设置type为MT_COLLECTION 更多...
 
MixedcreateBuffer (uint size=0)
 创建一个缓冲区,自动把先前的数据清空,并设置type为MT_BINARY 更多...
 
template<typename _Ty >
int getArray (std::vector< _Ty > *arr) const
 取得数组全部元素,必须是MT_ARRAY/MT_COLLECTION类型 更多...
 
template<typename _KTy >
int getKeys (std::vector< _KTy > *keys) const
 获取全部键名,必须是MT_COLLECTION类型 更多...
 
template<typename _KTy , typename _VTy >
int getMap (std::map< _KTy, _VTy > *m) const
 获取映射表,必须是MT_COLLECTION类型 更多...
 
bool isEmpty () const
 判断容器是否为空 更多...
 
int getCount () const
 获取Array/Collection元素个数 更多...
 
Mixedoperator[] (Mixed const &k)
 下标操作 更多...
 
Mixed const & operator[] (Mixed const &k) const
 const下标操作 更多...
 
template<typename _ChTy >
Mixedoperator[] (_ChTy const *k)
 下标操作 使兼容字符串指针 更多...
 
template<typename _ChTy >
Mixed const & operator[] (_ChTy const *k) const
 const下标操作 使兼容字符串指针 更多...
 
template<typename _Ty >
_Ty get (Mixed const &k) const
 当Mixed为Array或Collection类型时,get()能把指定'索引/Key'的元素按照指定类型取出来 更多...
 
MixedMixedMap::value_type & getPair (int i)
 Collection获取'键值对'索引操作 更多...
 
MixedMixedMap::value_type const & getPair (int i) const
 Collection获取'键值对'索引操作 更多...
 
CollectionAssigner addPair ()
 往Collection添加数据. 更多...
 
MixedaddPair (Mixed const &k, Mixed const &v)
 往Collection添加一个pair. 非Collection类型调用此函数会抛异常. 更多...
 
ArrayAssigner add ()
 往Array添加数据. 更多...
 
int add (Mixed const &v)
 往数组里加一个元素,返回索引值,非Array类型调用此函数会抛异常 更多...
 
int addUnique (Mixed const &v)
 往数组里加一个唯一元素,返回索引值,非Array类型调用此函数会抛异常 更多...
 
void del (Mixed const &k)
 删除一个元素,操作类型可以是Array或Collection,k分别代表索引或键名 更多...
 
bool has (Mixed const &ek) const
 判断元素是否存在,Array判断值是否存在,Collection判断键名是否存在 更多...
 
Mixedmerge (Mixed const &v)
 合并另一个容器或添加一个元素 更多...
 
void alloc (uint size)
 分配一块内存,自动释放先前数据,并设置type为MT_BINARY 更多...
 
bool peekCopy (bool copyCapacity=false)
 把窥探模式下的MT_BINARY类型变为拷贝模式,如果copyCapacity为true时连容量也一起拷贝,否则只拷贝数据。 更多...
 
int getSize () const
 取得缓冲区大小 更多...
 
void * getBuf () const
 暴露缓冲区指针 更多...
 
void assign (char const *str, int len=-1)
 
void assign (wchar const *str, int len=-1)
 
void assign (bool boolVal)
 
void assign (byte btVal)
 
void assign (short shVal)
 
void assign (ushort ushVal)
 
void assign (int iVal)
 
void assign (uint uiVal)
 
void assign (long lVal)
 
void assign (ulong ulVal)
 
void assign (float fltVal)
 
void assign (int64 i64Val)
 
void assign (uint64 ui64Val)
 
void assign (double dblVal)
 
void assign (Buffer const &buf)
 
void assign (void *binaryData, uint size, bool isPeek=false)
 二进制数据赋值 更多...
 
void assign (Mixed *arr, uint count)
 数组赋值 更多...
 
template<typename _Ty >
void assign (std::vector< _Ty > const &arr)
 
template<typename _Ty , uint n>
void assign (_Ty(&arr)[n])
 
template<typename _KTy , typename _VTy , typename _Pr , typename _Alloc >
void assign (std::map< _KTy, _VTy, _Pr, _Alloc > const &m)
 用map给Collection赋值 更多...
 
template<typename _KTy , typename _VTy , uint count>
void assign (std::pair< _KTy, _VTy >(&pairs)[count])
 用pairs给Collection赋值 更多...
 
template<typename _KTy , typename _VTy , uint count>
void assign (_KTy(&keys)[count], _VTy(&vals)[count])
 用数组给Collection赋值 更多...
 
String json () const
 
String myJson () const
 
Mixedjson (String const &jsonStr)
 

静态 Public 成员函数

static String const & TypeString (MixedType type)
 输出指定类型的字符串表示 更多...
 
static bool ParseBool (AnsiString const &str, bool *boolVal)
 parse bool 更多...
 
static bool ParseBool (UnicodeString const &str, bool *boolVal)
 
static bool ParseULong (AnsiString const &str, ulong *ulVal)
 parse ulong 更多...
 
static bool ParseULong (UnicodeString const &str, ulong *ulVal)
 
static bool ParseDouble (AnsiString const &str, double *dblVal)
 parse double 更多...
 
static bool ParseDouble (UnicodeString const &str, double *dblVal)
 
static bool ParseUInt64 (AnsiString const &str, uint64 *ui64Val)
 parse uint64 更多...
 
static bool ParseUInt64 (UnicodeString const &str, uint64 *ui64Val)
 
static MixedParseJson (AnsiString const &str, Mixed *val)
 parse array or collection, it parse a json 更多...
 

Public 属性

MixedType _type
 
union {
   double   _dblVal
 
   uint64   _ui64Val
 
   int64   _i64Val
 
   float   _fltVal
 
   ulong   _ulVal
 
   long   _lVal
 
   uint   _uiVal
 
   int   _iVal
 
   ushort   _ushVal
 
   short   _shVal
 
   byte   _btVal
 
   bool   _boolVal
 
   struct {
      union {
         AnsiString *   _pStr
 
         UnicodeString *   _pWStr
 
      } 
 
   } 
 
   struct {
      MixedArray *   _pArr
 
      MixedMixedMap *   _pMap
 
   } 
 
   struct {
      Buffer *   _pBuf
 
   } 
 
}; 
 

详细描述

混合体,能表示多种类型的值

在文件 utilities.hpp586 行定义.

成员类型定义说明

在文件 utilities.hpp618 行定义.

typedef MixedMixedMap::value_type winux::Mixed::MixedMixedPair

在文件 utilities.hpp619 行定义.

成员枚举类型说明

枚举值
MT_NULL 
MT_BOOLEAN 
MT_BYTE 
MT_SHORT 
MT_USHORT 
MT_INT 
MT_UINT 
MT_LONG 
MT_ULONG 
MT_INT64 
MT_UINT64 
MT_FLOAT 
MT_DOUBLE 
MT_ANSI 
MT_UNICODE 
MT_ARRAY 

数组类型,利用STL vector<Mixed>存储的Mixed数组

MT_COLLECTION 

Collection类型,利用数组存储key体现次序,然后用Map存储k/v对

MT_BINARY 

二进制数据类型,利用Buffer类对象存储的二进制数据

在文件 utilities.hpp589 行定义.

构造及析构函数说明

winux::Mixed::Mixed ( )
winux::Mixed::Mixed ( AnsiString const &  str)

多字节字符串

winux::Mixed::Mixed ( UnicodeString const &  str)

Unicode字符串

winux::Mixed::Mixed ( char const *  str,
int  len = -1 
)

多字节字符串

winux::Mixed::Mixed ( wchar const *  str,
int  len = -1 
)

Unicode字符串

winux::Mixed::Mixed ( bool  boolVal)
winux::Mixed::Mixed ( byte  btVal)
winux::Mixed::Mixed ( short  shVal)
winux::Mixed::Mixed ( ushort  ushVal)
winux::Mixed::Mixed ( int  iVal)
winux::Mixed::Mixed ( uint  uiVal)
winux::Mixed::Mixed ( long  lVal)
winux::Mixed::Mixed ( ulong  ulVal)
winux::Mixed::Mixed ( float  fltVal)
winux::Mixed::Mixed ( int64  i64Val)
winux::Mixed::Mixed ( uint64  ui64Val)
winux::Mixed::Mixed ( double  dblVal)
winux::Mixed::Mixed ( Buffer const &  buf)
winux::Mixed::Mixed ( void *  binaryData,
uint  size,
bool  isPeek = false 
)
winux::Mixed::Mixed ( Mixed arr,
uint  count 
)

数组构造函数

template<typename _Ty >
winux::Mixed::Mixed ( std::vector< _Ty > const &  arr)
inline

在文件 utilities.hpp684 行定义.

template<typename _Ty , uint n>
winux::Mixed::Mixed ( _Ty(&)  arr[n])
inline

在文件 utilities.hpp698 行定义.

template<typename _KTy , typename _VTy , typename _Pr , typename _Alloc >
winux::Mixed::Mixed ( std::map< _KTy, _VTy, _Pr, _Alloc > const &  m)
inline

Collection构造函数

在文件 utilities.hpp713 行定义.

template<typename _KTy , typename _VTy , uint count>
winux::Mixed::Mixed ( std::pair< _KTy, _VTy >(&)  pairs[count])
inline

在文件 utilities.hpp721 行定义.

template<typename _KTy , typename _VTy , uint count>
winux::Mixed::Mixed ( _KTy(&)  keys[count],
_VTy(&)  vals[count] 
)
inline

在文件 utilities.hpp728 行定义.

winux::Mixed::~Mixed ( )

析构函数

winux::Mixed::Mixed ( Mixed const &  other)

拷贝构造函数

winux::Mixed::Mixed ( Mixed &&  other)

移动构造函数

winux::Mixed::Mixed ( Buffer &&  buf)
winux::Mixed::Mixed ( GrowBuffer &&  buf)

成员函数说明

ArrayAssigner winux::Mixed::add ( )

往Array添加数据.

如果不是Array,则自动释放之前数据,创建Array.

int winux::Mixed::add ( Mixed const &  v)

往数组里加一个元素,返回索引值,非Array类型调用此函数会抛异常

CollectionAssigner winux::Mixed::addPair ( )

往Collection添加数据.

如果不是Collection,则自动释放之前数据,创建Collection.

Mixed& winux::Mixed::addPair ( Mixed const &  k,
Mixed const &  v 
)

往Collection添加一个pair. 非Collection类型调用此函数会抛异常.

int winux::Mixed::addUnique ( Mixed const &  v)

往数组里加一个唯一元素,返回索引值,非Array类型调用此函数会抛异常

void winux::Mixed::alloc ( uint  size)

分配一块内存,自动释放先前数据,并设置type为MT_BINARY

void winux::Mixed::assign ( Buffer &&  buf)
void winux::Mixed::assign ( GrowBuffer &&  buf)
void winux::Mixed::assign ( char const *  str,
int  len = -1 
)
void winux::Mixed::assign ( wchar const *  str,
int  len = -1 
)
void winux::Mixed::assign ( bool  boolVal)
void winux::Mixed::assign ( byte  btVal)
void winux::Mixed::assign ( short  shVal)
void winux::Mixed::assign ( ushort  ushVal)
void winux::Mixed::assign ( int  iVal)
void winux::Mixed::assign ( uint  uiVal)
void winux::Mixed::assign ( long  lVal)
void winux::Mixed::assign ( ulong  ulVal)
void winux::Mixed::assign ( float  fltVal)
void winux::Mixed::assign ( int64  i64Val)
void winux::Mixed::assign ( uint64  ui64Val)
void winux::Mixed::assign ( double  dblVal)
void winux::Mixed::assign ( Buffer const &  buf)
void winux::Mixed::assign ( void *  binaryData,
uint  size,
bool  isPeek = false 
)

二进制数据赋值

void winux::Mixed::assign ( Mixed arr,
uint  count 
)

数组赋值

template<typename _Ty >
void winux::Mixed::assign ( std::vector< _Ty > const &  arr)
inline

在文件 utilities.hpp982 行定义.

template<typename _Ty , uint n>
void winux::Mixed::assign ( _Ty(&)  arr[n])
inline

在文件 utilities.hpp996 行定义.

template<typename _KTy , typename _VTy , typename _Pr , typename _Alloc >
void winux::Mixed::assign ( std::map< _KTy, _VTy, _Pr, _Alloc > const &  m)
inline

用map给Collection赋值

在文件 utilities.hpp1011 行定义.

template<typename _KTy , typename _VTy , uint count>
void winux::Mixed::assign ( std::pair< _KTy, _VTy >(&)  pairs[count])
inline

用pairs给Collection赋值

在文件 utilities.hpp1029 行定义.

template<typename _KTy , typename _VTy , uint count>
void winux::Mixed::assign ( _KTy(&)  keys[count],
_VTy(&)  vals[count] 
)
inline

用数组给Collection赋值

在文件 utilities.hpp1045 行定义.

函数调用图:

Mixed& winux::Mixed::createArray ( uint  count = 0)

创建一个数组,自动把先前的数据清空,并设置type为MT_ARRAY

Mixed& winux::Mixed::createBuffer ( uint  size = 0)

创建一个缓冲区,自动把先前的数据清空,并设置type为MT_BINARY

Mixed& winux::Mixed::createCollection ( )

创建一个集合,自动把先前的数据清空,并设置type为MT_COLLECTION

Mixed& winux::Mixed::createString ( )

创建一个Ansi字符串,并设置type为MT_STRING

Mixed& winux::Mixed::createUnicode ( )

创建一个Unicode字符串,并设置type为MT_UNICODE

void winux::Mixed::del ( Mixed const &  k)

删除一个元素,操作类型可以是Array或Collection,k分别代表索引或键名

void winux::Mixed::free ( )

释放相关资源

template<typename _Ty >
_Ty winux::Mixed::get ( Mixed const &  k) const
inline

当Mixed为Array或Collection类型时,get()能把指定'索引/Key'的元素按照指定类型取出来

在文件 utilities.hpp889 行定义.

template<typename _Ty >
int winux::Mixed::getArray ( std::vector< _Ty > *  arr) const
inline

取得数组全部元素,必须是MT_ARRAY/MT_COLLECTION类型

在文件 utilities.hpp837 行定义.

void* winux::Mixed::getBuf ( ) const

暴露缓冲区指针

int winux::Mixed::getCount ( ) const

获取Array/Collection元素个数

即使Mixed不是Array/Collection类型也不会报错,此时会返回0。

template<typename _KTy >
int winux::Mixed::getKeys ( std::vector< _KTy > *  keys) const
inline

获取全部键名,必须是MT_COLLECTION类型

在文件 utilities.hpp848 行定义.

template<typename _KTy , typename _VTy >
int winux::Mixed::getMap ( std::map< _KTy, _VTy > *  m) const
inline

获取映射表,必须是MT_COLLECTION类型

在文件 utilities.hpp859 行定义.

MixedMixedMap::value_type& winux::Mixed::getPair ( int  i)

Collection获取'键值对'索引操作

MixedMixedMap::value_type const& winux::Mixed::getPair ( int  i) const

Collection获取'键值对'索引操作

int winux::Mixed::getSize ( ) const

取得缓冲区大小

bool winux::Mixed::has ( Mixed const &  ek) const

判断元素是否存在,Array判断值是否存在,Collection判断键名是否存在

即使Mixed不是Array/Collection类型也不会报错,此时会返回false。

bool winux::Mixed::isAnsi ( ) const
inline

在文件 utilities.hpp817 行定义.

bool winux::Mixed::isArray ( ) const
inline

在文件 utilities.hpp811 行定义.

bool winux::Mixed::isBinary ( ) const
inline

在文件 utilities.hpp814 行定义.

bool winux::Mixed::isCollection ( ) const
inline

在文件 utilities.hpp812 行定义.

bool winux::Mixed::isContainer ( ) const
inline

在文件 utilities.hpp813 行定义.

bool winux::Mixed::isEmpty ( ) const
inline

判断容器是否为空

在文件 utilities.hpp869 行定义.

bool winux::Mixed::isInteger ( ) const
inline

在文件 utilities.hpp816 行定义.

bool winux::Mixed::isNull ( ) const
inline

在文件 utilities.hpp810 行定义.

bool winux::Mixed::isNumeric ( ) const
inline

在文件 utilities.hpp815 行定义.

bool winux::Mixed::isString ( ) const
inline

在文件 utilities.hpp819 行定义.

bool winux::Mixed::isUnicode ( ) const
inline

在文件 utilities.hpp818 行定义.

String winux::Mixed::json ( ) const
Mixed& winux::Mixed::json ( String const &  jsonStr)
Mixed& winux::Mixed::merge ( Mixed const &  v)

合并另一个容器或添加一个元素

非Array/Collection类型调用此函数会抛异常

String winux::Mixed::myJson ( ) const
winux::Mixed::operator AnsiString ( ) const
winux::Mixed::operator bool ( ) const
winux::Mixed::operator Buffer ( ) const
winux::Mixed::operator byte ( ) const
winux::Mixed::operator double ( ) const
winux::Mixed::operator float ( ) const
winux::Mixed::operator int ( ) const
winux::Mixed::operator int64 ( ) const
winux::Mixed::operator long ( ) const
winux::Mixed::operator short ( ) const
winux::Mixed::operator uint ( ) const
winux::Mixed::operator uint64 ( ) const
winux::Mixed::operator ulong ( ) const
winux::Mixed::operator UnicodeString ( ) const
winux::Mixed::operator ushort ( ) const
bool winux::Mixed::operator!= ( Mixed const &  other) const
inline

在文件 utilities.hpp804 行定义.

bool winux::Mixed::operator< ( Mixed const &  other) const
bool winux::Mixed::operator<= ( Mixed const &  other) const
inline

在文件 utilities.hpp807 行定义.

Mixed& winux::Mixed::operator= ( Mixed const &  other)

拷贝赋值操作

Mixed& winux::Mixed::operator= ( Mixed &&  other)

移动赋值操作

bool winux::Mixed::operator== ( Mixed const &  other) const
bool winux::Mixed::operator> ( Mixed const &  other) const
inline

在文件 utilities.hpp805 行定义.

bool winux::Mixed::operator>= ( Mixed const &  other) const
inline

在文件 utilities.hpp806 行定义.

Mixed& winux::Mixed::operator[] ( Mixed const &  k)

下标操作

Mixed const& winux::Mixed::operator[] ( Mixed const &  k) const

const下标操作

template<typename _ChTy >
Mixed& winux::Mixed::operator[] ( _ChTy const *  k)
inline

下标操作 使兼容字符串指针

在文件 utilities.hpp882 行定义.

template<typename _ChTy >
Mixed const& winux::Mixed::operator[] ( _ChTy const *  k) const
inline

const下标操作 使兼容字符串指针

在文件 utilities.hpp885 行定义.

static bool winux::Mixed::ParseBool ( AnsiString const &  str,
bool *  boolVal 
)
static

parse bool

static bool winux::Mixed::ParseBool ( UnicodeString const &  str,
bool *  boolVal 
)
static
static bool winux::Mixed::ParseDouble ( AnsiString const &  str,
double *  dblVal 
)
static

parse double

static bool winux::Mixed::ParseDouble ( UnicodeString const &  str,
double *  dblVal 
)
static
static Mixed& winux::Mixed::ParseJson ( AnsiString const &  str,
Mixed val 
)
static

parse array or collection, it parse a json

static bool winux::Mixed::ParseUInt64 ( AnsiString const &  str,
uint64 ui64Val 
)
static

parse uint64

static bool winux::Mixed::ParseUInt64 ( UnicodeString const &  str,
uint64 ui64Val 
)
static
static bool winux::Mixed::ParseULong ( AnsiString const &  str,
ulong ulVal 
)
static

parse ulong

static bool winux::Mixed::ParseULong ( UnicodeString const &  str,
ulong ulVal 
)
static
bool winux::Mixed::peekCopy ( bool  copyCapacity = false)

把窥探模式下的MT_BINARY类型变为拷贝模式,如果copyCapacity为true时连容量也一起拷贝,否则只拷贝数据。

AnsiString winux::Mixed::toAnsi ( ) const
inline

在文件 utilities.hpp785 行定义.

bool winux::Mixed::toBool ( ) const
inline

在文件 utilities.hpp788 行定义.

Buffer winux::Mixed::toBuffer ( ) const
inline

在文件 utilities.hpp787 行定义.

byte winux::Mixed::toByte ( ) const
inline

在文件 utilities.hpp789 行定义.

double winux::Mixed::toDouble ( ) const
inline

在文件 utilities.hpp799 行定义.

float winux::Mixed::toFloat ( ) const
inline

在文件 utilities.hpp796 行定义.

int winux::Mixed::toInt ( ) const
inline

在文件 utilities.hpp792 行定义.

int64 winux::Mixed::toInt64 ( ) const
inline

在文件 utilities.hpp797 行定义.

long winux::Mixed::toLong ( ) const
inline

在文件 utilities.hpp794 行定义.

short winux::Mixed::toShort ( ) const
inline

在文件 utilities.hpp790 行定义.

uint winux::Mixed::toUInt ( ) const
inline

在文件 utilities.hpp793 行定义.

uint64 winux::Mixed::toUInt64 ( ) const
inline

在文件 utilities.hpp798 行定义.

ulong winux::Mixed::toULong ( ) const
inline

在文件 utilities.hpp795 行定义.

UnicodeString winux::Mixed::toUnicode ( ) const
inline

在文件 utilities.hpp786 行定义.

ushort winux::Mixed::toUShort ( ) const
inline

在文件 utilities.hpp791 行定义.

MixedType winux::Mixed::type ( ) const
inline

取得类型

在文件 utilities.hpp761 行定义.

static String const& winux::Mixed::TypeString ( MixedType  type)
static

输出指定类型的字符串表示

String const& winux::Mixed::typeString ( ) const
inline

取得类型串

在文件 utilities.hpp763 行定义.

类成员变量说明

union { ... }
bool winux::Mixed::_boolVal

在文件 utilities.hpp636 行定义.

byte winux::Mixed::_btVal

在文件 utilities.hpp635 行定义.

double winux::Mixed::_dblVal

在文件 utilities.hpp625 行定义.

float winux::Mixed::_fltVal

在文件 utilities.hpp628 行定义.

int64 winux::Mixed::_i64Val

在文件 utilities.hpp627 行定义.

int winux::Mixed::_iVal

在文件 utilities.hpp632 行定义.

long winux::Mixed::_lVal

在文件 utilities.hpp630 行定义.

MixedArray* winux::Mixed::_pArr

在文件 utilities.hpp647 行定义.

Buffer* winux::Mixed::_pBuf

在文件 utilities.hpp652 行定义.

MixedMixedMap* winux::Mixed::_pMap

在文件 utilities.hpp648 行定义.

AnsiString* winux::Mixed::_pStr

在文件 utilities.hpp641 行定义.

UnicodeString* winux::Mixed::_pWStr

在文件 utilities.hpp642 行定义.

short winux::Mixed::_shVal

在文件 utilities.hpp634 行定义.

MixedType winux::Mixed::_type

在文件 utilities.hpp621 行定义.

uint64 winux::Mixed::_ui64Val

在文件 utilities.hpp626 行定义.

uint winux::Mixed::_uiVal

在文件 utilities.hpp631 行定义.

ulong winux::Mixed::_ulVal

在文件 utilities.hpp629 行定义.

ushort winux::Mixed::_ushVal

在文件 utilities.hpp633 行定义.


该类的文档由以下文件生成: