ShortString Struct Reference

ShortString Struct Reference#

Composable Kernel: GenericValue< Encoding, Allocator >::ShortString Struct Reference
GenericValue< Encoding, Allocator >::ShortString Struct Reference

#include <document.h>

Public Types

enum  {
  MaxChars = sizeof(static_cast<Flag*>(0)->payload) / 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]

Member Enumeration Documentation

◆ anonymous enum

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

Member Function Documentation

◆ GetLength()

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

◆ SetLength()

template<typename Encoding, typename Allocator = RAPIDJSON_DEFAULT_ALLOCATOR>
void GenericValue< Encoding, Allocator >::ShortString::SetLength ( SizeType len)
inline

◆ Usable()

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

Member Data Documentation

◆ str

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

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