NIM 跨平台 C++ SDK
载入中...
搜索中...
未找到
nim_cpp_wrapper_util::Json::Value::CZString类 参考

struct  StringStorage
 

Public 类型

enum  DuplicationPolicy { noDuplication = 0 , duplicate , duplicateOnCopy }
 

Public 成员函数

 CZString (ArrayIndex index)
 
 CZString (char const *str, unsigned length, DuplicationPolicy allocate)
 
 CZString (CZString const &other)
 
 CZString (CZString &&other)
 
 ~CZString ()
 
CZStringoperator= (const CZString &other)
 
CZStringoperator= (CZString &&other)
 
bool operator< (CZString const &other) const
 
bool operator== (CZString const &other) const
 
ArrayIndex index () const
 
char const * data () const
 
unsigned length () const
 
bool isStaticString () const
 

Private 成员函数

void swap (CZString &other)
 

Private 属性

char const * cstr_
 
union {
   ArrayIndex   index_
 
   StringStorage   storage_
 
}; 
 

成员枚举类型说明

◆ DuplicationPolicy

枚举值
noDuplication 
duplicate 
duplicateOnCopy 

构造及析构函数说明

◆ CZString() [1/4]

nim_cpp_wrapper_util::Json::Value::CZString::CZString ( ArrayIndex  index)

◆ CZString() [2/4]

nim_cpp_wrapper_util::Json::Value::CZString::CZString ( char const *  str,
unsigned  length,
DuplicationPolicy  allocate 
)

◆ CZString() [3/4]

nim_cpp_wrapper_util::Json::Value::CZString::CZString ( CZString const &  other)

◆ CZString() [4/4]

nim_cpp_wrapper_util::Json::Value::CZString::CZString ( CZString &&  other)

◆ ~CZString()

nim_cpp_wrapper_util::Json::Value::CZString::~CZString ( )

成员函数说明

◆ data()

const char * nim_cpp_wrapper_util::Json::Value::CZString::data ( ) const

◆ index()

ArrayIndex nim_cpp_wrapper_util::Json::Value::CZString::index ( ) const

◆ isStaticString()

bool nim_cpp_wrapper_util::Json::Value::CZString::isStaticString ( ) const

◆ length()

unsigned nim_cpp_wrapper_util::Json::Value::CZString::length ( ) const

◆ operator<()

bool nim_cpp_wrapper_util::Json::Value::CZString::operator< ( CZString const &  other) const

◆ operator=() [1/2]

Value::CZString & nim_cpp_wrapper_util::Json::Value::CZString::operator= ( const CZString other)

◆ operator=() [2/2]

Value::CZString & nim_cpp_wrapper_util::Json::Value::CZString::operator= ( CZString &&  other)

◆ operator==()

bool nim_cpp_wrapper_util::Json::Value::CZString::operator== ( CZString const &  other) const

◆ swap()

void nim_cpp_wrapper_util::Json::Value::CZString::swap ( CZString other)
private

类成员变量说明

◆ 

union { ... } nim_cpp_wrapper_util::Json::Value::CZString::@21

◆ cstr_

char const* nim_cpp_wrapper_util::Json::Value::CZString::cstr_
private

◆ index_

ArrayIndex nim_cpp_wrapper_util::Json::Value::CZString::index_

◆ storage_

StringStorage nim_cpp_wrapper_util::Json::Value::CZString::storage_

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