All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
rapidjson::GenericValue< Encoding, Allocator >::ShortString Struct Reference

#include <document.h>

Public Types

enum  { MaxChars = sizeof(String) / sizeof(Ch), MaxSize = MaxChars - 1, LenPos = MaxSize }
 

Public Member Functions

void SetLength (SizeType len)
 
SizeType GetLength () const
 

Static Public Member Functions

static bool Usable (SizeType len)
 

Public Attributes

Ch str [MaxChars]
 

Detailed Description

template<typename Encoding, typename Allocator = MemoryPoolAllocator<>>
struct rapidjson::GenericValue< Encoding, Allocator >::ShortString

Definition at line 1485 of file document.h.

Member Enumeration Documentation

template<typename Encoding, typename Allocator = MemoryPoolAllocator<>>
anonymous enum
Enumerator
MaxChars 
MaxSize 
LenPos 

Definition at line 1486 of file document.h.

Member Function Documentation

template<typename Encoding, typename Allocator = MemoryPoolAllocator<>>
SizeType rapidjson::GenericValue< Encoding, Allocator >::ShortString::GetLength ( ) const
inline

Definition at line 1491 of file document.h.

1491 { return (SizeType)(MaxSize - str[LenPos]); }
unsigned SizeType
Size type (for string lengths, array sizes, etc.)
Definition: rapidjson.h:247
template<typename Encoding, typename Allocator = MemoryPoolAllocator<>>
void rapidjson::GenericValue< Encoding, Allocator >::ShortString::SetLength ( SizeType  len)
inline

Definition at line 1490 of file document.h.

template<typename Encoding, typename Allocator = MemoryPoolAllocator<>>
static bool rapidjson::GenericValue< Encoding, Allocator >::ShortString::Usable ( SizeType  len)
inlinestatic

Definition at line 1489 of file document.h.

Member Data Documentation

template<typename Encoding, typename Allocator = MemoryPoolAllocator<>>
Ch rapidjson::GenericValue< Encoding, Allocator >::ShortString::str[MaxChars]

Definition at line 1487 of file document.h.


The documentation for this struct was generated from the following file: