JSON Voorhees
Killer JSON for C++
Loading...
Searching...
No Matches
jsonv::ast_node::object_begin Class Referencefinal

The beginning of an kind::object ({). More...

#include <jsonv/ast.hpp>

+ Inheritance diagram for jsonv::ast_node::object_begin:
+ Collaboration diagram for jsonv::ast_node::object_begin:

Public Member Functions

constexpr object_begin (const char *token_begin, std::size_t element_count)
 
constexpr std::size_t element_count () const
 Get the number of elements in the object this token starts. This is useful for reserving memory.
 
- Public Member Functions inherited from jsonv::ast_node::basic_fixed_size_token< object_begin, ast_node_type::object_begin, 1U >
constexpr basic_fixed_size_token (const char *token_begin)
 
constexpr std::size_t token_size () const
 
- Public Member Functions inherited from jsonv::ast_node::base< TSelf, KIndexToken >
string_view token_raw () const
 
 operator ast_node () const
 Allow implicit conversion to the more generic ast_node.
 

Additional Inherited Members

- Static Public Member Functions inherited from jsonv::ast_node::base< TSelf, KIndexToken >
static constexpr ast_node_type type ()
 Get the ast_node_type type.
 
- Protected Member Functions inherited from jsonv::ast_node::base< TSelf, KIndexToken >
constexpr base (const char *token_begin)
 

Detailed Description

The beginning of an kind::object ({).

Definition at line 237 of file ast.hpp.

Constructor & Destructor Documentation

◆ object_begin()

constexpr jsonv::ast_node::object_begin::object_begin ( const char token_begin,
std::size_t  element_count 
)
inlineexplicitconstexpr

Definition at line 240 of file ast.hpp.

Member Function Documentation

◆ element_count()

constexpr std::size_t jsonv::ast_node::object_begin::element_count ( ) const
inlineconstexpr

Get the number of elements in the object this token starts. This is useful for reserving memory.

Definition at line 246 of file ast.hpp.


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