KiCad PCB EDA Suite
Loading...
Searching...
No Matches
PCBEXPR_BUILTIN_FUNCTIONS Class Reference

#include <pcbexpr_evaluator.h>

Public Member Functions

 PCBEXPR_BUILTIN_FUNCTIONS ()
 
LIBEVAL::FUNC_CALL_REF Get (const wxString &name)
 
bool IsGeometryDependent (const wxString &name) const
 
const wxArrayString GetSignatures () const
 
void RegisterFunc (const wxString &funcSignature, LIBEVAL::FUNC_CALL_REF funcPtr, bool aIsGeometryDependent=false)
 
void RegisterAllFunctions ()
 

Static Public Member Functions

static PCBEXPR_BUILTIN_FUNCTIONSInstance ()
 

Private Attributes

std::map< wxString, LIBEVAL::FUNC_CALL_REFm_funcs
 
std::set< wxString > m_geometryDependentFuncs
 
wxArrayString m_funcSigs
 

Detailed Description

Definition at line 183 of file pcbexpr_evaluator.h.

Constructor & Destructor Documentation

◆ PCBEXPR_BUILTIN_FUNCTIONS()

PCBEXPR_BUILTIN_FUNCTIONS::PCBEXPR_BUILTIN_FUNCTIONS ( )

Definition at line 1498 of file pcbexpr_functions.cpp.

References RegisterAllFunctions().

Referenced by Instance().

Member Function Documentation

◆ Get()

LIBEVAL::FUNC_CALL_REF PCBEXPR_BUILTIN_FUNCTIONS::Get ( const wxString & name)
inline

Definition at line 194 of file pcbexpr_evaluator.h.

References m_funcs, and name.

Referenced by PCBEXPR_UCODE::CreateFuncCall().

◆ GetSignatures()

const wxArrayString PCBEXPR_BUILTIN_FUNCTIONS::GetSignatures ( ) const
inline

◆ Instance()

static PCBEXPR_BUILTIN_FUNCTIONS & PCBEXPR_BUILTIN_FUNCTIONS::Instance ( )
inlinestatic

◆ IsGeometryDependent()

bool PCBEXPR_BUILTIN_FUNCTIONS::IsGeometryDependent ( const wxString & name) const
inline

Definition at line 199 of file pcbexpr_evaluator.h.

References m_geometryDependentFuncs, and name.

Referenced by PCBEXPR_UCODE::CreateFuncCall().

◆ RegisterAllFunctions()

◆ RegisterFunc()

void PCBEXPR_BUILTIN_FUNCTIONS::RegisterFunc ( const wxString & funcSignature,
LIBEVAL::FUNC_CALL_REF funcPtr,
bool aIsGeometryDependent = false )
inline

Definition at line 209 of file pcbexpr_evaluator.h.

References m_funcs, m_funcSigs, and m_geometryDependentFuncs.

Referenced by RegisterAllFunctions().

Member Data Documentation

◆ m_funcs

std::map<wxString, LIBEVAL::FUNC_CALL_REF> PCBEXPR_BUILTIN_FUNCTIONS::m_funcs
private

Definition at line 224 of file pcbexpr_evaluator.h.

Referenced by Get(), RegisterAllFunctions(), and RegisterFunc().

◆ m_funcSigs

wxArrayString PCBEXPR_BUILTIN_FUNCTIONS::m_funcSigs
private

Definition at line 227 of file pcbexpr_evaluator.h.

Referenced by GetSignatures(), and RegisterFunc().

◆ m_geometryDependentFuncs

std::set<wxString> PCBEXPR_BUILTIN_FUNCTIONS::m_geometryDependentFuncs
private

Definition at line 225 of file pcbexpr_evaluator.h.

Referenced by IsGeometryDependent(), and RegisterFunc().


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