ChessPlusPlus
WIP
cplusplus.com Community Project
|
#include <JsonReader.hpp>
Classes | |
class | NestedValue |
Public Member Functions | |
JsonReader ()=delete | |
JsonReader (JsonReader const &)=delete | |
JsonReader & | operator= (JsonReader const &)=delete |
JsonReader (std::istream &s) | |
JsonReader (std::istream &&s) | |
JsonReader (JsonReader &&from) | |
JsonReader & | operator= (std::istream &&s) |
JsonReader & | operator= (JsonReader &&from) |
~JsonReader () | |
NestedValue | access () const noexcept |
NestedValue | operator() () const noexcept |
template<typename... Args> | |
NestedValue | navigate (Args...path) const |
Respresents an immutable JSON file in memory. Current implementation uses json-parser by James McLaughlin. Thus, it wraps a json_value.
|
delete |
|
delete |
|
inline |
Constructs this JsonReader from the given stream. The stream is read to EOF.
s | The stream containing the JSON. |
|
inline |
Constructs this JsonReader from the given temporary stream. The stream is read to EOF.
s | The temporary stream containing the JSON. |
|
inline |
Move-constructs this JsonReader from another.
from | the JsonReader to move. |
|
inline |
Destructs this JsonReader freeing any allocated memory.
|
inlinenoexcept |
Returns a NestedValue view into this JSON.
|
inline |
Navigates through obejct values and array values and returns a NestedValue at the destination.
Args | The types for navigation, generally deduced by the compiler. |
path | The path to take to arrive at the destination. May be strings and indicies. |
|
inlinenoexcept |
Returns a NestedValue view into this JSON.
|
delete |
|
inline |
Move-assigns this JsonReader from a given stream rvalue. The stream is read to EOF. Returns *this
s | The stream containing the JSON. |
|
inline |
Move-assigns this JsonReader from another.
from | the JsonReader to move. |