Definition at line 38 of file BaseSelectionRule.h.
Public Types | |
typedef std::unordered_map< std::string, std::string > | AttributesMap_t |
enum | EMatchType { kName , kPattern , kFile , kNoMatch } |
enum | ESelect { kYes , kNo , kDontCare } |
Public Member Functions | |
BaseSelectionRule (ESelect sel) | |
BaseSelectionRule (long index, cling::Interpreter &interp, const char *selFileName="", long lineno=-1) | |
BaseSelectionRule (long index, ESelect sel, const std::string &attributeName, const std::string &attributeValue, cling::Interpreter &interp, const char *selFileName="", long lineno=-1) | |
virtual | ~BaseSelectionRule ()=default |
virtual void | DebugPrint () const |
void | FillCache () |
const std::string & | GetAttributeFileName () const |
const std::string & | GetAttributeFilePattern () const |
const std::string & | GetAttributeName () const |
const std::string & | GetAttributeNArgsToKeep () const |
const std::string & | GetAttributePattern () const |
const std::string & | GetAttributeProtoName () const |
const std::string & | GetAttributeProtoPattern () const |
const AttributesMap_t & | GetAttributes () const |
bool | GetAttributeValue (const std::string &attributeName, std::string &returnValue) const |
const clang::CXXRecordDecl * | GetCXXRecordDecl () const |
long | GetIndex () const |
long | GetLineNumber () const |
bool | GetMatchFound () const |
const clang::Type * | GetRequestedType () const |
ESelect | GetSelected () const |
const char * | GetSelFileName () const |
bool | HasAttributeFileName () const |
bool | HasAttributeFilePattern () const |
bool | HasAttributeFromTypedef () const |
bool | HasAttributeName () const |
bool | HasAttributePattern () const |
bool | HasAttributeProtoName () const |
bool | HasAttributeProtoPattern () const |
bool | HasAttributeWithName (const std::string &attributeName) const |
bool | HasInterpreter () const |
bool | IsFromTypedef () const |
EMatchType | Match (const clang::NamedDecl *decl, const std::string &name, const std::string &prototype, bool isLinkdef) const |
virtual void | Print (std::ostream &out) const =0 |
void | PrintAttributes (int level) const |
void | PrintAttributes (std::ostream &out, int level) const |
void | SetAttributeValue (const std::string &attributeName, const std::string &attributeValue) |
void | SetCXXRecordDecl (const clang::CXXRecordDecl *decl, const clang::Type *typeptr) |
void | SetIndex (long index) |
void | SetInterpreter (cling::Interpreter &interp) |
void | SetMatchFound (bool match) |
void | SetSelected (ESelect sel) |
Protected Member Functions | |
bool | CheckPattern (const std::string &test, const std::string &pattern, const std::list< std::string > &patterns_list, bool isLinkdef) const |
void | ProcessPattern (const std::string &pattern, std::list< std::string > &out) const |
Private Attributes | |
AttributesMap_t | fAttributes |
const clang::CXXRecordDecl * | fCXXRecordDecl |
std::string | fFileName = "" |
std::string | fFilePattern = "" |
std::list< std::string > | fFileSubPatterns |
bool | fHasFileNameAttribute = false |
bool | fHasFilePatternAttribute = false |
bool | fHasFromTypedefAttribute = false |
bool | fHasNameAttribute = false |
bool | fHasPatternAttribute = false |
bool | fHasProtoNameAttribute = false |
bool | fHasProtoPatternAttribute = false |
long | fIndex |
cling::Interpreter * | fInterp |
bool | fIsFromTypedef = false |
ESelect | fIsSelected |
long | fLineNumber =-1 |
bool | fMatchFound |
std::string | fName = "" |
std::string | fNArgsToKeep = "" |
std::string | fPattern = "" |
std::string | fProtoName = "" |
std::string | fProtoPattern = "" |
const clang::Type * | fRequestedType |
std::string | fSelFileName ="" |
std::list< std::string > | fSubPatterns |
typedef std::unordered_map<std::string, std::string> BaseSelectionRule::AttributesMap_t |
Definition at line 41 of file BaseSelectionRule.h.
Enumerator | |
---|---|
kName | |
kPattern | |
kFile | |
kNoMatch |
Definition at line 48 of file BaseSelectionRule.h.
Enumerator | |
---|---|
kYes | |
kNo | |
kDontCare |
Definition at line 43 of file BaseSelectionRule.h.
|
inline |
Definition at line 87 of file BaseSelectionRule.h.
|
inline |
Definition at line 89 of file BaseSelectionRule.h.
BaseSelectionRule::BaseSelectionRule | ( | long | index, |
BaseSelectionRule::ESelect | sel, | ||
const std::string & | attributeName, | ||
const std::string & | attributeValue, | ||
cling::Interpreter & | interp, | ||
const char * | selFileName = "" , |
||
long | lineno = -1 |
||
) |
Definition at line 92 of file BaseSelectionRule.cxx.
|
virtualdefault |
|
inlineprotected |
Definition at line 444 of file BaseSelectionRule.cxx.
|
virtual |
Definition at line 155 of file BaseSelectionRule.cxx.
void BaseSelectionRule::FillCache | ( | ) |
Definition at line 536 of file BaseSelectionRule.cxx.
|
inline |
Definition at line 122 of file BaseSelectionRule.h.
|
inline |
Definition at line 125 of file BaseSelectionRule.h.
|
inline |
Definition at line 110 of file BaseSelectionRule.h.
|
inline |
Definition at line 131 of file BaseSelectionRule.h.
|
inline |
Definition at line 116 of file BaseSelectionRule.h.
|
inline |
Definition at line 113 of file BaseSelectionRule.h.
|
inline |
Definition at line 119 of file BaseSelectionRule.h.
const BaseSelectionRule::AttributesMap_t & BaseSelectionRule::GetAttributes | ( | ) | const |
Definition at line 150 of file BaseSelectionRule.cxx.
bool BaseSelectionRule::GetAttributeValue | ( | const std::string & | attributeName, |
std::string & | returnValue | ||
) | const |
Definition at line 116 of file BaseSelectionRule.cxx.
|
inline |
Definition at line 151 of file BaseSelectionRule.h.
|
inline |
Definition at line 98 of file BaseSelectionRule.h.
|
inline |
Definition at line 101 of file BaseSelectionRule.h.
bool BaseSelectionRule::GetMatchFound | ( | ) | const |
Definition at line 520 of file BaseSelectionRule.cxx.
const clang::Type * BaseSelectionRule::GetRequestedType | ( | ) | const |
Definition at line 525 of file BaseSelectionRule.cxx.
BaseSelectionRule::ESelect BaseSelectionRule::GetSelected | ( | ) | const |
Definition at line 103 of file BaseSelectionRule.cxx.
|
inline |
Definition at line 102 of file BaseSelectionRule.h.
|
inline |
Definition at line 123 of file BaseSelectionRule.h.
|
inline |
Definition at line 126 of file BaseSelectionRule.h.
|
inline |
Definition at line 129 of file BaseSelectionRule.h.
|
inline |
Definition at line 111 of file BaseSelectionRule.h.
|
inline |
Definition at line 117 of file BaseSelectionRule.h.
|
inline |
Definition at line 114 of file BaseSelectionRule.h.
|
inline |
Definition at line 120 of file BaseSelectionRule.h.
bool BaseSelectionRule::HasAttributeWithName | ( | const std::string & | attributeName | ) | const |
Definition at line 108 of file BaseSelectionRule.cxx.
|
inline |
Definition at line 138 of file BaseSelectionRule.h.
|
inline |
Definition at line 128 of file BaseSelectionRule.h.
BaseSelectionRule::EMatchType BaseSelectionRule::Match | ( | const clang::NamedDecl * | decl, |
const std::string & | name, | ||
const std::string & | prototype, | ||
bool | isLinkdef | ||
) | const |
Definition at line 185 of file BaseSelectionRule.cxx.
|
pure virtual |
Implemented in ClassSelectionRule, and VariableSelectionRule.
void BaseSelectionRule::PrintAttributes | ( | int | level | ) | const |
Definition at line 178 of file BaseSelectionRule.cxx.
void BaseSelectionRule::PrintAttributes | ( | std::ostream & | out, |
int | level | ||
) | const |
Definition at line 160 of file BaseSelectionRule.cxx.
|
inlineprotected |
Definition at line 372 of file BaseSelectionRule.cxx.
void BaseSelectionRule::SetAttributeValue | ( | const std::string & | attributeName, |
const std::string & | attributeValue | ||
) |
Definition at line 125 of file BaseSelectionRule.cxx.
void BaseSelectionRule::SetCXXRecordDecl | ( | const clang::CXXRecordDecl * | decl, |
const clang::Type * | typeptr | ||
) |
Definition at line 530 of file BaseSelectionRule.cxx.
|
inline |
Definition at line 99 of file BaseSelectionRule.h.
|
inline |
Definition at line 139 of file BaseSelectionRule.h.
void BaseSelectionRule::SetMatchFound | ( | bool | match | ) |
Definition at line 515 of file BaseSelectionRule.cxx.
void BaseSelectionRule::SetSelected | ( | BaseSelectionRule::ESelect | sel | ) |
Definition at line 98 of file BaseSelectionRule.cxx.
|
private |
Definition at line 59 of file BaseSelectionRule.h.
|
private |
Definition at line 64 of file BaseSelectionRule.h.
|
private |
Definition at line 73 of file BaseSelectionRule.h.
|
private |
Definition at line 74 of file BaseSelectionRule.h.
|
private |
Definition at line 62 of file BaseSelectionRule.h.
|
private |
Definition at line 80 of file BaseSelectionRule.h.
|
private |
Definition at line 81 of file BaseSelectionRule.h.
|
private |
Definition at line 82 of file BaseSelectionRule.h.
|
private |
Definition at line 76 of file BaseSelectionRule.h.
|
private |
Definition at line 78 of file BaseSelectionRule.h.
|
private |
Definition at line 77 of file BaseSelectionRule.h.
|
private |
Definition at line 79 of file BaseSelectionRule.h.
|
private |
Definition at line 56 of file BaseSelectionRule.h.
|
private |
Definition at line 66 of file BaseSelectionRule.h.
|
private |
Definition at line 83 of file BaseSelectionRule.h.
|
private |
Definition at line 60 of file BaseSelectionRule.h.
|
private |
Definition at line 57 of file BaseSelectionRule.h.
|
private |
Definition at line 63 of file BaseSelectionRule.h.
|
private |
Definition at line 69 of file BaseSelectionRule.h.
|
private |
Definition at line 75 of file BaseSelectionRule.h.
|
private |
Definition at line 70 of file BaseSelectionRule.h.
|
private |
Definition at line 71 of file BaseSelectionRule.h.
|
private |
Definition at line 72 of file BaseSelectionRule.h.
|
private |
Definition at line 65 of file BaseSelectionRule.h.
|
private |
Definition at line 58 of file BaseSelectionRule.h.
|
private |
Definition at line 61 of file BaseSelectionRule.h.