Skip to content

Struct zmbt::Expression::EvalLog

ClassList > zmbt > Expression > EvalLog

Expression evaluation log.

  • #include <expression.hpp>

Public Attributes

Type Name
std::shared_ptr< boost::json::array > stack

Public Functions

Type Name
EvalLog () = default
Default instance with null log stack.
void push (boost::json::value const & expr, boost::json::value const & x, boost::json::value const & result, std::uint64_t const depth) const
Push record to log stack.
std::string str () const
Stringify log.

Public Static Functions

Type Name
void format (std::ostream & os, boost::json::array const & log, int const indent=0)
EvalLog make ()
Make non-empty EvalLog .

Public Attributes Documentation

variable stack

std::shared_ptr<boost::json::array> zmbt::Expression::EvalLog::stack;

Public Functions Documentation

function EvalLog

Default instance with null log stack.

zmbt::Expression::EvalLog::EvalLog () = default


function push

Push record to log stack.

void zmbt::Expression::EvalLog::push (
    boost::json::value const & expr,
    boost::json::value const & x,
    boost::json::value const & result,
    std::uint64_t const depth
) const


function str

Stringify log.

std::string zmbt::Expression::EvalLog::str () const


Public Static Functions Documentation

function format

static void zmbt::Expression::EvalLog::format (
    std::ostream & os,
    boost::json::array const & log,
    int const indent=0
) 

function make

Make non-empty EvalLog .

static EvalLog zmbt::Expression::EvalLog::make () 


Friends Documentation

friend operator<<

std::ostream & zmbt::Expression::EvalLog::operator<< (
    std::ostream & os,
    EvalLog const & log
) 


The documentation for this class was generated from the following file zmbt-framework/zmbt-framework/backends/cxx/include/zmbt/model/expression.hpp