Classes | Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
Json::Value::CZString Class Reference

Classes

struct  StringStorage
 

Public Types

enum  DuplicationPolicy { noDuplication = 0, duplicate, duplicateOnCopy }
 

Public Member Functions

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

Private Member Functions

void swap (CZString &other)
 

Private Attributes

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

Detailed Description

Definition at line 590 of file json.h.

Member Enumeration Documentation

◆ DuplicationPolicy

enum Json::Value::CZString::DuplicationPolicy
Enumerator
noDuplication 
duplicate 
duplicateOnCopy 

Definition at line 592 of file json.h.

Constructor & Destructor Documentation

◆ CZString() [1/3]

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

Definition at line 2632 of file jsoncpp.cpp.

◆ CZString() [2/3]

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

Definition at line 2634 of file jsoncpp.cpp.

◆ CZString() [3/3]

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

Definition at line 2641 of file jsoncpp.cpp.

◆ ~CZString()

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

Definition at line 2659 of file jsoncpp.cpp.

Member Function Documentation

◆ data()

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

Definition at line 2701 of file jsoncpp.cpp.

◆ index()

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

Definition at line 2698 of file jsoncpp.cpp.

◆ isStaticString()

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

Definition at line 2703 of file jsoncpp.cpp.

◆ length()

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

Definition at line 2702 of file jsoncpp.cpp.

◆ operator<()

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

Definition at line 2674 of file jsoncpp.cpp.

◆ operator=()

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

Definition at line 2669 of file jsoncpp.cpp.

◆ operator==()

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

Definition at line 2687 of file jsoncpp.cpp.

◆ swap()

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

Definition at line 2664 of file jsoncpp.cpp.

Member Data Documentation

◆ @78

union { ... }

◆ cstr_

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

Definition at line 621 of file json.h.

◆ index_

ArrayIndex Json::Value::CZString::index_

Definition at line 623 of file json.h.

◆ storage_

StringStorage Json::Value::CZString::storage_

Definition at line 624 of file json.h.


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


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:11