Logo ROOT   6.18/05
Reference Guide
List of all members | Public Types | Public Member Functions | Private Attributes | List of all members
SelectionRules Class Reference

The class representing the collection of selection rules.

Definition at line 88 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
 
bool GetDeep () 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 ClassSelectionRuleIsClassSelected (const clang::Decl *D, const std::string &qual_name) const
 
const BaseSelectionRuleIsDeclSelected (const clang::Decl *D) const
 
const BaseSelectionRuleIsDeclSelected (const clang::EnumDecl *D) const
 
const BaseSelectionRuleIsDeclSelected (const clang::FieldDecl *D) const
 
const BaseSelectionRuleIsDeclSelected (const clang::FunctionDecl *D) const
 
const ClassSelectionRuleIsDeclSelected (const clang::NamespaceDecl *D) const
 
const ClassSelectionRuleIsDeclSelected (const clang::RecordDecl *D) const
 
const ClassSelectionRuleIsDeclSelected (const clang::TypedefNameDecl *D) const
 
const BaseSelectionRuleIsDeclSelected (const clang::VarDecl *D) const
 
const BaseSelectionRuleIsEnumSelected (const clang::EnumDecl *D, const std::string &qual_name) const
 
const BaseSelectionRuleIsFunSelected (const clang::FunctionDecl *D, const std::string &qual_name) const
 
const BaseSelectionRuleIsLinkdefEnumSelected (const clang::EnumDecl *D, const std::string &qual_name) const
 
bool IsLinkdefFile () const
 
const BaseSelectionRuleIsLinkdefFunSelected (const clang::FunctionDecl *D, const std::string &qual_name) const
 
const BaseSelectionRuleIsLinkdefMethodSelected (const clang::Decl *D, const std::string &qual_name) const
 
const BaseSelectionRuleIsLinkdefVarSelected (const clang::VarDecl *D, const std::string &qual_name) const
 
const BaseSelectionRuleIsMemberSelected (const clang::Decl *D, const std::string &str_name) const
 
