|
fastdo
0.6.16
|
混合体,能表示多种类型的值 更多...
#include <utilities.hpp>

类 | |
| class | ArrayAssigner |
| class | CollectionAssigner |
Public 类型 | |
| enum | MixedType : uint { MT_NULL, MT_BOOLEAN, MT_CHAR, 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_BINARY, MT_ARRAY, MT_COLLECTION } |
| 混合体类型识别常量 更多... | |
Public 成员函数 | |
| Mixed () | |
| Mixed (std::nullptr_t) | |
| Mixed (void const *)=delete | |
| 删除void*的构造函数 更多... | |
| Mixed (bool boolVal) | |
| Mixed (char chVal) | |
| 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 (AnsiString const &str) | |
| 多字节字符串 更多... | |
| Mixed (UnicodeString const &str) | |
| Unicode字符串 更多... | |
| Mixed (AnsiString &&str) | |
| 多字节字符串 更多... | |
| Mixed (UnicodeString &&str) | |
| Unicode字符串 更多... | |
| Mixed (char const *str, size_t len=npos) | |
| 多字节字符串 更多... | |
| Mixed (wchar const *str, size_t len=npos) | |
| Unicode字符串 更多... | |
| Mixed (Buffer const &buf) | |
| Mixed (void const *binaryData, size_t size, bool isPeek=false) | |
| Mixed (Buffer &&buf) | |
| Mixed (GrowBuffer &&buf) | |
| Mixed (Mixed *arr, size_t count) | |
| 数组构造函数 更多... | |
| template<typename _Ty , typename _Alloc > | |
| Mixed (std::vector< _Ty, _Alloc > const &arr) | |
| 数组构造函数 更多... | |
| template<typename _Ty , size_t _Count> | |
| Mixed (_Ty(&arr)[_Count]) | |
| 数组构造函数 更多... | |
| Mixed (std::initializer_list< Mixed > &&list) | |
| 数组构造函数 更多... | |
| Mixed ($a &&arr) | |
| 数组构造函数 更多... | |
| template<typename _KTy , typename _VTy , typename _Pr , typename _Alloc > | |
| Mixed (std::map< _KTy, _VTy, _Pr, _Alloc > const &m, bool caseInsensitive=false) | |
| Collection构造函数 更多... | |
| template<typename _KTy , typename _VTy , size_t _Count> | |
| Mixed (std::pair< _KTy, _VTy >(&pairs)[_Count], bool caseInsensitive=false) | |
| Collection构造函数 更多... | |
| Mixed ($c &&coll, bool caseInsensitive=false) | |
| Collection构造函数 更多... | |
| Mixed (Collection const &coll, bool caseInsensitive=false) | |
| Collection构造函数 更多... | |
| Mixed (Mixed const &other) | |
| 拷贝构造函数 更多... | |
| Mixed & | operator= (Mixed const &other) |
| 拷贝赋值操作 更多... | |
| Mixed (Mixed &&other) | |
| 移动构造函数 更多... | |
| Mixed & | operator= (Mixed &&other) |
| 移动赋值操作 更多... | |
| ~Mixed () | |
| 析构函数 更多... | |
| void | free () |
| 释放相关资源 更多... | |
| MixedType | type () const |
| 取得类型 更多... | |
| template<typename _ChTy > | |
| XString< _ChTy > & | refString () |
| template<typename _ChTy > | |
| XString< _ChTy > const & | refString () const |
| template<typename _Ty > | |
| _Ty & | ref () |
| template<typename _Ty > | |
| _Ty const & | ref () const |
| bool & | refBool () |
| bool const & | refBool () const |
| char & | refChar () |
| char const & | refChar () const |
| byte & | refByte () |
| byte const & | refByte () const |
| short & | refShort () |
| short const & | refShort () const |
| ushort & | refUShort () |
| ushort const & | refUShort () const |
| int & | refInt () |
| int const & | refInt () const |
| uint & | refUInt () |
| uint const & | refUInt () const |
| long & | refLong () |
| long const & | refLong () const |
| ulong & | refULong () |
| ulong const & | refULong () const |
| int64 & | refInt64 () |
| int64 const & | refInt64 () const |
| uint64 & | refUInt64 () |
| uint64 const & | refUInt64 () const |
| float & | refFloat () |
| float const & | refFloat () const |
| double & | refDouble () |
| double const & | refDouble () const |
| AnsiString & | refAnsi () |
| AnsiString const & | refAnsi () const |
| UnicodeString & | refUnicode () |
| UnicodeString const & | refUnicode () const |
| Buffer & | refBuffer () |
| Buffer const & | refBuffer () const |
| MixedArray & | refArray () |
| MixedArray const & | refArray () const |
| Collection & | refCollection () |
| Collection const & | refCollection () 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 | |
| operator AnsiString () const | |
| operator UnicodeString () const | |
| operator Buffer () const | |
| operator MixedArray () const | |
| operator Collection () const | |
| bool | toBool () const |
| char | toChar () 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 |
| template<typename _ChTy > | |
| XString< _ChTy > | toString () const |
| AnsiString | toAnsi () const |
| UnicodeString | toUnicode () const |
| Buffer | toBuffer () const |
| MixedArray | toArray () const |
| Collection | toCollection () const |
| template<typename _Ty > | |
| _Ty | to () 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 | isNumeric () const |
| bool | isInteger () const |
| bool | isString () const |
| bool | isSequence () const |
| bool | isAnsi () const |
| bool | isUnicode () const |
| bool | isBinary () const |
| bool | isContainer () const |
| bool | isArray () const |
| bool | isCollection () const |
| template<typename _ChTy > | |
| Mixed & | createString () |
创建一个字符串,根据_ChTy设置type为MT_ANSI或MT_UNICODE 更多... | |
| template<typename _ChTy > | |
| Mixed & | createString (XString< _ChTy > const &str) |
创建一个字符串,根据_ChTy设置type为MT_ANSI或MT_UNICODE 更多... | |
| template<typename _ChTy > | |
| Mixed & | createString (XString< _ChTy > &&str) |
创建一个字符串,根据_ChTy设置type为MT_ANSI或MT_UNICODE 更多... | |
| Mixed & | createAnsi (AnsiString const &str) |
创建一个Ansi字符串,并设置type为MT_ANSI 更多... | |
| Mixed & | createAnsi (AnsiString &&str=Literal< char >::emptyStr) |
创建一个Ansi字符串,并设置type为MT_ANSI 更多... | |
| Mixed & | createUnicode (UnicodeString const &str) |
创建一个Unicode字符串,并设置type为MT_UNICODE 更多... | |
| Mixed & | createUnicode (UnicodeString &&str=Literal< wchar >::emptyStr) |
创建一个Unicode字符串,并设置type为MT_UNICODE 更多... | |
| Mixed & | createBuffer (size_t size=0) |
创建一个缓冲区,自动把先前的数据清空,并设置type为MT_BINARY 更多... | |
| Mixed & | createArray (size_t count=0) |
创建一个数组,自动把先前的数据清空,并设置type为MT_ARRAY 更多... | |
| Mixed & | createCollection (bool caseInsensitive=false) |
创建一个集合,自动把先前的数据清空,并设置type为MT_COLLECTION 更多... | |
| void | alloc (size_t size, bool setDataSize=true) |
分配一块内存,自动释放先前数据,并设置type为MT_BINARY 更多... | |
| bool | peekCopy (bool copyCapacity=false) |
把窥探模式下的MT_BINARY类型变为拷贝模式,如果copyCapacity为true时连容量也一起拷贝,否则只拷贝数据。 更多... | |
| void * | getBuf () const |
| 暴露缓冲区指针 更多... | |
| template<typename _Ty , typename _Alloc > | |
| size_t | getArray (std::vector< _Ty, _Alloc > *arr) const |
| 取得数组全部元素,返回元素个数 更多... | |
| template<typename _KTy , typename _Alloc > | |
| size_t | getKeys (std::vector< _KTy, _Alloc > *keys) const |
| 获取全部键名,返回键名个数 更多... | |
| template<typename _KTy , typename _VTy , typename _Pr , typename _Alloc > | |
| size_t | getMap (std::map< _KTy, _VTy, _Pr, _Alloc > *m) const |
| 获取映射表,返回键值对个数 更多... | |
| bool | isEmpty () const |
| 判断序列或容器是否为空 更多... | |
| size_t | getSize () const |
| 取得序列类型的大小 更多... | |
| size_t | getCount () const |
| 取得容器内元素个数 更多... | |
| Mixed & | operator[] (Mixed const &k) |
| 下标操作 更多... | |
| Mixed const & | operator[] (Mixed const &k) const |
| const下标操作 更多... | |
| template<typename _ChTy > | |
| Mixed & | operator[] (_ChTy const *k) |
| 下标操作 使兼容字符串指针 更多... | |
| template<typename _ChTy > | |
| Mixed const & | operator[] (_ChTy const *k) const |
| const下标操作 使兼容字符串指针 更多... | |
| template<typename _Ty > | |
| _Ty | get (Mixed const &k, Mixed const &defval=mxNull) const |
当Mixed为Array或Collection类型时,get<_Ty>()能把指定'索引/Key'的元素按照指定类型取出来 更多... | |
| Mixed const & | get (Mixed const &k, Mixed const &defval=mxNull) const |
| 当Mixed为Array或Collection类型时,取得指定'索引/Key'的元素,不存在则返回默认值 更多... | |
| MixedMixedPair & | getPair (size_t i) |
| Collection获取'键值对'索引操作 更多... | |
| MixedMixedPair const & | getPair (size_t i) const |
| Collection获取'键值对'索引操作 更多... | |
| Mixed & | setPair (size_t i, Mixed const &k, Mixed const &v) |
| Collection设置'键值对'索引操作 更多... | |
| CollectionAssigner | addPair (bool caseInsensitive=false) |
| 往Collection添加数据 更多... | |
| Mixed & | addPair (Mixed const &k, Mixed const &v) |
| 往Collection添加一个pair。非Collection类型调用此函数会抛异常 更多... | |
| ArrayAssigner | add () |
| 往Array添加数据 更多... | |
| size_t | add (Mixed const &v) |
| 往数组里加一个元素,返回索引值,非Array类型调用此函数会抛异常 更多... | |
| size_t | add (Mixed &&v) |
| 往数组里加一个元素,返回索引值,非Array类型调用此函数会抛异常 更多... | |
| size_t | addUnique (Mixed const &v) |
| 往数组里加一个唯一元素,返回索引值,非Array类型调用此函数会抛异常 更多... | |
| size_t | addUnique (Mixed &&v) |
| 往数组里加一个唯一元素,返回索引值,非Array类型调用此函数会抛异常 更多... | |
| void | del (Mixed const &k) |
| 删除一个元素,操作类型可以是Array或Collection,k分别代表索引或键名 更多... | |
| bool | has (Mixed const &ek) const |
| 判断元素是否存在,Array判断值是否存在,Collection判断键名是否存在 更多... | |
| Mixed & | merge (Mixed const &v) |
| 合并另一个容器或添加一个元素 更多... | |
| Mixed & | reverse () |
| 反转容器内元素顺序/反转多字节数据字节序 更多... | |
| void | assign (bool boolVal) |
| void | assign (char chVal) |
| 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 (AnsiString const &str) |
| void | assign (UnicodeString const &str) |
| void | assign (AnsiString &&str) |
| void | assign (UnicodeString &&str) |
| void | assign (char const *str, size_t len=npos) |
| void | assign (wchar const *str, size_t len=npos) |
| void | assign (Buffer const &buf) |
| void | assign (void const *binaryData, size_t size, bool isPeek=false) |
| void | assign (Buffer &&buf) |
| void | assign (GrowBuffer &&buf) |
| template<typename _Ty , typename _Alloc > | |
| void | assign (std::vector< _Ty, _Alloc > const &arr) |
| 用vector给Array赋值 更多... | |
| template<typename _Ty , size_t _Count> | |
| void | assign (_Ty(&arr)[_Count]) |
| 用C数组给Array赋值 更多... | |
| void | assign (Mixed *arr, size_t count) |
| 数组赋值 更多... | |
| void | assign (std::initializer_list< Mixed > &&list) |
| 用initializer_list给Array赋值 更多... | |
| void | assign ($a &&arr) |
| 用$a给Array赋值 更多... | |
| template<typename _KTy , typename _VTy , typename _Pr , typename _Alloc > | |
| void | assign (std::map< _KTy, _VTy, _Pr, _Alloc > const &m, bool caseInsensitive=false) |
| 用map给Collection赋值 更多... | |
| template<typename _KTy , typename _VTy , size_t _Count> | |
| void | assign (std::pair< _KTy, _VTy >(&pairs)[_Count], bool caseInsensitive=false) |
| 用pairs给Collection赋值 更多... | |
| void | assign ($c &&coll, bool caseInsensitive=false) |
| 用$c给Collection赋值 更多... | |
| void | assign (Collection const &coll, bool caseInsensitive=false) |
| 用Collection赋值 更多... | |
| String | myJson (bool autoKeyQuotes=true, String const &spacer=$"", String const &newline=$"") const |
| String | json () const |
| Mixed & | json (String const &jsonStr) |
| template<> | |
| XString< char > & | refString () |
| template<> | |
| XString< char > const & | refString () const |
| template<> | |
| XString< wchar > & | refString () |
| template<> | |
| XString< wchar > const & | refString () const |
| template<> | |
| bool & | ref () |
| template<> | |
| bool const & | ref () const |
| template<> | |
| char & | ref () |
| template<> | |
| char const & | ref () const |
| template<> | |
| byte & | ref () |
| template<> | |
| byte const & | ref () const |
| template<> | |
| short & | ref () |
| template<> | |
| short const & | ref () const |
| template<> | |
| ushort & | ref () |
| template<> | |
| ushort const & | ref () const |
| template<> | |
| int & | ref () |
| template<> | |
| int const & | ref () const |
| template<> | |
| uint & | ref () |
| template<> | |
| uint const & | ref () const |
| template<> | |
| long & | ref () |
| template<> | |
| long const & | ref () const |
| template<> | |
| ulong & | ref () |
| template<> | |
| ulong const & | ref () const |
| template<> | |
| int64 & | ref () |
| template<> | |
| int64 const & | ref () const |
| template<> | |
| uint64 & | ref () |
| template<> | |
| uint64 const & | ref () const |
| template<> | |
| float & | ref () |
| template<> | |
| float const & | ref () const |
| template<> | |
| double & | ref () |
| template<> | |
| double const & | ref () const |
| template<> | |
| AnsiString & | ref () |
| template<> | |
| AnsiString const & | ref () const |
| template<> | |
| UnicodeString & | ref () |
| template<> | |
| UnicodeString const & | ref () const |
| template<> | |
| Buffer & | ref () |
| template<> | |
| Buffer const & | ref () const |
| template<> | |
| MixedArray & | ref () |
| template<> | |
| MixedArray const & | ref () const |
| template<> | |
| Collection & | ref () |
| template<> | |
| Collection const & | ref () const |
| template<> | |
| XString< char > | toString () const |
| Mixed to AnsiString. 更多... | |
| template<> | |
| XString< wchar > | toString () const |
| Mixed to UnicodeString. 更多... | |
| template<> | |
| Mixed | to () const |
| template<> | |
| bool | to () const |
| template<> | |
| char | to () const |
| template<> | |
| byte | to () const |
| template<> | |
| short | to () const |
| template<> | |
| ushort | to () const |
| template<> | |
| int | to () const |
| template<> | |
| uint | to () const |
| template<> | |
| long | to () const |
| template<> | |
| ulong | to () const |
| template<> | |
| float | to () const |
| template<> | |
| int64 | to () const |
| template<> | |
| uint64 | to () const |
| template<> | |
| double | to () const |
| template<> | |
| AnsiString | to () const |
| template<> | |
| UnicodeString | to () const |
| template<> | |
| Buffer | to () const |
| template<> | |
| MixedArray | to () const |
| template<> | |
| Collection | to () const |
| template<> | |
| Mixed & | createString () |
| 创建一个ANSI字符串,并设置type为MT_ANSI 更多... | |
| template<> | |
| Mixed & | createString () |
| 创建一个UNICODE字符串,并设置type为MT_UNICODE 更多... | |
| template<> | |
| Mixed & | createString (XString< char > const &str) |
| 创建一个ANSI字符串,并设置type为MT_ANSI 更多... | |
| template<> | |
| Mixed & | createString (XString< wchar > const &str) |
| 创建一个UNICODE字符串,并设置type为MT_UNICODE 更多... | |
| template<> | |
| Mixed & | createString (XString< char > &&str) |
| 创建一个ANSI字符串,并设置type为MT_ANSI 更多... | |
| template<> | |
| Mixed & | createString (XString< wchar > &&str) |
| 创建一个UNICODE字符串,并设置type为MT_UNICODE 更多... | |
Public 属性 | |
| union { | |
| AnsiString * _pStr | |
多字节字符串,char序列 更多... | |
| UnicodeString * _pWStr | |
宽字符串,wchar_t序列 更多... | |
| Buffer * _pBuf | |
缓冲区,字节序列。利用Buffer对象存储的二进制数据 更多... | |
| MixedArray * _pArr | |
数组容器。利用std::vector<Mixed>存储的Mixed数组 更多... | |
| Collection * _pColl | |
| 集合容器。利用数组存储key体现次序,然后用Map存储k/v对 更多... | |
| double _dblVal | |
| 双精度浮点类型 更多... | |
| uint64 _ui64Val | |
| 无符号64位整数 更多... | |
| int64 _i64Val | |
| 有符号64位整数 更多... | |
| float _fltVal | |
| 单精度浮点类型 更多... | |
| ulong _ulVal | |
| 无符号长整型 更多... | |
| long _lVal | |
| 有符号长整型 更多... | |
| uint _uiVal | |
| 无符号整型 更多... | |
| int _iVal | |
| 有符号整型 更多... | |
| ushort _ushVal | |
| 无符号短整型 更多... | |
| short _shVal | |
| 有符号短整型 更多... | |
| byte _btVal | |
| 无符号字节型 更多... | |
| char _chVal | |
| 字符型 更多... | |
| bool _boolVal | |
| 布尔型 更多... | |
| }; | |
| MixedType | _type |
| 当前类型 更多... | |
混合体,能表示多种类型的值
在文件 utilities.hpp 第 1440 行定义.
| enum winux::Mixed::MixedType : uint |
混合体类型识别常量
在文件 utilities.hpp 第 1484 行定义.
| winux::Mixed::Mixed | ( | ) |
| winux::Mixed::Mixed | ( | std::nullptr_t | ) |
|
delete |
删除void*的构造函数
| winux::Mixed::Mixed | ( | bool | boolVal | ) |
| winux::Mixed::Mixed | ( | char | chVal | ) |
| 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 | ( | AnsiString const & | str | ) |
多字节字符串
| winux::Mixed::Mixed | ( | UnicodeString const & | str | ) |
Unicode字符串
| winux::Mixed::Mixed | ( | AnsiString && | str | ) |
多字节字符串
| winux::Mixed::Mixed | ( | UnicodeString && | str | ) |
Unicode字符串
| winux::Mixed::Mixed | ( | char const * | str, |
| size_t | len = npos |
||
| ) |
多字节字符串
| winux::Mixed::Mixed | ( | Buffer const & | buf | ) |
| winux::Mixed::Mixed | ( | void const * | binaryData, |
| size_t | size, | ||
| bool | isPeek = false |
||
| ) |
| winux::Mixed::Mixed | ( | Buffer && | buf | ) |
| winux::Mixed::Mixed | ( | GrowBuffer && | buf | ) |
| winux::Mixed::Mixed | ( | Mixed * | arr, |
| size_t | count | ||
| ) |
数组构造函数
|
inline |
数组构造函数
在文件 utilities.hpp 第 1553 行定义.
|
inline |
数组构造函数
在文件 utilities.hpp 第 1561 行定义.
| winux::Mixed::Mixed | ( | std::initializer_list< Mixed > && | list | ) |
数组构造函数
| winux::Mixed::Mixed | ( | $a && | ) |
数组构造函数
|
inline |
Collection构造函数
在文件 utilities.hpp 第 1576 行定义.
|
inline |
Collection构造函数
在文件 utilities.hpp 第 1584 行定义.
| winux::Mixed::Mixed | ( | $c &&, | |
| bool | caseInsensitive = false |
||
| ) |
Collection构造函数
| winux::Mixed::Mixed | ( | Collection const & | coll, |
| bool | caseInsensitive = false |
||
| ) |
Collection构造函数
| winux::Mixed::Mixed | ( | Mixed const & | other | ) |
拷贝构造函数
| winux::Mixed::Mixed | ( | Mixed && | other | ) |
移动构造函数
| winux::Mixed::~Mixed | ( | ) |
析构函数
| void winux::Mixed::free | ( | ) |
释放相关资源
|
inline |
取得类型
在文件 utilities.hpp 第 1614 行定义.
| XString<_ChTy>& winux::Mixed::refString | ( | ) |
| XString<_ChTy> const& winux::Mixed::refString | ( | ) | const |
| _Ty& winux::Mixed::ref | ( | ) |
| _Ty const& winux::Mixed::ref | ( | ) | const |
|
inline |
在文件 utilities.hpp 第 1628 行定义.
|
inline |
在文件 utilities.hpp 第 1628 行定义.
|
inline |
在文件 utilities.hpp 第 1628 行定义.
|
inline |
在文件 utilities.hpp 第 1628 行定义.
|
inline |
在文件 utilities.hpp 第 1628 行定义.
|
inline |
在文件 utilities.hpp 第 1628 行定义.
|
inline |
在文件 utilities.hpp 第 1628 行定义.
|
inline |
在文件 utilities.hpp 第 1628 行定义.
|
inline |
在文件 utilities.hpp 第 1628 行定义.
|
inline |
在文件 utilities.hpp 第 1628 行定义.
|
inline |
在文件 utilities.hpp 第 1628 行定义.
|
inline |
在文件 utilities.hpp 第 1628 行定义.
|
inline |
在文件 utilities.hpp 第 1628 行定义.
|
inline |
在文件 utilities.hpp 第 1628 行定义.
|
inline |
在文件 utilities.hpp 第 1628 行定义.
|
inline |
在文件 utilities.hpp 第 1628 行定义.
|
inline |
在文件 utilities.hpp 第 1628 行定义.
|
inline |
在文件 utilities.hpp 第 1628 行定义.
|
inline |
在文件 utilities.hpp 第 1628 行定义.
|
inline |
在文件 utilities.hpp 第 1628 行定义.
|
inline |
在文件 utilities.hpp 第 1628 行定义.
|
inline |
在文件 utilities.hpp 第 1628 行定义.
|
inline |
在文件 utilities.hpp 第 1628 行定义.
|
inline |
在文件 utilities.hpp 第 1628 行定义.
|
inline |
在文件 utilities.hpp 第 1628 行定义.
|
inline |
在文件 utilities.hpp 第 1628 行定义.
|
inline |
在文件 utilities.hpp 第 1628 行定义.
|
inline |
在文件 utilities.hpp 第 1628 行定义.
|
inline |
在文件 utilities.hpp 第 1628 行定义.
|
inline |
在文件 utilities.hpp 第 1628 行定义.
|
inline |
在文件 utilities.hpp 第 1628 行定义.
|
inline |
在文件 utilities.hpp 第 1628 行定义.
|
inline |
在文件 utilities.hpp 第 1628 行定义.
|
inline |
在文件 utilities.hpp 第 1628 行定义.
|
inline |
在文件 utilities.hpp 第 1628 行定义.
|
inline |
在文件 utilities.hpp 第 1628 行定义.
| winux::Mixed::operator bool | ( | ) | const |
| winux::Mixed::operator byte | ( | ) | const |
| winux::Mixed::operator short | ( | ) | const |
| winux::Mixed::operator ushort | ( | ) | const |
| winux::Mixed::operator int | ( | ) | const |
| winux::Mixed::operator uint | ( | ) | const |
| winux::Mixed::operator long | ( | ) | const |
| winux::Mixed::operator ulong | ( | ) | const |
| winux::Mixed::operator float | ( | ) | const |
| winux::Mixed::operator int64 | ( | ) | const |
| winux::Mixed::operator uint64 | ( | ) | const |
| winux::Mixed::operator double | ( | ) | const |
| winux::Mixed::operator AnsiString | ( | ) | const |
| winux::Mixed::operator UnicodeString | ( | ) | const |
| winux::Mixed::operator Buffer | ( | ) | const |
| winux::Mixed::operator MixedArray | ( | ) | const |
| winux::Mixed::operator Collection | ( | ) | const |
|
inline |
在文件 utilities.hpp 第 1648 行定义.
| char winux::Mixed::toChar | ( | ) | const |
|
inline |
在文件 utilities.hpp 第 1650 行定义.
|
inline |
在文件 utilities.hpp 第 1651 行定义.
|
inline |
在文件 utilities.hpp 第 1652 行定义.
|
inline |
在文件 utilities.hpp 第 1653 行定义.
|
inline |
在文件 utilities.hpp 第 1654 行定义.
|
inline |
在文件 utilities.hpp 第 1655 行定义.
|
inline |
在文件 utilities.hpp 第 1656 行定义.
|
inline |
在文件 utilities.hpp 第 1657 行定义.
|
inline |
在文件 utilities.hpp 第 1658 行定义.
|
inline |
在文件 utilities.hpp 第 1659 行定义.
|
inline |
在文件 utilities.hpp 第 1660 行定义.
| XString<_ChTy> winux::Mixed::toString | ( | ) | const |
|
inline |
在文件 utilities.hpp 第 1663 行定义.
|
inline |
在文件 utilities.hpp 第 1664 行定义.
|
inline |
在文件 utilities.hpp 第 1665 行定义.
|
inline |
在文件 utilities.hpp 第 1666 行定义.
|
inline |
在文件 utilities.hpp 第 1667 行定义.
| _Ty winux::Mixed::to | ( | ) | const |
| bool winux::Mixed::operator== | ( | Mixed const & | other | ) | const |
| bool winux::Mixed::operator< | ( | Mixed const & | other | ) | const |
| bool winux::Mixed::operator> | ( | Mixed const & | other | ) | const |
|
inline |
在文件 utilities.hpp 第 1675 行定义.
|
inline |
在文件 utilities.hpp 第 1676 行定义.
|
inline |
在文件 utilities.hpp 第 1677 行定义.
|
inline |
在文件 utilities.hpp 第 1680 行定义.
|
inline |
在文件 utilities.hpp 第 1681 行定义.
|
inline |
在文件 utilities.hpp 第 1682 行定义.
|
inline |
在文件 utilities.hpp 第 1683 行定义.
|
inline |
在文件 utilities.hpp 第 1684 行定义.
|
inline |
在文件 utilities.hpp 第 1685 行定义.
|
inline |
在文件 utilities.hpp 第 1686 行定义.
|
inline |
在文件 utilities.hpp 第 1687 行定义.
|
inline |
在文件 utilities.hpp 第 1688 行定义.
|
inline |
在文件 utilities.hpp 第 1689 行定义.
|
inline |
在文件 utilities.hpp 第 1690 行定义.
| Mixed& winux::Mixed::createString | ( | ) |
创建一个字符串,根据_ChTy设置type为MT_ANSI或MT_UNICODE
创建一个字符串,根据_ChTy设置type为MT_ANSI或MT_UNICODE
创建一个字符串,根据_ChTy设置type为MT_ANSI或MT_UNICODE
| Mixed& winux::Mixed::createAnsi | ( | AnsiString const & | str | ) |
创建一个Ansi字符串,并设置type为MT_ANSI
| Mixed& winux::Mixed::createAnsi | ( | AnsiString && | str = Literal< char >::emptyStr | ) |
创建一个Ansi字符串,并设置type为MT_ANSI
| Mixed& winux::Mixed::createUnicode | ( | UnicodeString const & | str | ) |
创建一个Unicode字符串,并设置type为MT_UNICODE
| Mixed& winux::Mixed::createUnicode | ( | UnicodeString && | str = Literal< wchar >::emptyStr | ) |
创建一个Unicode字符串,并设置type为MT_UNICODE
| Mixed& winux::Mixed::createBuffer | ( | size_t | size = 0 | ) |
创建一个缓冲区,自动把先前的数据清空,并设置type为MT_BINARY
| Mixed& winux::Mixed::createArray | ( | size_t | count = 0 | ) |
创建一个数组,自动把先前的数据清空,并设置type为MT_ARRAY
| Mixed& winux::Mixed::createCollection | ( | bool | caseInsensitive = false | ) |
创建一个集合,自动把先前的数据清空,并设置type为MT_COLLECTION
| void winux::Mixed::alloc | ( | size_t | size, |
| bool | setDataSize = true |
||
| ) |
分配一块内存,自动释放先前数据,并设置type为MT_BINARY
| bool winux::Mixed::peekCopy | ( | bool | copyCapacity = false | ) |
把窥探模式下的MT_BINARY类型变为拷贝模式,如果copyCapacity为true时连容量也一起拷贝,否则只拷贝数据。
即使Mixed不是MT_BINARY类型也不会出错,会直接返回false
| void* winux::Mixed::getBuf | ( | ) | const |
暴露缓冲区指针
即使Mixed不是MT_BINARY类型也不会出错,会直接返回NULL
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
下标操作 使兼容字符串指针
在文件 utilities.hpp 第 1827 行定义.
|
inline |
const下标操作 使兼容字符串指针
在文件 utilities.hpp 第 1830 行定义.
|
inline |
当Mixed为Array或Collection类型时,get<_Ty>()能把指定'索引/Key'的元素按照指定类型取出来
在文件 utilities.hpp 第 1834 行定义.
当Mixed为Array或Collection类型时,取得指定'索引/Key'的元素,不存在则返回默认值
| MixedMixedPair& winux::Mixed::getPair | ( | size_t | i | ) |
Collection获取'键值对'索引操作
| MixedMixedPair const& winux::Mixed::getPair | ( | size_t | i | ) | const |
Collection获取'键值对'索引操作
|
inline |
往Collection添加一个pair。非Collection类型调用此函数会抛异常
|
inline |
| size_t winux::Mixed::add | ( | Mixed const & | v | ) |
往数组里加一个元素,返回索引值,非Array类型调用此函数会抛异常
| size_t winux::Mixed::add | ( | Mixed && | v | ) |
往数组里加一个元素,返回索引值,非Array类型调用此函数会抛异常
| size_t winux::Mixed::addUnique | ( | Mixed const & | v | ) |
往数组里加一个唯一元素,返回索引值,非Array类型调用此函数会抛异常
| size_t winux::Mixed::addUnique | ( | Mixed && | v | ) |
往数组里加一个唯一元素,返回索引值,非Array类型调用此函数会抛异常
| void winux::Mixed::del | ( | Mixed const & | k | ) |
删除一个元素,操作类型可以是Array或Collection,k分别代表索引或键名
| bool winux::Mixed::has | ( | Mixed const & | ek | ) | const |
判断元素是否存在,Array判断值是否存在,Collection判断键名是否存在
即使Mixed不是Array/Collection类型也不会报错,此时会返回false。
| Mixed& winux::Mixed::reverse | ( | ) |
反转容器内元素顺序/反转多字节数据字节序
| void winux::Mixed::assign | ( | bool | boolVal | ) |
| void winux::Mixed::assign | ( | char | chVal | ) |
| 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 | ( | AnsiString const & | str | ) |
| void winux::Mixed::assign | ( | UnicodeString const & | str | ) |
| void winux::Mixed::assign | ( | AnsiString && | str | ) |
| void winux::Mixed::assign | ( | UnicodeString && | str | ) |
| void winux::Mixed::assign | ( | char const * | str, |
| size_t | len = npos |
||
| ) |
| void winux::Mixed::assign | ( | Buffer const & | buf | ) |
| void winux::Mixed::assign | ( | void const * | binaryData, |
| size_t | size, | ||
| bool | isPeek = false |
||
| ) |
| void winux::Mixed::assign | ( | Buffer && | buf | ) |
| void winux::Mixed::assign | ( | GrowBuffer && | buf | ) |
|
inline |
用vector给Array赋值
在文件 utilities.hpp 第 1969 行定义.
|
inline |
用C数组给Array赋值
在文件 utilities.hpp 第 1993 行定义.
| void winux::Mixed::assign | ( | Mixed * | arr, |
| size_t | count | ||
| ) |
数组赋值
| void winux::Mixed::assign | ( | std::initializer_list< Mixed > && | list | ) |
用initializer_list给Array赋值
| void winux::Mixed::assign | ( | $a && | ) |
用$a给Array赋值
|
inline |
用map给Collection赋值
在文件 utilities.hpp 第 2027 行定义.
|
inline |
用pairs给Collection赋值
在文件 utilities.hpp 第 2043 行定义.
| void winux::Mixed::assign | ( | $c &&, | |
| bool | caseInsensitive = false |
||
| ) |
用$c给Collection赋值
| void winux::Mixed::assign | ( | Collection const & | coll, |
| bool | caseInsensitive = false |
||
| ) |
用Collection赋值
| String winux::Mixed::myJson | ( | bool | autoKeyQuotes = true, |
| String const & | spacer = $"", |
||
| String const & | newline = $"" |
||
| ) | const |
| String winux::Mixed::json | ( | ) | const |
|
inline |
在文件 utilities.hpp 第 2079 行定义.
|
inline |
在文件 utilities.hpp 第 2085 行定义.
在文件 utilities.hpp 第 2091 行定义.
在文件 utilities.hpp 第 2097 行定义.
|
inline |
在文件 utilities.hpp 第 2103 行定义.
|
inline |
在文件 utilities.hpp 第 2103 行定义.
|
inline |
在文件 utilities.hpp 第 2103 行定义.
|
inline |
在文件 utilities.hpp 第 2103 行定义.
|
inline |
在文件 utilities.hpp 第 2103 行定义.
|
inline |
在文件 utilities.hpp 第 2103 行定义.
|
inline |
在文件 utilities.hpp 第 2103 行定义.
|
inline |
在文件 utilities.hpp 第 2103 行定义.
|
inline |
在文件 utilities.hpp 第 2103 行定义.
|
inline |
在文件 utilities.hpp 第 2103 行定义.
|
inline |
在文件 utilities.hpp 第 2103 行定义.
|
inline |
在文件 utilities.hpp 第 2103 行定义.
|
inline |
在文件 utilities.hpp 第 2103 行定义.
|
inline |
在文件 utilities.hpp 第 2103 行定义.
|
inline |
在文件 utilities.hpp 第 2103 行定义.
|
inline |
在文件 utilities.hpp 第 2103 行定义.
|
inline |
在文件 utilities.hpp 第 2103 行定义.
|
inline |
在文件 utilities.hpp 第 2103 行定义.
|
inline |
在文件 utilities.hpp 第 2103 行定义.
|
inline |
在文件 utilities.hpp 第 2103 行定义.
|
inline |
在文件 utilities.hpp 第 2103 行定义.
|
inline |
在文件 utilities.hpp 第 2103 行定义.
|
inline |
在文件 utilities.hpp 第 2103 行定义.
|
inline |
在文件 utilities.hpp 第 2103 行定义.
|
inline |
在文件 utilities.hpp 第 2103 行定义.
|
inline |
在文件 utilities.hpp 第 2103 行定义.
|
inline |
在文件 utilities.hpp 第 2103 行定义.
|
inline |
在文件 utilities.hpp 第 2103 行定义.
|
inline |
在文件 utilities.hpp 第 2103 行定义.
|
inline |
在文件 utilities.hpp 第 2103 行定义.
|
inline |
在文件 utilities.hpp 第 2103 行定义.
|
inline |
在文件 utilities.hpp 第 2103 行定义.
|
inline |
在文件 utilities.hpp 第 2103 行定义.
|
inline |
在文件 utilities.hpp 第 2103 行定义.
|
inline |
在文件 utilities.hpp 第 2103 行定义.
|
inline |
在文件 utilities.hpp 第 2103 行定义.
|
inline |
Mixed to AnsiString.
在文件 utilities.hpp 第 2105 行定义.
Mixed to UnicodeString.
在文件 utilities.hpp 第 2109 行定义.
|
inline |
在文件 utilities.hpp 第 2112 行定义.
|
inline |
在文件 utilities.hpp 第 2114 行定义.
|
inline |
在文件 utilities.hpp 第 2116 行定义.
|
inline |
在文件 utilities.hpp 第 2118 行定义.
|
inline |
在文件 utilities.hpp 第 2120 行定义.
|
inline |
在文件 utilities.hpp 第 2122 行定义.
|
inline |
在文件 utilities.hpp 第 2124 行定义.
|
inline |
在文件 utilities.hpp 第 2126 行定义.
|
inline |
在文件 utilities.hpp 第 2128 行定义.
|
inline |
在文件 utilities.hpp 第 2130 行定义.
|
inline |
在文件 utilities.hpp 第 2132 行定义.
|
inline |
在文件 utilities.hpp 第 2134 行定义.
|
inline |
在文件 utilities.hpp 第 2136 行定义.
|
inline |
在文件 utilities.hpp 第 2138 行定义.
|
inline |
在文件 utilities.hpp 第 2140 行定义.
|
inline |
在文件 utilities.hpp 第 2142 行定义.
|
inline |
在文件 utilities.hpp 第 2144 行定义.
|
inline |
在文件 utilities.hpp 第 2146 行定义.
|
inline |
在文件 utilities.hpp 第 2148 行定义.
|
inline |
创建一个ANSI字符串,并设置type为MT_ANSI
在文件 utilities.hpp 第 2152 行定义.
|
inline |
创建一个UNICODE字符串,并设置type为MT_UNICODE
在文件 utilities.hpp 第 2155 行定义.
创建一个ANSI字符串,并设置type为MT_ANSI
在文件 utilities.hpp 第 2159 行定义.
创建一个UNICODE字符串,并设置type为MT_UNICODE
在文件 utilities.hpp 第 2162 行定义.
创建一个ANSI字符串,并设置type为MT_ANSI
在文件 utilities.hpp 第 2166 行定义.
创建一个UNICODE字符串,并设置type为MT_UNICODE
在文件 utilities.hpp 第 2169 行定义.
| AnsiString* winux::Mixed::_pStr |
多字节字符串,char序列
在文件 utilities.hpp 第 1491 行定义.
| UnicodeString* winux::Mixed::_pWStr |
宽字符串,wchar_t序列
在文件 utilities.hpp 第 1492 行定义.
| Buffer* winux::Mixed::_pBuf |
缓冲区,字节序列。利用Buffer对象存储的二进制数据
在文件 utilities.hpp 第 1493 行定义.
| MixedArray* winux::Mixed::_pArr |
数组容器。利用std::vector<Mixed>存储的Mixed数组
在文件 utilities.hpp 第 1494 行定义.
| Collection* winux::Mixed::_pColl |
集合容器。利用数组存储key体现次序,然后用Map存储k/v对
在文件 utilities.hpp 第 1495 行定义.
| double winux::Mixed::_dblVal |
双精度浮点类型
在文件 utilities.hpp 第 1497 行定义.
| uint64 winux::Mixed::_ui64Val |
无符号64位整数
在文件 utilities.hpp 第 1498 行定义.
| int64 winux::Mixed::_i64Val |
有符号64位整数
在文件 utilities.hpp 第 1499 行定义.
| float winux::Mixed::_fltVal |
单精度浮点类型
在文件 utilities.hpp 第 1500 行定义.
| ulong winux::Mixed::_ulVal |
无符号长整型
在文件 utilities.hpp 第 1501 行定义.
| long winux::Mixed::_lVal |
有符号长整型
在文件 utilities.hpp 第 1502 行定义.
| uint winux::Mixed::_uiVal |
无符号整型
在文件 utilities.hpp 第 1503 行定义.
| int winux::Mixed::_iVal |
有符号整型
在文件 utilities.hpp 第 1504 行定义.
| ushort winux::Mixed::_ushVal |
无符号短整型
在文件 utilities.hpp 第 1505 行定义.
| short winux::Mixed::_shVal |
有符号短整型
在文件 utilities.hpp 第 1506 行定义.
| byte winux::Mixed::_btVal |
无符号字节型
在文件 utilities.hpp 第 1507 行定义.
| char winux::Mixed::_chVal |
字符型
在文件 utilities.hpp 第 1508 行定义.
| bool winux::Mixed::_boolVal |
布尔型
在文件 utilities.hpp 第 1509 行定义.
| union { ... } |
| MixedType winux::Mixed::_type |
当前类型
在文件 utilities.hpp 第 1511 行定义.