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 303 of file libeval_compiler.h.

Constructor & Destructor Documentation

◆ CONTEXT()

LIBEVAL::CONTEXT::CONTEXT ( )
inline

Definition at line 306 of file libeval_compiler.h.

References m_ownedValues.

◆ ~CONTEXT()

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

Definition at line 313 of file libeval_compiler.h.

References m_ownedValues.

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 349 of file libeval_compiler.h.

References m_stackPtr.

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

◆ StoreValue()

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

Definition at line 327 of file libeval_compiler.h.

References m_ownedValues.

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 368 of file libeval_compiler.h.

Referenced by HasErrorCallback(), ReportError(), and SetErrorCallback().

◆ m_ownedValues

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

Definition at line 364 of file libeval_compiler.h.

Referenced by AllocValue(), CONTEXT(), StoreValue(), and ~CONTEXT().

◆ m_stack

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

Definition at line 365 of file libeval_compiler.h.

Referenced by Pop(), and Push().

◆ m_stackPtr

int LIBEVAL::CONTEXT::m_stackPtr
private

Definition at line 366 of file libeval_compiler.h.

Referenced by Pop(), Push(), and SP().


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