KiCad PCB EDA Suite
|
#include <eda_pattern_match.h>
Public Member Functions | |
EDA_COMBINED_MATCHER (const wxString &aPattern, COMBINED_MATCHER_CONTEXT aContext) | |
EDA_COMBINED_MATCHER (EDA_COMBINED_MATCHER const &)=delete | |
EDA_COMBINED_MATCHER & | operator= (EDA_COMBINED_MATCHER const &)=delete |
bool | Find (const wxString &aTerm, int &aMatchersTriggered, int &aPosition) |
bool | Find (const wxString &aTerm) |
bool | StartsWith (const wxString &aTerm) |
const wxString & | GetPattern () const |
int | ScoreTerms (std::vector< SEARCH_TERM > &aWeightedTerms) |
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 209 of file eda_pattern_match.h.
EDA_COMBINED_MATCHER::EDA_COMBINED_MATCHER | ( | const wxString & | aPattern, |
COMBINED_MATCHER_CONTEXT | aContext | ||
) |
Definition at line 388 of file eda_pattern_match.cpp.
References AddMatcher(), CTX_LIBITEM, CTX_NET, CTX_NETCLASS, CTX_SEARCH, and CTX_SIGNAL.
|
delete |
|
private |
Definition at line 514 of file eda_pattern_match.cpp.
References m_matchers.
Referenced by EDA_COMBINED_MATCHER().
bool EDA_COMBINED_MATCHER::Find | ( | const wxString & | aTerm | ) |
Definition at line 452 of file eda_pattern_match.cpp.
References m_matchers.
bool EDA_COMBINED_MATCHER::Find | ( | const wxString & | aTerm, |
int & | aMatchersTriggered, | ||
int & | aPosition | ||
) |
Definition at line 430 of file eda_pattern_match.cpp.
References EDA_PATTERN_NOT_FOUND, m_matchers, and EDA_PATTERN_MATCH::FIND_RESULT::start.
Referenced by EDA_ITEM::Matches(), DIALOG_SIM_COMMAND::OnFilterText(), SIMULATOR_FRAME_UI::rebuildSignalsGrid(), SYMBOL_VIEWER_FRAME::ReCreateLibList(), FOOTPRINT_VIEWER_FRAME::ReCreateLibraryList(), and ScoreTerms().
wxString const & EDA_COMBINED_MATCHER::GetPattern | ( | ) | const |
Definition at line 508 of file eda_pattern_match.cpp.
References m_pattern.
Referenced by ScoreTerms().
|
delete |
int EDA_COMBINED_MATCHER::ScoreTerms | ( | std::vector< SEARCH_TERM > & | aWeightedTerms | ) |
Definition at line 476 of file eda_pattern_match.cpp.
References EDA_PATTERN_NOT_FOUND, Find(), and GetPattern().
Referenced by FOOTPRINT_VIEWER_FRAME::ReCreateFootprintList(), SYMBOL_VIEWER_FRAME::ReCreateSymbolList(), LIB_TREE_NODE_ITEM::UpdateScore(), and LIB_TREE_NODE_LIBRARY::UpdateScore().
bool EDA_COMBINED_MATCHER::StartsWith | ( | const wxString & | aTerm | ) |
Definition at line 464 of file eda_pattern_match.cpp.
References m_matchers.
Referenced by DIALOG_ASSIGN_NETCLASS::onPatternText(), and PANEL_SETUP_NETCLASSES::OnUpdateUI().
|
private |
Definition at line 250 of file eda_pattern_match.h.
Referenced by AddMatcher(), Find(), and StartsWith().
|
private |
Definition at line 251 of file eda_pattern_match.h.
Referenced by GetPattern().