KiCad PCB EDA Suite
Loading...
Searching...
No Matches
LIBEVAL::CONTEXT Class Reference

#include <libeval_compiler.h>

Inheritance diagram for LIBEVAL::CONTEXT:
PCBEXPR_CONTEXT

Public Member Functions

 CONTEXT ()
 
virtual ~CONTEXT ()
 
VALUEAllocValue ()
 
VALUEStoreValue (VALUE *aValue)
 
void Push (VALUE *v)
 
VALUEPop ()
 
int SP () const
 
void SetErrorCallback (std::function< void(const wxString &aMessage, int aOffset)> aCallback)
 
bool HasErrorCallback ()
 
void ReportError (const wxString &aErrorMsg)
 

Private Attributes

std::vector< VALUE * > m_ownedValues
 
VALUEm_stack [100]
 
int m_stackPtr
 
std::function< void(const wxString &aMessage, int aOffset)> m_errorCallback
 

Detailed Description

Definition at line 304 of file libeval_compiler.h.

Constructor & Destructor Documentation

◆ CONTEXT()

LIBEVAL::CONTEXT::CONTEXT ( )
inline

Definition at line 307 of file libeval_compiler.h.

◆ ~CONTEXT()

virtual LIBEVAL::CONTEXT::~CONTEXT ( )
inlinevirtual

Definition at line 314 of file libeval_compiler.h.

Member Function Documentation

◆ AllocValue()

◆ HasErrorCallback()

◆ Pop()

◆ Push()

◆ ReportError()

◆ SetErrorCallback()

void LIBEVAL::CONTEXT::SetErrorCallback ( std::function< void(const wxString &aMessage, int aOffset)>  aCallback)
inline

◆ SP()

int LIBEVAL::CONTEXT::SP ( ) const
inline

Definition at line 350 of file libeval_compiler.h.

Referenced by LIBEVAL::UCODE::Run().

◆ StoreValue()

VALUE * LIBEVAL::CONTEXT::StoreValue ( VALUE aValue)
inline

Definition at line 328 of file libeval_compiler.h.

Referenced by LIBEVAL::UOP::Exec().

Member Data Documentation

◆ m_errorCallback

std::function<void( const wxString& aMessage, int aOffset )> LIBEVAL::CONTEXT::m_errorCallback
private

Definition at line 369 of file libeval_compiler.h.

Referenced by ReportError().

◆ m_ownedValues

std::vector<VALUE*> LIBEVAL::CONTEXT::m_ownedValues
private

Definition at line 365 of file libeval_compiler.h.

◆ m_stack

VALUE* LIBEVAL::CONTEXT::m_stack[100]
private

Definition at line 366 of file libeval_compiler.h.

◆ m_stackPtr

int LIBEVAL::CONTEXT::m_stackPtr
private

Definition at line 367 of file libeval_compiler.h.


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