Stan  2.10.0
probability, sampling & optimization
Public Member Functions | List of all members
stan::json::json_handler Class Reference

Abstract base class for JSON handlers. More...

#include <json_handler.hpp>

Inheritance diagram for stan::json::json_handler:
stan::json::json_data_handler

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

stan::json::json_handler::json_handler ( )
inline

Definition at line 17 of file json_handler.hpp.

stan::json::json_handler::~json_handler ( )
inline

Definition at line 19 of file json_handler.hpp.

Member Function Documentation

virtual void stan::json::json_handler::boolean ( bool  p)
inlinevirtual

Handle the boolean literal value of the specified polarity.

Parameters
ppolarity of boolean

Reimplemented in stan::json::json_data_handler.

Definition at line 61 of file json_handler.hpp.

virtual void stan::json::json_handler::end_array ( )
inlinevirtual

Handle the end of an array.

Reimplemented in stan::json::json_data_handler.

Definition at line 39 of file json_handler.hpp.

virtual void stan::json::json_handler::end_object ( )
inlinevirtual

Handle the end of an object.

Reimplemented in stan::json::json_data_handler.

Definition at line 49 of file json_handler.hpp.

virtual void stan::json::json_handler::end_text ( )
inlinevirtual

Handle the the end of the text.

Reimplemented in stan::json::json_data_handler.

Definition at line 29 of file json_handler.hpp.

virtual void stan::json::json_handler::key ( const std::string &  s)
inlinevirtual

Handle the specified object key.

Parameters
sString object key to handle.

Reimplemented in stan::json::json_data_handler.

Definition at line 99 of file json_handler.hpp.

virtual void stan::json::json_handler::null ( )
inlinevirtual

Handle the null literal value.

Reimplemented in stan::json::json_data_handler.

Definition at line 54 of file json_handler.hpp.

virtual void stan::json::json_handler::number_double ( double  x)
inlinevirtual

Handle a the specified double-precision floating point value.

Parameters
xValue to handle.

Reimplemented in stan::json::json_data_handler.

Definition at line 69 of file json_handler.hpp.

virtual void stan::json::json_handler::number_long ( long  n)
inlinevirtual

Handle a the specified long integer value.

Parameters
nValue to handle.

Reimplemented in stan::json::json_data_handler.

Definition at line 77 of file json_handler.hpp.

virtual void stan::json::json_handler::number_unsigned_long ( unsigned long  n)
inlinevirtual

Handle a the specified unsigned long integer value.

Parameters
nValue to handle.

Reimplemented in stan::json::json_data_handler.

Definition at line 85 of file json_handler.hpp.

virtual void stan::json::json_handler::start_array ( )
inlinevirtual

Handle the start of an array.

Reimplemented in stan::json::json_data_handler.

Definition at line 34 of file json_handler.hpp.

virtual void stan::json::json_handler::start_object ( )
inlinevirtual

Handle the start of an object.

Reimplemented in stan::json::json_data_handler.

Definition at line 44 of file json_handler.hpp.

virtual void stan::json::json_handler::start_text ( )
inlinevirtual

Handle the the start of the text.

Reimplemented in stan::json::json_data_handler.

Definition at line 24 of file json_handler.hpp.

virtual void stan::json::json_handler::string ( const std::string &  s)
inlinevirtual

Handle the specified string value.

Parameters
sString value to handle.

Reimplemented in stan::json::json_data_handler.

Definition at line 92 of file json_handler.hpp.


The documentation for this class was generated from the following file:

     [ Stan Home Page ] © 2011–2016, Stan Development Team.