NGL
6.5
The NCCA Graphics Library
|
Go to the source code of this file.
Classes | |
class | GenericPointer< ValueType, Allocator > |
Represents a JSON Pointer. Use Pointer for UTF8 encoding and default allocator. More... | |
struct | GenericPointer< ValueType, Allocator >::Token |
A token is the basic units of internal representation. More... | |
class | GenericPointer< ValueType, Allocator >::PercentDecodeStream |
A helper stream for decoding a percent-encoded sequence into code unit. More... | |
class | GenericPointer< ValueType, Allocator >::PercentEncodeStream< OutputStream > |
A helper stream to encode character (UTF-8 code unit) into percent-encoded sequence. More... | |
Typedefs | |
typedef GenericPointer< Value > | Pointer |
GenericPointer for Value (UTF-8, default allocator). More... | |
Enumerations | |
enum | PointerParseErrorCode { kPointerParseErrorNone = 0, kPointerParseErrorTokenMustBeginWithSolidus, kPointerParseErrorInvalidEscape, kPointerParseErrorInvalidPercentEncoding, kPointerParseErrorCharacterMustPercentEncode } |
Error code of parsing. More... | |
Variables | |
static RAPIDJSON_NAMESPACE_BEGIN const SizeType | kPointerInvalidIndex = ~SizeType(0) |
Represents an invalid index in GenericPointer::Token. More... | |
Helper functions for GenericPointer | |
const GenericPointer< typename T::ValueType > & | pointer |
const GenericPointer< typename T::ValueType > T2 | defaultValue |
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & | a |
const CharType(& | source )[N] |
const GenericPointer< typename T::ValueType > T2 | value |
template<typename T > | |
T::ValueType & | CreateValueByPointer (T &root, const GenericPointer< typename T::ValueType > &pointer, typename T::AllocatorType &a) |
template<typename T , typename CharType , size_t N> | |
T::ValueType & | CreateValueByPointer (T &root, const CharType(&source)[N], typename T::AllocatorType &a) |
template<typename DocumentType > | |
DocumentType::ValueType & | CreateValueByPointer (DocumentType &document, const GenericPointer< typename DocumentType::ValueType > &pointer) |
template<typename DocumentType , typename CharType , size_t N> | |
DocumentType::ValueType & | CreateValueByPointer (DocumentType &document, const CharType(&source)[N]) |
template<typename T > | |
T::ValueType * | GetValueByPointer (T &root, const GenericPointer< typename T::ValueType > &pointer) |
template<typename T > | |
const T::ValueType * | GetValueByPointer (const T &root, const GenericPointer< typename T::ValueType > &pointer) |
template<typename T , typename CharType , size_t N> | |
T::ValueType * | GetValueByPointer (T &root, const CharType(&source)[N]) |
template<typename T , typename CharType , size_t N> | |
const T::ValueType * | GetValueByPointer (const T &root, const CharType(&source)[N]) |
template<typename T > | |
T::ValueType & | GetValueByPointerWithDefault (T &root, const GenericPointer< typename T::ValueType > &pointer, const typename T::ValueType &defaultValue, typename T::AllocatorType &a) |
template<typename T > | |
T::ValueType & | GetValueByPointerWithDefault (T &root, const GenericPointer< typename T::ValueType > &pointer, const typename T::Ch *defaultValue, typename T::AllocatorType &a) |
template<typename T , typename T2 > | |
RAPIDJSON_DISABLEIF_RETURN ((internal::OrExpr< internal::IsPointer< T2 >, internal::IsGenericValue< T2 > >),(typename T::ValueType &)) GetValueByPointerWithDefault(T &root | |
template<typename T , typename CharType , size_t N> | |
T::ValueType & | GetValueByPointerWithDefault (T &root, const CharType(&source)[N], const typename T::ValueType &defaultValue, typename T::AllocatorType &a) |
template<typename T , typename CharType , size_t N> | |
T::ValueType & | GetValueByPointerWithDefault (T &root, const CharType(&source)[N], const typename T::Ch *defaultValue, typename T::AllocatorType &a) |
template<typename T , typename CharType , size_t N, typename T2 > | |
RAPIDJSON_DISABLEIF_RETURN ((internal::OrExpr< internal::IsPointer< T2 >, internal::IsGenericValue< T2 > >),(typename T::ValueType &)) GetValueByPointerWithDefault(T &root | |
template<typename DocumentType > | |
DocumentType::ValueType & | GetValueByPointerWithDefault (DocumentType &document, const GenericPointer< typename DocumentType::ValueType > &pointer, const typename DocumentType::ValueType &defaultValue) |
template<typename DocumentType > | |
DocumentType::ValueType & | GetValueByPointerWithDefault (DocumentType &document, const GenericPointer< typename DocumentType::ValueType > &pointer, const typename DocumentType::Ch *defaultValue) |
template<typename DocumentType , typename T2 > | |
RAPIDJSON_DISABLEIF_RETURN ((internal::OrExpr< internal::IsPointer< T2 >, internal::IsGenericValue< T2 > >),(typename DocumentType::ValueType &)) GetValueByPointerWithDefault(DocumentType &document | |
template<typename DocumentType , typename CharType , size_t N> | |
DocumentType::ValueType & | GetValueByPointerWithDefault (DocumentType &document, const CharType(&source)[N], const typename DocumentType::ValueType &defaultValue) |
template<typename DocumentType , typename CharType , size_t N> | |
DocumentType::ValueType & | GetValueByPointerWithDefault (DocumentType &document, const CharType(&source)[N], const typename DocumentType::Ch *defaultValue) |
template<typename DocumentType , typename CharType , size_t N, typename T2 > | |
RAPIDJSON_DISABLEIF_RETURN ((internal::OrExpr< internal::IsPointer< T2 >, internal::IsGenericValue< T2 > >),(typename DocumentType::ValueType &)) GetValueByPointerWithDefault(DocumentType &document | |
template<typename T > | |
T::ValueType & | SetValueByPointer (T &root, const GenericPointer< typename T::ValueType > &pointer, typename T::ValueType &value, typename T::AllocatorType &a) |
template<typename T > | |
T::ValueType & | SetValueByPointer (T &root, const GenericPointer< typename T::ValueType > &pointer, const typename T::ValueType &value, typename T::AllocatorType &a) |
template<typename T > | |
T::ValueType & | SetValueByPointer (T &root, const GenericPointer< typename T::ValueType > &pointer, const typename T::Ch *value, typename T::AllocatorType &a) |
template<typename T , typename CharType , size_t N> | |
T::ValueType & | SetValueByPointer (T &root, const CharType(&source)[N], typename T::ValueType &value, typename T::AllocatorType &a) |
template<typename T , typename CharType , size_t N> | |
T::ValueType & | SetValueByPointer (T &root, const CharType(&source)[N], const typename T::ValueType &value, typename T::AllocatorType &a) |
template<typename T , typename CharType , size_t N> | |
T::ValueType & | SetValueByPointer (T &root, const CharType(&source)[N], const typename T::Ch *value, typename T::AllocatorType &a) |
template<typename DocumentType > | |
DocumentType::ValueType & | SetValueByPointer (DocumentType &document, const GenericPointer< typename DocumentType::ValueType > &pointer, typename DocumentType::ValueType &value) |
template<typename DocumentType > | |
DocumentType::ValueType & | SetValueByPointer (DocumentType &document, const GenericPointer< typename DocumentType::ValueType > &pointer, const typename DocumentType::ValueType &value) |
template<typename DocumentType > | |
DocumentType::ValueType & | SetValueByPointer (DocumentType &document, const GenericPointer< typename DocumentType::ValueType > &pointer, const typename DocumentType::Ch *value) |
template<typename DocumentType , typename CharType , size_t N> | |
DocumentType::ValueType & | SetValueByPointer (DocumentType &document, const CharType(&source)[N], typename DocumentType::ValueType &value) |
template<typename DocumentType , typename CharType , size_t N> | |
DocumentType::ValueType & | SetValueByPointer (DocumentType &document, const CharType(&source)[N], const typename DocumentType::ValueType &value) |
template<typename DocumentType , typename CharType , size_t N> | |
DocumentType::ValueType & | SetValueByPointer (DocumentType &document, const CharType(&source)[N], const typename DocumentType::Ch *value) |
template<typename T > | |
T::ValueType & | SwapValueByPointer (T &root, const GenericPointer< typename T::ValueType > &pointer, typename T::ValueType &value, typename T::AllocatorType &a) |
template<typename T , typename CharType , size_t N> | |
T::ValueType & | SwapValueByPointer (T &root, const CharType(&source)[N], typename T::ValueType &value, typename T::AllocatorType &a) |
template<typename DocumentType > | |
DocumentType::ValueType & | SwapValueByPointer (DocumentType &document, const GenericPointer< typename DocumentType::ValueType > &pointer, typename DocumentType::ValueType &value) |
template<typename DocumentType , typename CharType , size_t N> | |
DocumentType::ValueType & | SwapValueByPointer (DocumentType &document, const CharType(&source)[N], typename DocumentType::ValueType &value) |
template<typename T > | |
bool | EraseValueByPointer (T &root, const GenericPointer< typename T::ValueType > &pointer) |
template<typename T , typename CharType , size_t N> | |
bool | EraseValueByPointer (T &root, const CharType(&source)[N]) |
typedef GenericPointer<Value> Pointer |
GenericPointer for Value (UTF-8, default allocator).
T::ValueType& CreateValueByPointer | ( | T & | root, |
const GenericPointer< typename T::ValueType > & | pointer, | ||
typename T::AllocatorType & | a | ||
) |
T::ValueType& CreateValueByPointer | ( | T & | root, |
const CharType(&) | source[N], | ||
typename T::AllocatorType & | a | ||
) |
DocumentType::ValueType& CreateValueByPointer | ( | DocumentType & | document, |
const GenericPointer< typename DocumentType::ValueType > & | pointer | ||
) |
DocumentType::ValueType& CreateValueByPointer | ( | DocumentType & | document, |
const CharType(&) | source[N] | ||
) |
bool EraseValueByPointer | ( | T & | root, |
const GenericPointer< typename T::ValueType > & | pointer | ||
) |
Definition at line 1300 of file pointer.h.
References GenericPointer< ValueType, Allocator >::Erase().
bool EraseValueByPointer | ( | T & | root, |
const CharType(&) | source[N] | ||
) |
Definition at line 1305 of file pointer.h.
References GenericPointer< ValueType, Allocator >::Erase(), RAPIDJSON_NAMESPACE_END, and source.
T::ValueType* GetValueByPointer | ( | T & | root, |
const GenericPointer< typename T::ValueType > & | pointer | ||
) |
const T::ValueType* GetValueByPointer | ( | const T & | root, |
const GenericPointer< typename T::ValueType > & | pointer | ||
) |
T::ValueType* GetValueByPointer | ( | T & | root, |
const CharType(&) | source[N] | ||
) |
const T::ValueType* GetValueByPointer | ( | const T & | root, |
const CharType(&) | source[N] | ||
) |
T::ValueType& GetValueByPointerWithDefault | ( | T & | root, |
const GenericPointer< typename T::ValueType > & | pointer, | ||
const typename T::ValueType & | defaultValue, | ||
typename T::AllocatorType & | a | ||
) |
T::ValueType& GetValueByPointerWithDefault | ( | T & | root, |
const GenericPointer< typename T::ValueType > & | pointer, | ||
const typename T::Ch * | defaultValue, | ||
typename T::AllocatorType & | a | ||
) |
Definition at line 1071 of file pointer.h.
References defaultValue, GetValueByPointerWithDefault(), and GenericPointer< ValueType, Allocator >::RAPIDJSON_DISABLEIF_RETURN().
T::ValueType& GetValueByPointerWithDefault | ( | T & | root, |
const CharType(&) | source[N], | ||
const typename T::ValueType & | defaultValue, | ||
typename T::AllocatorType & | a | ||
) |
T::ValueType& GetValueByPointerWithDefault | ( | T & | root, |
const CharType(&) | source[N], | ||
const typename T::Ch * | defaultValue, | ||
typename T::AllocatorType & | a | ||
) |
Definition at line 1094 of file pointer.h.
References defaultValue, GetValueByPointerWithDefault(), GenericPointer< ValueType, Allocator >::RAPIDJSON_DISABLEIF_RETURN(), and source.
DocumentType::ValueType& GetValueByPointerWithDefault | ( | DocumentType & | document, |
const GenericPointer< typename DocumentType::ValueType > & | pointer, | ||
const typename DocumentType::ValueType & | defaultValue | ||
) |
DocumentType::ValueType& GetValueByPointerWithDefault | ( | DocumentType & | document, |
const GenericPointer< typename DocumentType::ValueType > & | pointer, | ||
const typename DocumentType::Ch * | defaultValue | ||
) |
Definition at line 1119 of file pointer.h.
References defaultValue, GetValueByPointerWithDefault(), and GenericPointer< ValueType, Allocator >::RAPIDJSON_DISABLEIF_RETURN().
DocumentType::ValueType& GetValueByPointerWithDefault | ( | DocumentType & | document, |
const CharType(&) | source[N], | ||
const typename DocumentType::ValueType & | defaultValue | ||
) |
DocumentType::ValueType& GetValueByPointerWithDefault | ( | DocumentType & | document, |
const CharType(&) | source[N], | ||
const typename DocumentType::Ch * | defaultValue | ||
) |
Definition at line 1142 of file pointer.h.
References GetValueByPointerWithDefault(), GenericPointer< ValueType, Allocator >::RAPIDJSON_DISABLEIF_RETURN(), and source.
RAPIDJSON_DISABLEIF_RETURN | ( | (internal::OrExpr< internal::IsPointer< T2 >, internal::IsGenericValue< T2 > >) | , |
(typename T::ValueType &) | |||
) |
RAPIDJSON_DISABLEIF_RETURN | ( | (internal::OrExpr< internal::IsPointer< T2 >, internal::IsGenericValue< T2 > >) | , |
(typename T::ValueType &) | |||
) |
RAPIDJSON_DISABLEIF_RETURN | ( | (internal::OrExpr< internal::IsPointer< T2 >, internal::IsGenericValue< T2 > >) | , |
(typename DocumentType::ValueType &) | |||
) |
RAPIDJSON_DISABLEIF_RETURN | ( | (internal::OrExpr< internal::IsPointer< T2 >, internal::IsGenericValue< T2 > >) | , |
(typename DocumentType::ValueType &) | |||
) |
T::ValueType& SetValueByPointer | ( | T & | root, |
const GenericPointer< typename T::ValueType > & | pointer, | ||
typename T::ValueType & | value, | ||
typename T::AllocatorType & | a | ||
) |
Definition at line 1162 of file pointer.h.
References GenericPointer< ValueType, Allocator >::Set().
T::ValueType& SetValueByPointer | ( | T & | root, |
const GenericPointer< typename T::ValueType > & | pointer, | ||
const typename T::ValueType & | value, | ||
typename T::AllocatorType & | a | ||
) |
Definition at line 1167 of file pointer.h.
References GenericPointer< ValueType, Allocator >::Set().
T::ValueType& SetValueByPointer | ( | T & | root, |
const GenericPointer< typename T::ValueType > & | pointer, | ||
const typename T::Ch * | value, | ||
typename T::AllocatorType & | a | ||
) |
Definition at line 1172 of file pointer.h.
References GenericPointer< ValueType, Allocator >::RAPIDJSON_DISABLEIF_RETURN(), GenericPointer< ValueType, Allocator >::Set(), and SetValueByPointer().
T::ValueType& SetValueByPointer | ( | T & | root, |
const CharType(&) | source[N], | ||
typename T::ValueType & | value, | ||
typename T::AllocatorType & | a | ||
) |
Definition at line 1190 of file pointer.h.
References GenericPointer< ValueType, Allocator >::Set(), and source.
T::ValueType& SetValueByPointer | ( | T & | root, |
const CharType(&) | source[N], | ||
const typename T::ValueType & | value, | ||
typename T::AllocatorType & | a | ||
) |
Definition at line 1195 of file pointer.h.
References GenericPointer< ValueType, Allocator >::Set(), and source.
T::ValueType& SetValueByPointer | ( | T & | root, |
const CharType(&) | source[N], | ||
const typename T::Ch * | value, | ||
typename T::AllocatorType & | a | ||
) |
Definition at line 1200 of file pointer.h.
References GenericPointer< ValueType, Allocator >::RAPIDJSON_DISABLEIF_RETURN(), GenericPointer< ValueType, Allocator >::Set(), SetValueByPointer(), and source.
DocumentType::ValueType& SetValueByPointer | ( | DocumentType & | document, |
const GenericPointer< typename DocumentType::ValueType > & | pointer, | ||
typename DocumentType::ValueType & | value | ||
) |
Definition at line 1220 of file pointer.h.
References GenericPointer< ValueType, Allocator >::Set().
DocumentType::ValueType& SetValueByPointer | ( | DocumentType & | document, |
const GenericPointer< typename DocumentType::ValueType > & | pointer, | ||
const typename DocumentType::ValueType & | value | ||
) |
Definition at line 1225 of file pointer.h.
References GenericPointer< ValueType, Allocator >::Set().
DocumentType::ValueType& SetValueByPointer | ( | DocumentType & | document, |
const GenericPointer< typename DocumentType::ValueType > & | pointer, | ||
const typename DocumentType::Ch * | value | ||
) |
Definition at line 1230 of file pointer.h.
References GenericPointer< ValueType, Allocator >::RAPIDJSON_DISABLEIF_RETURN(), GenericPointer< ValueType, Allocator >::Set(), and SetValueByPointer().
DocumentType::ValueType& SetValueByPointer | ( | DocumentType & | document, |
const CharType(&) | source[N], | ||
typename DocumentType::ValueType & | value | ||
) |
Definition at line 1248 of file pointer.h.
References GenericPointer< ValueType, Allocator >::Set(), and source.
DocumentType::ValueType& SetValueByPointer | ( | DocumentType & | document, |
const CharType(&) | source[N], | ||
const typename DocumentType::ValueType & | value | ||
) |
Definition at line 1253 of file pointer.h.
References GenericPointer< ValueType, Allocator >::Set(), and source.
DocumentType::ValueType& SetValueByPointer | ( | DocumentType & | document, |
const CharType(&) | source[N], | ||
const typename DocumentType::Ch * | value | ||
) |
Definition at line 1258 of file pointer.h.
References GenericPointer< ValueType, Allocator >::RAPIDJSON_DISABLEIF_RETURN(), GenericPointer< ValueType, Allocator >::Set(), SetValueByPointer(), and source.
T::ValueType& SwapValueByPointer | ( | T & | root, |
const GenericPointer< typename T::ValueType > & | pointer, | ||
typename T::ValueType & | value, | ||
typename T::AllocatorType & | a | ||
) |
Definition at line 1278 of file pointer.h.
References GenericPointer< ValueType, Allocator >::Swap().
T::ValueType& SwapValueByPointer | ( | T & | root, |
const CharType(&) | source[N], | ||
typename T::ValueType & | value, | ||
typename T::AllocatorType & | a | ||
) |
Definition at line 1283 of file pointer.h.
References source, and GenericPointer< ValueType, Allocator >::Swap().
DocumentType::ValueType& SwapValueByPointer | ( | DocumentType & | document, |
const GenericPointer< typename DocumentType::ValueType > & | pointer, | ||
typename DocumentType::ValueType & | value | ||
) |
Definition at line 1288 of file pointer.h.
References GenericPointer< ValueType, Allocator >::Swap().
DocumentType::ValueType& SwapValueByPointer | ( | DocumentType & | document, |
const CharType(&) | source[N], | ||
typename DocumentType::ValueType & | value | ||
) |
Definition at line 1293 of file pointer.h.
References source, and GenericPointer< ValueType, Allocator >::Swap().
const CharType( T2 T::AllocatorType& a |
const GenericPointer< typename DocumentType::ValueType > T2 defaultValue |
|
static |
Represents an invalid index in GenericPointer::Token.
const GenericPointer<typename DocumentType::ValueType>& pointer |
const CharType( T2 value |