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)
 
const wxArrayString GetSignatures () const
 
void RegisterFunc (const wxString &funcSignature, LIBEVAL::FUNC_CALL_REF funcPtr)
 
void RegisterAllFunctions ()
 

Static Public Member Functions

static PCBEXPR_BUILTIN_FUNCTIONSInstance ()
 

Private Attributes

std::map< wxString, LIBEVAL::FUNC_CALL_REFm_funcs
 
wxArrayString m_funcSigs
 

Detailed Description

Definition at line 170 of file pcbexpr_evaluator.h.

Constructor & Destructor Documentation

◆ PCBEXPR_BUILTIN_FUNCTIONS()

PCBEXPR_BUILTIN_FUNCTIONS::PCBEXPR_BUILTIN_FUNCTIONS ( )

Definition at line 1252 of file pcbexpr_functions.cpp.

References RegisterAllFunctions().

Member Function Documentation

◆ Get()

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

Definition at line 181 of file pcbexpr_evaluator.h.

References m_funcs, and name.

Referenced by PCBEXPR_UCODE::CreateFuncCall().

◆ GetSignatures()

const wxArrayString PCBEXPR_BUILTIN_FUNCTIONS::GetSignatures ( ) const
inline

Definition at line 186 of file pcbexpr_evaluator.h.

References m_funcSigs.

Referenced by PANEL_SETUP_RULES::onScintillaCharAdded().

◆ Instance()

static PCBEXPR_BUILTIN_FUNCTIONS & PCBEXPR_BUILTIN_FUNCTIONS::Instance ( )
inlinestatic

◆ RegisterAllFunctions()

◆ RegisterFunc()

void PCBEXPR_BUILTIN_FUNCTIONS::RegisterFunc ( const wxString &  funcSignature,
LIBEVAL::FUNC_CALL_REF  funcPtr 
)
inline

Definition at line 191 of file pcbexpr_evaluator.h.

References m_funcs, and m_funcSigs.

Referenced by RegisterAllFunctions().

Member Data Documentation

◆ m_funcs

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

Definition at line 201 of file pcbexpr_evaluator.h.

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

◆ m_funcSigs

wxArrayString PCBEXPR_BUILTIN_FUNCTIONS::m_funcSigs
private

Definition at line 203 of file pcbexpr_evaluator.h.

Referenced by GetSignatures(), and RegisterFunc().


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