KiCad PCB EDA Suite
|
#include <eda_pattern_match.h>
Public Member Functions | |
EDA_COMBINED_MATCHER (const wxString &aPattern, COMBINED_MATCHER_CONTEXT aContext) | |
bool | Find (const wxString &aTerm, int &aMatchersTriggered, int &aPosition) |
const wxString & | GetPattern () const |
Private Member Functions | |
void | AddMatcher (const wxString &aPattern, std::unique_ptr< EDA_PATTERN_MATCH > aMatcher) |
Private Attributes | |
std::vector< std::unique_ptr< EDA_PATTERN_MATCH > > | m_matchers |
wxString | m_pattern |
Definition at line 185 of file eda_pattern_match.h.
EDA_COMBINED_MATCHER::EDA_COMBINED_MATCHER | ( | const wxString & | aPattern, |
COMBINED_MATCHER_CONTEXT | aContext | ||
) |
Definition at line 369 of file eda_pattern_match.cpp.
References AddMatcher(), CTX_LIBITEM, CTX_NETCLASS, and CTX_SIGNAL.
|
private |
Definition at line 427 of file eda_pattern_match.cpp.
References m_matchers.
Referenced by EDA_COMBINED_MATCHER().
bool EDA_COMBINED_MATCHER::Find | ( | const wxString & | aTerm, |
int & | aMatchersTriggered, | ||
int & | aPosition | ||
) |
Definition at line 399 of file eda_pattern_match.cpp.
References EDA_PATTERN_NOT_FOUND, m_matchers, and EDA_PATTERN_MATCH::FIND_RESULT::start.
Referenced by DIALOG_ASSIGN_NETCLASS::onPatternText(), PANEL_SETUP_NETCLASSES::OnUpdateUI(), SIMULATOR_FRAME::rebuildSignalsGrid(), FOOTPRINT_VIEWER_FRAME::ReCreateFootprintList(), SYMBOL_VIEWER_FRAME::ReCreateLibList(), FOOTPRINT_VIEWER_FRAME::ReCreateLibraryList(), SYMBOL_VIEWER_FRAME::ReCreateSymbolList(), LIB_TREE_NODE_LIB_ID::UpdateScore(), and LIB_TREE_NODE_LIB::UpdateScore().
wxString const & EDA_COMBINED_MATCHER::GetPattern | ( | ) | const |
Definition at line 421 of file eda_pattern_match.cpp.
References m_pattern.
Referenced by LIB_TREE_NODE_LIB_ID::UpdateScore(), and LIB_TREE_NODE_LIB::UpdateScore().
|
private |
Definition at line 208 of file eda_pattern_match.h.
Referenced by AddMatcher(), and Find().
|
private |
Definition at line 209 of file eda_pattern_match.h.
Referenced by GetPattern().