The class representing the collection of selection rules.
Definition at line 92 of file SelectionRules.h.
Public Types | |
enum | ESelectionFileTypes { kSelectionXMLFile , kLinkdefFile , kNumSelectionFileTypes } |
Type of selection file. More... | |
Public Member Functions | |
SelectionRules (cling::Interpreter &interp, ROOT::TMetaUtils::TNormalizedCtxt &normCtxt, const std::vector< std::pair< std::string, std::string > > &namesForExclusion) | |
void | AddClassSelectionRule (const ClassSelectionRule &classSel) |
void | AddEnumSelectionRule (const EnumSelectionRule &enumSel) |
void | AddFunctionSelectionRule (const FunctionSelectionRule &funcSel) |
void | AddVariableSelectionRule (const VariableSelectionRule &varSel) |
bool | AreAllSelectionRulesUsed () const |
int | CheckDuplicates () |
void | ClearSelectionRules () |
void | FillCache () |
const std::list< ClassSelectionRule > & | GetClassSelectionRules () const |
bool | GetDeclName (const clang::Decl *D, std::string &name, std::string &qual_name) const |
void | GetDeclQualName (const clang::Decl *D, std::string &qual_name) const |
const std::list< EnumSelectionRule > & | GetEnumSelectionRules () const |
bool | GetFunctionPrototype (const clang::FunctionDecl *F, std::string &prototype) const |
const std::list< FunctionSelectionRule > & | GetFunctionSelectionRules () const |
bool | GetHasFileNameRule () const |
bool | GetParentName (const clang::Decl *D, std::string &parent_name, std::string &parent_qual_name) const |
const std::list< VariableSelectionRule > & | GetVariableSelectionRules () const |
bool | HasClassSelectionRules () const |
bool | HasEnumSelectionRules () const |
bool | HasFunctionSelectionRules () const |
bool | HasVariableSelectionRules () const |
const ClassSelectionRule * | IsClassSelected (const clang::Decl *D, const std::string &qual_name, bool includeTypedefRule) const |
const BaseSelectionRule * | IsDeclSelected (const clang::Decl *D) const |
const BaseSelectionRule * | IsDeclSelected (const clang::EnumDecl *D) const |
const BaseSelectionRule * | IsDeclSelected (const clang::FieldDecl *D) const |
const BaseSelectionRule * | IsDeclSelected (const clang::FunctionDecl *D) const |
const ClassSelectionRule * | IsDeclSelected (const clang::NamespaceDecl *D) const |
const ClassSelectionRule * | IsDeclSelected (const clang::RecordDecl *D, bool includeTypedefRule) const |
const ClassSelectionRule * | IsDeclSelected (const clang::TypedefNameDecl *D) const |
const BaseSelectionRule * | IsDeclSelected (const clang::VarDecl *D) const |
const BaseSelectionRule * | IsEnumSelected (const clang::EnumDecl *D, const std::string &qual_name) const |
const BaseSelectionRule * | IsFunSelected (const clang::FunctionDecl *D, const std::string &qual_name) const |
const BaseSelectionRule * | IsLinkdefEnumSelected (const clang::EnumDecl *D, const std::string &qual_name) const |
bool | IsLinkdefFile () const |
const BaseSelectionRule * | IsLinkdefFunSelected (const clang::FunctionDecl *D, const std::string &qual_name) const |
const BaseSelectionRule * | IsLinkdefMethodSelected (const clang::Decl *D, const std::string &qual_name) const |
const BaseSelectionRule * | IsLinkdefVarSelected (const clang::VarDecl *D, const std::string &qual_name) const |
const BaseSelectionRule * | IsMemberSelected (const clang::Decl *D, const std::string &str_name) const |
const ClassSelectionRule * | IsNamespaceSelected (const clang::Decl *D, const std::string &qual_name) const |
bool | IsParentClass (const clang::Decl *D) const |
bool | IsParentClass (const clang::Decl *D, std::string &parent_name, std::string &parent_qual_name) const |
bool | IsSelectionXMLFile () const |
const BaseSelectionRule * | IsVarSelected (const clang::VarDecl *D, const std::string &qual_name) const |
void | Optimize () |
void | PrintSelectionRules () const |
bool | SearchNames (cling::Interpreter &interp) |
void | SetHasFileNameRule (bool file_rule) |
void | SetSelectionFileType (ESelectionFileTypes fileType) |
unsigned int | Size () const |
Private Attributes | |
std::list< ClassSelectionRule > | fClassSelectionRules |
List of the class selection rules. | |
std::list< EnumSelectionRule > | fEnumSelectionRules |
List of the enums selection rules. | |
std::list< FunctionSelectionRule > | fFunctionSelectionRules |
List of the global functions selection rules. | |
bool | fHasFileNameRule |
if we have a file name rule, this should be set to true | |
cling::Interpreter & | fInterp |
ROOT::TMetaUtils::TNormalizedCtxt & | fNormCtxt |
long int | fRulesCounter |
ESelectionFileTypes | fSelectionFileType |
std::list< VariableSelectionRule > | fVariableSelectionRules |
List of the global variables selection rules. | |
Type of selection file.
Enumerator | |
---|---|
kSelectionXMLFile | |
kLinkdefFile | |
kNumSelectionFileTypes |
Definition at line 96 of file SelectionRules.h.
|
inline |
Definition at line 102 of file SelectionRules.h.
void SelectionRules::AddClassSelectionRule | ( | const ClassSelectionRule & | classSel | ) |
Definition at line 39 of file SelectionRules.cxx.
void SelectionRules::AddEnumSelectionRule | ( | const EnumSelectionRule & | enumSel | ) |
Definition at line 69 of file SelectionRules.cxx.
void SelectionRules::AddFunctionSelectionRule | ( | const FunctionSelectionRule & | funcSel | ) |
Definition at line 49 of file SelectionRules.cxx.
void SelectionRules::AddVariableSelectionRule | ( | const VariableSelectionRule & | varSel | ) |
Definition at line 59 of file SelectionRules.cxx.
bool SelectionRules::AreAllSelectionRulesUsed | ( | ) | const |
Definition at line 1398 of file SelectionRules.cxx.
int SelectionRules::CheckDuplicates | ( | ) |
Definition at line 206 of file SelectionRules.cxx.
void SelectionRules::ClearSelectionRules | ( | ) |
Definition at line 165 of file SelectionRules.cxx.
void SelectionRules::FillCache | ( | ) |
Definition at line 1526 of file SelectionRules.cxx.
|
inline |
Definition at line 121 of file SelectionRules.h.
bool SelectionRules::GetDeclName | ( | const clang::Decl * | D, |
std::string & | name, | ||
std::string & | qual_name | ||
) | const |
Definition at line 425 of file SelectionRules.cxx.
void SelectionRules::GetDeclQualName | ( | const clang::Decl * | D, |
std::string & | qual_name | ||
) | const |
Definition at line 441 of file SelectionRules.cxx.
|
inline |
Definition at line 144 of file SelectionRules.h.
bool SelectionRules::GetFunctionPrototype | ( | const clang::FunctionDecl * | F, |
std::string & | prototype | ||
) | const |
Definition at line 449 of file SelectionRules.cxx.
|
inline |
Definition at line 129 of file SelectionRules.h.
|
inline |
Definition at line 153 of file SelectionRules.h.
bool SelectionRules::GetParentName | ( | const clang::Decl * | D, |
std::string & | parent_name, | ||
std::string & | parent_qual_name | ||
) | const |
Definition at line 520 of file SelectionRules.cxx.
|
inline |
Definition at line 138 of file SelectionRules.h.
|
inline |
Definition at line 120 of file SelectionRules.h.
|
inline |
Definition at line 143 of file SelectionRules.h.
|
inline |
Definition at line 126 of file SelectionRules.h.
|
inline |
Definition at line 135 of file SelectionRules.h.
const ClassSelectionRule * SelectionRules::IsClassSelected | ( | const clang::Decl * | D, |
const std::string & | qual_name, | ||
bool | includeTypedefRule | ||
) | const |
Definition at line 666 of file SelectionRules.cxx.
const BaseSelectionRule * SelectionRules::IsDeclSelected | ( | const clang::Decl * | D | ) | const |
Definition at line 370 of file SelectionRules.cxx.
const BaseSelectionRule * SelectionRules::IsDeclSelected | ( | const clang::EnumDecl * | D | ) | const |
Definition at line 294 of file SelectionRules.cxx.
const BaseSelectionRule * SelectionRules::IsDeclSelected | ( | const clang::FieldDecl * | D | ) | const |
Definition at line 346 of file SelectionRules.cxx.
const BaseSelectionRule * SelectionRules::IsDeclSelected | ( | const clang::FunctionDecl * | D | ) | const |
Definition at line 359 of file SelectionRules.cxx.
const ClassSelectionRule * SelectionRules::IsDeclSelected | ( | const clang::NamespaceDecl * | D | ) | const |
Definition at line 287 of file SelectionRules.cxx.
const ClassSelectionRule * SelectionRules::IsDeclSelected | ( | const clang::RecordDecl * | D, |
bool | includeTypedefRule | ||
) | const |
Definition at line 273 of file SelectionRules.cxx.
const ClassSelectionRule * SelectionRules::IsDeclSelected | ( | const clang::TypedefNameDecl * | D | ) | const |
Definition at line 280 of file SelectionRules.cxx.
const BaseSelectionRule * SelectionRules::IsDeclSelected | ( | const clang::VarDecl * | D | ) | const |
Definition at line 334 of file SelectionRules.cxx.
const BaseSelectionRule * SelectionRules::IsEnumSelected | ( | const clang::EnumDecl * | D, |
const std::string & | qual_name | ||
) | const |
Definition at line 831 of file SelectionRules.cxx.
const BaseSelectionRule * SelectionRules::IsFunSelected | ( | const clang::FunctionDecl * | D, |
const std::string & | qual_name | ||
) | const |
Definition at line 802 of file SelectionRules.cxx.
const BaseSelectionRule * SelectionRules::IsLinkdefEnumSelected | ( | const clang::EnumDecl * | D, |
const std::string & | qual_name | ||
) | const |
Definition at line 970 of file SelectionRules.cxx.
|
inline |
Definition at line 216 of file SelectionRules.h.
const BaseSelectionRule * SelectionRules::IsLinkdefFunSelected | ( | const clang::FunctionDecl * | D, |
const std::string & | qual_name | ||
) | const |
Definition at line 910 of file SelectionRules.cxx.
const BaseSelectionRule * SelectionRules::IsLinkdefMethodSelected | ( | const clang::Decl * | D, |
const std::string & | qual_name | ||
) | const |
Definition at line 1043 of file SelectionRules.cxx.
const BaseSelectionRule * SelectionRules::IsLinkdefVarSelected | ( | const clang::VarDecl * | D, |
const std::string & | qual_name | ||
) | const |
Definition at line 852 of file SelectionRules.cxx.
const BaseSelectionRule * SelectionRules::IsMemberSelected | ( | const clang::Decl * | D, |
const std::string & | str_name | ||
) | const |
Definition at line 1259 of file SelectionRules.cxx.
const ClassSelectionRule * SelectionRules::IsNamespaceSelected | ( | const clang::Decl * | D, |
const std::string & | qual_name | ||
) | const |
Definition at line 568 of file SelectionRules.cxx.
bool SelectionRules::IsParentClass | ( | const clang::Decl * | D | ) | const |
Definition at line 496 of file SelectionRules.cxx.
bool SelectionRules::IsParentClass | ( | const clang::Decl * | D, |
std::string & | parent_name, | ||
std::string & | parent_qual_name | ||
) | const |
Definition at line 508 of file SelectionRules.cxx.
|
inline |
Definition at line 213 of file SelectionRules.h.
const BaseSelectionRule * SelectionRules::IsVarSelected | ( | const clang::VarDecl * | D, |
const std::string & | qual_name | ||
) | const |
Definition at line 778 of file SelectionRules.cxx.
void SelectionRules::Optimize | ( | ) |
Definition at line 252 of file SelectionRules.cxx.
void SelectionRules::PrintSelectionRules | ( | ) | const |
Definition at line 79 of file SelectionRules.cxx.
bool SelectionRules::SearchNames | ( | cling::Interpreter & | interp | ) |
Definition at line 1502 of file SelectionRules.cxx.
|
inline |
Definition at line 152 of file SelectionRules.h.
|
inline |
Definition at line 219 of file SelectionRules.h.
|
inline |
Definition at line 186 of file SelectionRules.h.
|
private |
List of the class selection rules.
Definition at line 233 of file SelectionRules.h.
|
private |
List of the enums selection rules.
Definition at line 236 of file SelectionRules.h.
|
private |
List of the global functions selection rules.
Definition at line 234 of file SelectionRules.h.
|
private |
if we have a file name rule, this should be set to true
Definition at line 240 of file SelectionRules.h.
|
private |
Definition at line 244 of file SelectionRules.h.
|
private |
Definition at line 243 of file SelectionRules.h.
|
private |
Definition at line 241 of file SelectionRules.h.
|
private |
Definition at line 238 of file SelectionRules.h.
|
private |
List of the global variables selection rules.
Definition at line 235 of file SelectionRules.h.