![]() |
Stan
2.10.0
probability, sampling & optimization
|
Abstract base class for JSON handlers. More...
#include <json_handler.hpp>
Public Member Functions | |
json_handler () | |
~json_handler () | |
virtual void | start_text () |
Handle the the start of the text. More... | |
virtual void | end_text () |
Handle the the end of the text. More... | |
virtual void | start_array () |
Handle the start of an array. More... | |
virtual void | end_array () |
Handle the end of an array. More... | |
virtual void | start_object () |
Handle the start of an object. More... | |
virtual void | end_object () |
Handle the end of an object. More... | |
virtual void | null () |
Handle the null literal value. More... | |
virtual void | boolean (bool p) |
Handle the boolean literal value of the specified polarity. More... | |
virtual void | number_double (double x) |
Handle a the specified double-precision floating point value. More... | |
virtual void | number_long (long n) |
Handle a the specified long integer value. More... | |
virtual void | number_unsigned_long (unsigned long n) |
Handle a the specified unsigned long integer value. More... | |
virtual void | string (const std::string &s) |
Handle the specified string value. More... | |
virtual void | key (const std::string &s) |
Handle the specified object key. More... | |
Abstract base class for JSON handlers.
More efficient to just implement directly and pass in as a template, but this version is available for convenience.
Definition at line 15 of file json_handler.hpp.
|
inline |
Definition at line 17 of file json_handler.hpp.
|
inline |
Definition at line 19 of file json_handler.hpp.
|
inlinevirtual |
Handle the boolean literal value of the specified polarity.
p | polarity of boolean |
Reimplemented in stan::json::json_data_handler.
Definition at line 61 of file json_handler.hpp.
|
inlinevirtual |
Handle the end of an array.
Reimplemented in stan::json::json_data_handler.
Definition at line 39 of file json_handler.hpp.
|
inlinevirtual |
Handle the end of an object.
Reimplemented in stan::json::json_data_handler.
Definition at line 49 of file json_handler.hpp.
|
inlinevirtual |
Handle the the end of the text.
Reimplemented in stan::json::json_data_handler.
Definition at line 29 of file json_handler.hpp.
|
inlinevirtual |
Handle the specified object key.
s | String object key to handle. |
Reimplemented in stan::json::json_data_handler.
Definition at line 99 of file json_handler.hpp.
|
inlinevirtual |
Handle the null literal value.
Reimplemented in stan::json::json_data_handler.
Definition at line 54 of file json_handler.hpp.
|
inlinevirtual |
Handle a the specified double-precision floating point value.
x | Value to handle. |
Reimplemented in stan::json::json_data_handler.
Definition at line 69 of file json_handler.hpp.
|
inlinevirtual |
Handle a the specified long integer value.
n | Value to handle. |
Reimplemented in stan::json::json_data_handler.
Definition at line 77 of file json_handler.hpp.
|
inlinevirtual |
Handle a the specified unsigned long integer value.
n | Value to handle. |
Reimplemented in stan::json::json_data_handler.
Definition at line 85 of file json_handler.hpp.
|
inlinevirtual |
Handle the start of an array.
Reimplemented in stan::json::json_data_handler.
Definition at line 34 of file json_handler.hpp.
|
inlinevirtual |
Handle the start of an object.
Reimplemented in stan::json::json_data_handler.
Definition at line 44 of file json_handler.hpp.
|
inlinevirtual |
Handle the the start of the text.
Reimplemented in stan::json::json_data_handler.
Definition at line 24 of file json_handler.hpp.
|
inlinevirtual |
Handle the specified string value.
s | String value to handle. |
Reimplemented in stan::json::json_data_handler.
Definition at line 92 of file json_handler.hpp.