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

#include <libeval_compiler.h>

Public Member Functions

 UOP (int op, std::unique_ptr< VALUE > value)
 
 UOP (int op, std::unique_ptr< VAR_REF > vref)
 
 UOP (int op, FUNC_CALL_REF func, std::unique_ptr< VAR_REF > vref=nullptr)
 
 UOP (int op)
 Bare op (used for the short-circuit jumps, whose only payload is a jump target).
 
virtual ~UOP ()=default
 
int Exec (CONTEXT *ctx)
 Execute the op.
 
void SetJumpTarget (int aTarget)
 
wxString Format () const
 

Private Attributes

int m_op
 
int m_jumpTarget = -1
 
FUNC_CALL_REF m_func
 
std::unique_ptr< VAR_REFm_ref
 
std::unique_ptr< VALUEm_value
 

Detailed Description

Definition at line 513 of file libeval_compiler.h.

Constructor & Destructor Documentation

◆ UOP() [1/4]

LIBEVAL::UOP::UOP ( int op,
std::unique_ptr< VALUE > value )
inline

Definition at line 516 of file libeval_compiler.h.

References m_op, m_ref, m_value, and move.

◆ UOP() [2/4]

LIBEVAL::UOP::UOP ( int op,
std::unique_ptr< VAR_REF > vref )
inline

Definition at line 522 of file libeval_compiler.h.

References m_op, m_ref, m_value, and move.

◆ UOP() [3/4]

LIBEVAL::UOP::UOP ( int op,
FUNC_CALL_REF func,
std::unique_ptr< VAR_REF > vref = nullptr )
inline

Definition at line 528 of file libeval_compiler.h.

References m_func, m_op, m_ref, m_value, and move.

◆ UOP() [4/4]

LIBEVAL::UOP::UOP ( int op)
inlineexplicit

Bare op (used for the short-circuit jumps, whose only payload is a jump target).

Definition at line 536 of file libeval_compiler.h.

References m_op, m_ref, and m_value.

◆ ~UOP()

virtual LIBEVAL::UOP::~UOP ( )
virtualdefault

References Exec().

Member Function Documentation

◆ Exec()

◆ Format()

◆ SetJumpTarget()

void LIBEVAL::UOP::SetJumpTarget ( int aTarget)
inline

Definition at line 548 of file libeval_compiler.h.

References m_jumpTarget.

Member Data Documentation

◆ m_func

FUNC_CALL_REF LIBEVAL::UOP::m_func
private

Definition at line 556 of file libeval_compiler.h.

Referenced by Exec(), and UOP().

◆ m_jumpTarget

int LIBEVAL::UOP::m_jumpTarget = -1
private

Definition at line 554 of file libeval_compiler.h.

Referenced by Exec(), Format(), and SetJumpTarget().

◆ m_op

int LIBEVAL::UOP::m_op
private

Definition at line 553 of file libeval_compiler.h.

Referenced by Exec(), Format(), UOP(), UOP(), UOP(), and UOP().

◆ m_ref

std::unique_ptr<VAR_REF> LIBEVAL::UOP::m_ref
private

Definition at line 557 of file libeval_compiler.h.

Referenced by Exec(), Format(), UOP(), UOP(), UOP(), and UOP().

◆ m_value

std::unique_ptr<VALUE> LIBEVAL::UOP::m_value
private

Definition at line 558 of file libeval_compiler.h.

Referenced by Exec(), Format(), UOP(), UOP(), UOP(), and UOP().


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