7#if !defined(TETENGO_JSON_READER_HPP)
8#define TETENGO_JSON_READER_HPP
10#include <boost/core/noncopyable.hpp>
18 class reader :
private boost::noncopyable
46 [[nodiscard]]
char peek()
const;
68 virtual bool has_next_impl()
const = 0;
70 virtual char peek_impl()
const = 0;
72 virtual void next_impl() = 0;
74 virtual const reader& base_reader_impl()
const = 0;
A reader.
Definition reader.hpp:19
void next()
Moves to the next character.
virtual ~reader()
Destroys the reader.
bool has_next() const
Returns true when the next character exists.
char peek() const
Returns the current character.
const reader & base_reader() const
Returns the base reader.