ROOT  6.06/09
Reference Guide
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)
 
bool HasClassSelectionRules () const
 
const std::list< ClassSelectionRule > & GetClassSelectionRules () const
 
void AddFunctionSelectionRule (const FunctionSelectionRule &funcSel)
 
bool HasFunctionSelectionRules () const
 
const std::list< FunctionSelectionRule > & GetFunctionSelectionRules () const
 
void AddVariableSelectionRule (const VariableSelectionRule &varSel)
 
bool HasVariableSelectionRules () const
 
const std::list< VariableSelectionRule > & GetVariableSelectionRules () const
 
void AddEnumSelectionRule (const EnumSelectionRule &enumSel)
 
bool HasEnumSelectionRules () const
 
const std::list< EnumSelectionRule > & GetEnumSelectionRules () const
 
void PrintSelectionRules () const
 
void ClearSelectionRules ()
 
void SetHasFileNameRule (bool file_rule)
 
bool GetHasFileNameRule () const
 
int CheckDuplicates ()
 
void Optimize ()
 
void SetDeep (bool deep)
 
bool GetDeep () const
 
const ClassSelectionRuleIsDeclSelected (const clang::RecordDecl *D) const
 
const ClassSelectionRuleIsDeclSelected (const clang::TypedefNameDecl *D) const
 
const ClassSelectionRuleIsDeclSelected (const clang::NamespaceDecl *D) const
 
const BaseSelectionRuleIsDeclSelected (const clang::EnumDecl *D) const
 
const BaseSelectionRuleIsDeclSelected (const clang::VarDecl *D) const
 
const BaseSelectionRuleIsDeclSelected (const clang::FieldDecl *D) const
 
const BaseSelectionRuleIsDeclSelected (const clang::FunctionDecl *D) const
 
const BaseSelectionRuleIsDeclSelected (const clang::Decl *D) const
 
const ClassSelectionRuleIsClassSelected (const clang::Decl *D, const std::string &qual_name) const
 
const ClassSelectionRuleIsNamespaceSelected (const clang::Decl *D, const std::string &qual_name) const
 
const BaseSelectionRuleIsVarSelected (const clang::VarDecl *D, const std::string &qual_name) const
 
const BaseSelectionRuleIsFunSelected (const clang::FunctionDecl *D, const std::string &qual_name) const
 
const BaseSelectionRuleIsEnumSelected (const clang::EnumDecl *D, const std::string &qual_name) const
 
const BaseSelectionRuleIsLinkdefVarSelected (const clang::VarDecl *D, const std::string &qual_name) const
 
const BaseSelectionRuleIsLinkdefFunSelected (const clang::FunctionDecl *D, const std::string &qual_name) const
 
const BaseSelectionRuleIsLinkdefEnumSelected (const clang::EnumDecl *D, const std::string &qual_name) const
 
const BaseSelectionRuleIsMemberSelected (const clang::Decl *D, const std::string &str_name) const
 
const BaseSelectionRuleIsLinkdefMethodSelected (const clang::Decl *D, const std::string &qual_name) const
 
unsigned int Size () 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 GetParentName (const clang::Decl *D, std::string &parent_name, std::string &parent_qual_name) 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 GetFunctionPrototype (const clang::FunctionDecl *F, std::string &prototype) const
 
bool IsSelectionXMLFile () const
 
bool IsLinkdefFile () const
 
void SetSelectionFileType (ESelectionFileTypes fileType)
 
bool AreAllSelectionRulesUsed () const
 
bool SearchNames (cling::Interpreter &interp)
 
void FillCache ()
 

Private Attributes

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

#include </mnt/vdb/lsf/workspace/root-makedoc-v606/rootspi/rdoc/src/v6-06-00-patches/core/metautils/src/SelectionRules.h>

+ Collaboration diagram for SelectionRules:

Member Enumeration Documentation

Type of selection file.

Enumerator
kSelectionXMLFile 
kLinkdefFile 
kNumSelectionFileTypes 

Definition at line 92 of file SelectionRules.h.

Constructor & Destructor Documentation

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

void SelectionRules::AddClassSelectionRule ( const ClassSelectionRule classSel)

Definition at line 33 of file SelectionRules.cxx.

Referenced by XMLReader::Parse(), SelectionRules(), and SetDeep().

void SelectionRules::AddEnumSelectionRule ( const EnumSelectionRule enumSel)

Definition at line 63 of file SelectionRules.cxx.

Referenced by XMLReader::Parse().

void SelectionRules::AddFunctionSelectionRule ( const FunctionSelectionRule funcSel)

Definition at line 43 of file SelectionRules.cxx.

Referenced by XMLReader::Parse().

void SelectionRules::AddVariableSelectionRule ( const VariableSelectionRule varSel)

Definition at line 53 of file SelectionRules.cxx.

Referenced by XMLReader::Parse().

bool SelectionRules::AreAllSelectionRulesUsed ( ) const

Definition at line 1460 of file SelectionRules.cxx.

int SelectionRules::CheckDuplicates ( )

Definition at line 200 of file SelectionRules.cxx.

void SelectionRules::ClearSelectionRules ( )

Definition at line 159 of file SelectionRules.cxx.

Referenced by XMLReader::Parse().

void SelectionRules::FillCache ( )

