A reader.
More...
#include <reader.hpp>
|
virtual | ~reader () |
| Destroys the reader.
|
|
bool | has_next () const |
| Returns true when the next character exists.
|
|
char | peek () const |
| Returns the current character.
|
|
void | next () |
| Moves to the next character.
|
|
const reader & | base_reader () const |
| Returns the base reader.
|
|
◆ base_reader()
const reader & tetengo::json::reader::base_reader |
( |
| ) |
const |
Returns the base reader.
- Returns
- The base reader.
- Exceptions
-
std::logic_error | When this reader does not have a base reader. |
◆ has_next()
bool tetengo::json::reader::has_next |
( |
| ) |
const |
Returns true when the next character exists.
- Return values
-
true | When the next character exists. |
false | Otherwise. |
◆ next()
void tetengo::json::reader::next |
( |
| ) |
|
Moves to the next character.
- Exceptions
-
std::logic_error | When current position is beyond the termination point. |
◆ peek()
char tetengo::json::reader::peek |
( |
| ) |
const |
Returns the current character.
- Returns
- The current character.
- Exceptions
-
std::logic_error | When current position is beyond the termination point. |
The documentation for this class was generated from the following file: