HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
v1::formula_evaluation_context Struct Reference

Data Structures

struct  loop_info

Public Types

using scope = std::unordered_map<std::string, datum>
using stack = std::vector<scope>

Public Member Functions

void write (std::string_view text) noexcept
 Write data to the output.
ssize_t output_size () const noexcept
 Get the size of the output.
void set_output_size (ssize_t new_size) noexcept
 Set the size of the output.
void enable_output () noexcept
void disable_output () noexcept
void loop_push (ssize_t count=-1, ssize_t size=-1) noexcept
void loop_pop () noexcept
void push ()
void pop ()
bool has_locals () const noexcept
scope const & locals () const
scope & locals ()
datum const & loop_get (std::string_view name) const
datum const & get (std::string const &name) const
datumget (std::string const &name)
template<typename T>
void set_local (std::string const &name, T &&value)
template<typename T>
void set_global (std::string const &name, T &&value)
datumset (std::string const &name, datum const &value)

Data Fields

ssize_t output_disable_count = 0
std::string output
stack local_stack
std::vector< loop_infoloop_stack
scope globals

Member Function Documentation

◆ output_size()

ssize_t v1::formula_evaluation_context::output_size ( ) const
inlinenoexcept

Get the size of the output.

Used if you need to reset the output to a previous position.

◆ set_output_size()

void v1::formula_evaluation_context::set_output_size ( ssize_t new_size)
inlinenoexcept

Set the size of the output.

Used if you need to reset the output to a previous position.

◆ write()

void v1::formula_evaluation_context::write ( std::string_view text)
inlinenoexcept

Write data to the output.


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