Definition at line 1593 of file SelectionRules.cxx.

Referenced by RScanner::RScanner().

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

Definition at line 118 of file SelectionRules.h.

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

Definition at line 483 of file SelectionRules.cxx.

Referenced by GetParentName(), IsDeclSelected(), and IsParentClass().

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

Definition at line 502 of file SelectionRules.cxx.

Referenced by IsDeclSelected().

bool SelectionRules::GetDeep ( ) const
inline

Definition at line 156 of file SelectionRules.h.

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

Definition at line 141 of file SelectionRules.h.

bool SelectionRules::GetFunctionPrototype ( const clang::FunctionDecl *  F,
std::string &  prototype 
) const
const std::list<FunctionSelectionRule>& SelectionRules::GetFunctionSelectionRules ( ) const
inline

Definition at line 126 of file SelectionRules.h.

bool SelectionRules::GetHasFileNameRule ( ) const
inline

Definition at line 150 of file SelectionRules.h.

Referenced by AreAllSelectionRulesUsed(), and RScanner::Scan().

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

Definition at line 576 of file SelectionRules.cxx.

Referenced by IsLinkdefMethodSelected(), and IsMemberSelected().

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

Definition at line 135 of file SelectionRules.h.

bool SelectionRules::HasClassSelectionRules ( ) const
inline

Definition at line 117 of file SelectionRules.h.

bool SelectionRules::HasEnumSelectionRules ( ) const
inline

Definition at line 140 of file SelectionRules.h.

bool SelectionRules::HasFunctionSelectionRules ( ) const
inline

Definition at line 123 of file SelectionRules.h.

bool SelectionRules::HasVariableSelectionRules ( ) const
inline

Definition at line 132 of file SelectionRules.h.

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

Definition at line 723 of file SelectionRules.cxx.

Referenced by IsDeclSelected().

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

Definition at line 338 of file SelectionRules.cxx.

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

Definition at line 345 of file SelectionRules.cxx.

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

Definition at line 352 of file SelectionRules.cxx.

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

Definition at line 392 of file SelectionRules.cxx.

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

Definition at line 404 of file SelectionRules.cxx.

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

Definition at line 417 of file SelectionRules.cxx.

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

Definition at line 428 of file SelectionRules.cxx.

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

Definition at line 887 of file SelectionRules.cxx.

Referenced by IsDeclSelected().

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

Definition at line 858 of file SelectionRules.cxx.

Referenced by IsDeclSelected().

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

Definition at line 1026 of file SelectionRules.cxx.

Referenced by IsDeclSelected().

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

Definition at line 966 of file SelectionRules.cxx.

Referenced by IsDeclSelected().

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

Definition at line 1099 of file SelectionRules.cxx.

Referenced by IsDeclSelected().

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

Definition at line 908 of file SelectionRules.cxx.

Referenced by IsDeclSelected().

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

Definition at line 1319 of file SelectionRules.cxx.

Referenced by IsDeclSelected().

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

Definition at line 624 of file SelectionRules.cxx.

Referenced by IsDeclSelected().

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

Definition at line 554 of file SelectionRules.cxx.

Referenced by IsDeclSelected(), and IsMemberSelected().

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

Definition at line 564 of file SelectionRules.cxx.

bool SelectionRules::IsSelectionXMLFile ( ) const
inline

Definition at line 213 of file SelectionRules.h.

Referenced by Optimize(), and RScanner::TreatRecordDeclOrTypedefNameDecl().

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

Definition at line 834 of file SelectionRules.cxx.

Referenced by IsDeclSelected().

void SelectionRules::Optimize ( )

Definition at line 246 of file SelectionRules.cxx.

void SelectionRules::PrintSelectionRules ( ) const

Definition at line 73 of file SelectionRules.cxx.

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

Definition at line 1569 of file SelectionRules.cxx.

void SelectionRules::SetDeep ( bool  deep)

Definition at line 271 of file SelectionRules.cxx.

void SelectionRules::SetHasFileNameRule ( bool  file_rule)
inline

Definition at line 149 of file SelectionRules.h.

Referenced by XMLReader::Parse().

void SelectionRules::SetSelectionFileType ( ESelectionFileTypes  fileType)
inline

Definition at line 219 of file SelectionRules.h.

unsigned int SelectionRules::Size ( ) const
inline

Definition at line 186 of file SelectionRules.h.

Member Data Documentation

std::list<ClassSelectionRule> SelectionRules::fClassSelectionRules
private
std::list<EnumSelectionRule> SelectionRules::fEnumSelectionRules
private
std::list<FunctionSelectionRule> SelectionRules::fFunctionSelectionRules
private
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.

Referenced by GetHasFileNameRule(), and SetHasFileNameRule().

cling::Interpreter& SelectionRules::fInterp
private
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.

Referenced by GetDeep(), and SetDeep().

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

Definition at line 244 of file SelectionRules.h.

Referenced by GetFunctionPrototype(), and IsClassSelected().

long int SelectionRules::fRulesCounter
private
ESelectionFileTypes SelectionRules::fSelectionFileType
private

Definition at line 238 of file SelectionRules.h.

Referenced by IsLinkdefFile(), IsSelectionXMLFile(), and SetSelectionFileType().

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

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