![]() |
Stan
2.5.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 18 of file json_handler.hpp.
|
inline |
Definition at line 20 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 62 of file json_handler.hpp.
|
inlinevirtual |
Handle the end of an array.
Reimplemented in stan::json::json_data_handler.
Definition at line 40 of file json_handler.hpp.
|
inlinevirtual |
Handle the end of an object.
Reimplemented in stan::json::json_data_handler.
Definition at line 50 of file json_handler.hpp.
|
inlinevirtual |
Handle the the end of the text.
Reimplemented in stan::json::json_data_handler.
Definition at line 30 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 98 of file json_handler.hpp.
|
inlinevirtual |
Handle the null literal value.
Reimplemented in stan::json::json_data_handler.
Definition at line 55 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 70 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 84 of file json_handler.hpp.
|
inlinevirtual |
Handle the start of an array.
Reimplemented in stan::json::json_data_handler.
Definition at line 35 of file json_handler.hpp.
|
inlinevirtual |
Handle the start of an object.
Reimplemented in stan::json::json_data_handler.
Definition at line 45 of file json_handler.hpp.
|
inlinevirtual |
Handle the the start of the text.
Reimplemented in stan::json::json_data_handler.
Definition at line 25 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 91 of file json_handler.hpp.