userver: formats::json::parser::NumberParser< Number > Class Template Reference
Loading...
Searching...
No Matches
formats::json::parser::NumberParser< Number > Class Template Referencefinal

Detailed Description

template<typename Number>
class formats::json::parser::NumberParser< Number >

Definition at line 10 of file number_parser.hpp.

+ Inheritance diagram for formats::json::parser::NumberParser< Number >:
+ Collaboration diagram for formats::json::parser::NumberParser< Number >:

Protected Member Functions

void Int64 (int64_t value) override
 
void Uint64 (uint64_t value) override
 
void Double (double value) override
 
std::string Expected () const override
 
std::string GetPathItem () const override
 
- Protected Member Functions inherited from formats::json::parser::TypedParser< Number >
void SetResult (Number &&value)
 
- Protected Member Functions inherited from formats::json::parser::BaseParser
void Throw (const std::string &found)
 

Additional Inherited Members

- Public Types inherited from formats::json::parser::TypedParser< Number >
using ResultType
 
- Public Member Functions inherited from formats::json::parser::TypedParser< Number >
void Subscribe (Subscriber< Number > &subscriber)
 
virtual void Reset ()
 
TypedParser< Number > & GetParser ()
 
- Public Member Functions inherited from formats::json::parser::BaseParser
virtual void Null ()
 
virtual void Bool (bool)
 
virtual void String (std::string_view)
 
virtual void StartObject ()
 
virtual void Key (std::string_view key)
 
virtual void EndObject ()
 
virtual void StartArray ()
 
virtual void EndArray ()
 
virtual void EndObject (size_t)
 
virtual void EndArray (size_t)
 
void SetState (ParserState &state)
 
- Protected Attributes inherited from formats::json::parser::BaseParser
ParserStateparser_state_ {nullptr}
 

Member Function Documentation

◆ Double()

template<typename Number >
void formats::json::parser::NumberParser< Number >::Double ( double value)
inlineoverrideprotectedvirtual

Reimplemented from formats::json::parser::BaseParser.

Definition at line 19 of file number_parser.hpp.

◆ Expected()

template<typename Number >
std::string formats::json::parser::NumberParser< Number >::Expected ( ) const
inlineoverrideprotectedvirtual

Implements formats::json::parser::BaseParser.

Definition at line 21 of file number_parser.hpp.

◆ GetPathItem()

template<typename Number >
std::string formats::json::parser::NumberParser< Number >::GetPathItem ( ) const
inlineoverrideprotectedvirtual

Implements formats::json::parser::BaseParser.

Definition at line 23 of file number_parser.hpp.

◆ Int64()

template<typename Number >
void formats::json::parser::NumberParser< Number >::Int64 ( int64_t value)
inlineoverrideprotectedvirtual

Reimplemented from formats::json::parser::BaseParser.

Definition at line 15 of file number_parser.hpp.

◆ Uint64()

template<typename Number >
void formats::json::parser::NumberParser< Number >::Uint64 ( uint64_t value)
inlineoverrideprotectedvirtual

Reimplemented from formats::json::parser::BaseParser.

Definition at line 17 of file number_parser.hpp.


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