const ClassSelectionRuleIsNamespaceSelected (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 BaseSelectionRuleIsVarSelected (const clang::VarDecl *D, const std::string &qual_name) const
 
void Optimize ()
 
void PrintSelectionRules () const
 
bool SearchNames (cling::Interpreter &interp)
 
void SetDeep (bool deep)
 
void SetHasFileNameRule (bool file_rule)
 
void SetSelectionFileType (ESelectionFileTypes fileType)
 
unsigned int Size () const
 

Private Attributes

std::list< ClassSelectionRulefClassSelectionRules
 List of the class selection rules. More...
 
std::list< EnumSelectionRulefEnumSelectionRules
 List of the enums selection rules. More...
 
std::list< FunctionSelectionRulefFunctionSelectionRules
 List of the global functions selection rules. More...
 
bool fHasFileNameRule
 if we have a file name rule, this should be set to true More...
 
cling::Interpreter & fInterp
 
bool fIsDeep
 if –deep option passed from command line, this should be set to true More...
 
ROOT::TMetaUtils::TNormalizedCtxt & fNormCtxt
 
long int fRulesCounter
 
ESelectionFileTypes fSelectionFileType
 
std::list< VariableSelectionRulefVariableSelectionRules
 List of the global variables selection rules. More...
 

#include </home/sftnight/build/workspace/root-makedoc-v618/rootspi/rdoc/src/v6-18-00-patches/core/dictgen/res/SelectionRules.h>

Member Enumeration Documentation

◆ ESelectionFileTypes

Type of selection file.

Enumerator
kSelectionXMLFile 
kLinkdefFile 
kNumSelectionFileTypes 

Definition at line 92 of file SelectionRules.h.

Constructor & Destructor Documentation

◆ SelectionRules()

SelectionRules::SelectionRules ( cling::Interpreter &  interp,
ROOT::TMetaUtils::TNormalizedCtxt &  normCtxt,
const std::vector< std::pair< std::string, std::string > > &  namesForExclusion 
)
inline

Definition at line 98 of file SelectionRules.h.

Member Function Documentation

◆ AddClassSelectionRule()

void SelectionRules::AddClassSelectionRule ( const ClassSelectionRule classSel)

Definition at line 39 of file SelectionRules.cxx.

◆ AddEnumSelectionRule()

void SelectionRules::AddEnumSelectionRule ( const EnumSelectionRule enumSel)

Definition at line 69 of file SelectionRules.cxx.

◆ AddFunctionSelectionRule()

void SelectionRules::AddFunctionSelectionRule ( const FunctionSelectionRule funcSel)

Definition at line 49 of file SelectionRules.cxx.

◆ AddVariableSelectionRule()

void SelectionRules::AddVariableSelectionRule ( const VariableSelectionRule varSel)

Definition at line 59 of file SelectionRules.cxx.

◆ AreAllSelectionRulesUsed()

bool SelectionRules::AreAllSelectionRulesUsed ( ) const

Definition at line 1436 of file SelectionRules.cxx.

◆ CheckDuplicates()

int SelectionRules::CheckDuplicates ( )

Definition at line 206 of file SelectionRules.cxx.

◆ ClearSelectionRules()

void SelectionRules::ClearSelectionRules ( )

Definition at line 165 of file SelectionRules.cxx.

◆ FillCache()

void SelectionRules::FillCache ( )

Definition at line 1569 of file SelectionRules.cxx.

◆ GetClassSelectionRules()

const std::list< ClassSelectionRule > & SelectionRules::GetClassSelectionRules ( ) const
inline

Definition at line 118 of file SelectionRules.h.

◆ GetDeclName()

bool SelectionRules::GetDeclName ( const clang::Decl *  D,
std::string &  name,
std::string &  qual_name 
) const

Definition at line 459 of file SelectionRules.cxx.

◆ GetDeclQualName()

void SelectionRules::GetDeclQualName ( const clang::Decl *  D,
std::string &  qual_name 
) const

Definition at line 478 of file SelectionRules.cxx.

◆ GetDeep()

bool SelectionRules::GetDeep ( ) const
inline

Definition at line 156 of file SelectionRules.h.

◆ GetEnumSelectionRules()

const std::list< EnumSelectionRule > & SelectionRules::GetEnumSelectionRules ( ) const
inline

Definition at line 141 of file SelectionRules.h.

◆ GetFunctionPrototype()

bool SelectionRules::GetFunctionPrototype ( const clang::FunctionDecl *  F,
std::string &  prototype 
) const

Definition at line 484 of file SelectionRules.cxx.

◆ GetFunctionSelectionRules()

const std::list< FunctionSelectionRule > & SelectionRules::GetFunctionSelectionRules ( ) const
inline

Definition at line 126 of file SelectionRules.h.

◆ GetHasFileNameRule()

bool SelectionRules::GetHasFileNameRule ( ) const
inline

Definition at line 150 of file SelectionRules.h.

◆ GetParentName()

bool SelectionRules::GetParentName ( const clang::Decl *  D,
std::string &  parent_name,
std::string &  parent_qual_name 
) const

Definition at line 552 of file SelectionRules.cxx.

◆ GetVariableSelectionRules()

const std::list< VariableSelectionRule > & SelectionRules::GetVariableSelectionRules ( ) const
inline

Definition at line 135 of file SelectionRules.h.

◆ HasClassSelectionRules()

bool SelectionRules::HasClassSelectionRules ( ) const
inline

Definition at line 117 of file SelectionRules.h.

◆ HasEnumSelectionRules()

bool SelectionRules::HasEnumSelectionRules ( ) const
inline

Definition at line 140 of file SelectionRules.h.

◆ HasFunctionSelectionRules()

bool SelectionRules::HasFunctionSelectionRules ( ) const
inline

Definition at line 123 of file SelectionRules.h.

◆ HasVariableSelectionRules()

bool SelectionRules::HasVariableSelectionRules ( ) const
inline

Definition at line 132 of file SelectionRules.h.

◆ IsClassSelected()

const ClassSelectionRule * SelectionRules::IsClassSelected ( const clang::Decl *  D,
const std::string &  qual_name 
) const

Definition at line 699 of file SelectionRules.cxx.

◆ IsDeclSelected() [1/8]

const BaseSelectionRule * SelectionRules::IsDeclSelected ( const clang::Decl *  D) const

Definition at line 404 of file SelectionRules.cxx.

◆ IsDeclSelected() [2/8]

const BaseSelectionRule * SelectionRules::IsDeclSelected ( const clang::EnumDecl *  D) const

Definition at line 328 of file SelectionRules.cxx.

◆ IsDeclSelected() [3/8]

const BaseSelectionRule * SelectionRules::IsDeclSelected ( const clang::FieldDecl *  D) const

Definition at line 380 of file SelectionRules.cxx.

◆ IsDeclSelected() [4/8]

const BaseSelectionRule * SelectionRules::IsDeclSelected ( const clang::FunctionDecl *  D) const

Definition at line 393 of file SelectionRules.cxx.

◆ IsDeclSelected() [5/8]

const ClassSelectionRule * SelectionRules::IsDeclSelected ( const clang::NamespaceDecl *  D) const

Definition at line 321 of file SelectionRules.cxx.

◆ IsDeclSelected() [6/8]

const ClassSelectionRule * SelectionRules::IsDeclSelected ( const clang::RecordDecl *  D) const

Definition at line 307 of file SelectionRules.cxx.

◆ IsDeclSelected() [7/8]

const ClassSelectionRule * SelectionRules::IsDeclSelected ( const clang::TypedefNameDecl *  D) const

Definition at line 314 of file SelectionRules.cxx.

◆ IsDeclSelected() [8/8]

const BaseSelectionRule * SelectionRules::IsDeclSelected ( const clang::VarDecl *  D) const

Definition at line 368 of file SelectionRules.cxx.

◆ IsEnumSelected()

const BaseSelectionRule * SelectionRules::IsEnumSelected ( const clang::EnumDecl *  D,
const std::string &  qual_name 
) const

Definition at line 863 of file SelectionRules.cxx.

◆ IsFunSelected()

const BaseSelectionRule * SelectionRules::IsFunSelected ( const clang::FunctionDecl *  D,
const std::string &  qual_name 
) const

Definition at line 834 of file SelectionRules.cxx.

◆ IsLinkdefEnumSelected()

const BaseSelectionRule * SelectionRules::IsLinkdefEnumSelected ( const clang::EnumDecl *  D,
const std::string &  qual_name 
) const

Definition at line 1002 of file SelectionRules.cxx.

◆ IsLinkdefFile()

bool SelectionRules::IsLinkdefFile ( ) const
inline

Definition at line 216 of file SelectionRules.h.

◆ IsLinkdefFunSelected()

const BaseSelectionRule * SelectionRules::IsLinkdefFunSelected ( const clang::FunctionDecl *  D,
const std::string &  qual_name 
) const

Definition at line 942 of file SelectionRules.cxx.

◆ IsLinkdefMethodSelected()

const BaseSelectionRule * SelectionRules::IsLinkdefMethodSelected ( const clang::Decl *  D,
const std::string &  qual_name 
) const

Definition at line 1075 of file SelectionRules.cxx.

◆ IsLinkdefVarSelected()

const BaseSelectionRule * SelectionRules::IsLinkdefVarSelected ( const clang::VarDecl *  D,
const std::string &  qual_name 
) const

Definition at line 884 of file SelectionRules.cxx.

◆ IsMemberSelected()

const BaseSelectionRule * SelectionRules::IsMemberSelected ( const clang::Decl *  D,
const std::string &  str_name 
) const

Definition at line 1295 of file SelectionRules.cxx.

◆ IsNamespaceSelected()

const ClassSelectionRule * SelectionRules::IsNamespaceSelected ( const clang::Decl *  D,
const std::string &  qual_name 
) const

Definition at line 600 of file SelectionRules.cxx.

◆ IsParentClass() [1/2]

bool SelectionRules::IsParentClass ( const clang::Decl *  D) const

Definition at line 530 of file SelectionRules.cxx.

◆ IsParentClass() [2/2]

bool SelectionRules::IsParentClass ( const clang::Decl *  D,
std::string &  parent_name,
std::string &  parent_qual_name 
) const

Definition at line 540 of file SelectionRules.cxx.

◆ IsSelectionXMLFile()

bool SelectionRules::IsSelectionXMLFile ( ) const
inline

Definition at line 213 of file SelectionRules.h.

◆ IsVarSelected()

const BaseSelectionRule * SelectionRules::IsVarSelected ( const clang::VarDecl *  D,
const std::string &  qual_name 
) const

Definition at line 810 of file SelectionRules.cxx.

◆ Optimize()

void SelectionRules::Optimize ( )

Definition at line 252 of file SelectionRules.cxx.

◆ PrintSelectionRules()

void SelectionRules::PrintSelectionRules ( ) const

Definition at line 79 of file SelectionRules.cxx.

◆ SearchNames()

bool SelectionRules::SearchNames ( cling::Interpreter &  interp)

Definition at line 1545 of file SelectionRules.cxx.

◆ SetDeep()

void SelectionRules::SetDeep ( bool  deep)

Definition at line 273 of file SelectionRules.cxx.

◆ SetHasFileNameRule()

void SelectionRules::SetHasFileNameRule ( bool  file_rule)
inline

Definition at line 149 of file SelectionRules.h.

◆ SetSelectionFileType()

void SelectionRules::SetSelectionFileType ( ESelectionFileTypes  fileType)
inline

Definition at line 219 of file SelectionRules.h.

◆ Size()

unsigned int SelectionRules::Size ( ) const
inline

Definition at line 186 of file SelectionRules.h.

Member Data Documentation

◆ fClassSelectionRules

std::list<ClassSelectionRule> SelectionRules::fClassSelectionRules
private

List of the class selection rules.

Definition at line 233 of file SelectionRules.h.

◆ fEnumSelectionRules

std::list<EnumSelectionRule> SelectionRules::fEnumSelectionRules
private

List of the enums selection rules.

Definition at line 236 of file SelectionRules.h.

◆ fFunctionSelectionRules

std::list<FunctionSelectionRule> SelectionRules::fFunctionSelectionRules
private

List of the global functions selection rules.

Definition at line 234 of file SelectionRules.h.

◆ fHasFileNameRule

bool SelectionRules::fHasFileNameRule
private

if we have a file name rule, this should be set to true

Definition at line 241 of file SelectionRules.h.

◆ fInterp

cling::Interpreter& SelectionRules::fInterp
private

Definition at line 245 of file SelectionRules.h.

◆ fIsDeep

bool SelectionRules::fIsDeep
private

if –deep option passed from command line, this should be set to true

Definition at line 240 of file SelectionRules.h.

◆ fNormCtxt

ROOT::TMetaUtils::TNormalizedCtxt& SelectionRules::fNormCtxt
private

Definition at line 244 of file SelectionRules.h.

◆ fRulesCounter

long int SelectionRules::fRulesCounter
private

Definition at line 242 of file SelectionRules.h.

◆ fSelectionFileType

ESelectionFileTypes SelectionRules::fSelectionFileType
private

Definition at line 238 of file SelectionRules.h.

◆ fVariableSelectionRules

std::list<VariableSelectionRule> SelectionRules::fVariableSelectionRules
private

List of the global variables selection rules.

Definition at line 235 of file SelectionRules.h.


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