Public Attributes | List of all members
GenericPointer< ValueType, Allocator >::Token Struct Reference

A token is the basic units of internal representation. More...

#include <pointer.h>

Public Attributes

SizeType index
 A valid array index, if it is not equal to kPointerInvalidIndex. More...
 
SizeType length
 Length of the name. More...
 
const Chname
 Name of the token. It has null character at the end but it can contain null character. More...
 

Detailed Description

template<typename ValueType, typename Allocator = CrtAllocator>
struct GenericPointer< ValueType, Allocator >::Token

A token is the basic units of internal representation.

A JSON pointer string representation "/foo/123" is parsed to two tokens: "foo" and 123. 123 will be represented in both numeric form and string form. They are resolved according to the actual value type (object or array).

For token that are not numbers, or the numeric value is out of bound (greater than limits of SizeType), they are only treated as string form (i.e. the token's index will be equal to kPointerInvalidIndex).

This struct is public so that user can create a Pointer without parsing and allocation, using a special constructor.

Definition at line 99 of file pointer.h.

Member Data Documentation

template<typename ValueType, typename Allocator = CrtAllocator>
SizeType GenericPointer< ValueType, Allocator >::Token::index

A valid array index, if it is not equal to kPointerInvalidIndex.

Definition at line 103 of file pointer.h.

template<typename ValueType, typename Allocator = CrtAllocator>
SizeType GenericPointer< ValueType, Allocator >::Token::length

Length of the name.

Definition at line 102 of file pointer.h.

template<typename ValueType, typename Allocator = CrtAllocator>
const Ch* GenericPointer< ValueType, Allocator >::Token::name

Name of the token. It has null character at the end but it can contain null character.

Definition at line 101 of file pointer.h.


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


xbot_talker
Author(s): wangxiaoyun
autogenerated on Sat Oct 10 2020 03:27:54