Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches
ClassSelectionRule Class Referencefinal

Definition at line 33 of file ClassSelectionRule.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

 ClassSelectionRule (ESelect sel=kYes)
 ClassSelectionRule (long index, bool inherit, ESelect sel, std::string attributeName, std::string attributeValue, cling::Interpreter &interp, const char *selFileName="", long lineno=-1)
 ClassSelectionRule (long index, cling::Interpreter &interp, const char *selFileName="", long lineno=-1)
void AddFieldSelectionRule (const VariableSelectionRule &field)
void AddMethodSelectionRule (const FunctionSelectionRule &method)
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_tGetAttributes () const
bool GetAttributeValue (const std::string &attributeName, std::string &returnValue) const
const clang::CXXRecordDecl * GetCXXRecordDecl () const
const std::list< VariableSelectionRule > & GetFieldSelectionRules () const
long GetIndex () const
long GetLineNumber () const
bool GetMatchFound () const
const std::list< FunctionSelectionRule > & GetMethodSelectionRules () 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 HasFieldSelectionRules () const
bool HasInterpreter () const
bool HasMethodSelectionRules () const
bool IsFromTypedef () const
bool IsInheritable () const
EMatchType Match (const clang::NamedDecl *decl, const std::string &name, const std::string &prototype, bool isLinkdef) const
void Print (std::ostream &out) const final
void PrintAttributes (int level) const
void PrintAttributes (std::ostream &out, int level) const
int RequestedRNTupleSerializationMode () const
const std::string & RequestedRNTupleSoARecord () const
int RequestedVersionNumber () const
bool RequestNoInputOperator () const
bool RequestNoStreamer () const
bool RequestOnlyTClass () const
bool RequestPrivate () const
bool RequestProtected () const
bool RequestStreamerInfo () 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 SetInheritable (bool inherit)
void SetInterpreter (cling::Interpreter &interp)
void SetMatchFound (bool match)
void SetRequestedRNTupleSerializationMode (int serializationMode)
void SetRequestedRNTupleSoARecord (const std::string &recordName)
void SetRequestedVersionNumber (int version)
void SetRequestNoInputOperator (bool excl)
void SetRequestNoStreamer (bool noStreamer)
void SetRequestOnlyTClass (bool val)
void SetRequestPrivate (bool val)
void SetRequestProtected (bool val)
void SetRequestStreamerInfo (bool needStreamerInfo)
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::list< VariableSelectionRulefFieldSelectionRules
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
bool fIsInheritable
ESelect fIsSelected
long fLineNumber =-1
bool fMatchFound
std::list< FunctionSelectionRulefMethodSelectionRules
std::string fName = ""
std::string fNArgsToKeep = ""
std::string fPattern = ""
std::string fProtoName = ""
std::string fProtoPattern = ""
int fRequestedRNTupleSerializationMode = 0
std::string fRequestedRNTupleSoARecord
const clang::Type * fRequestedType
int fRequestedVersionNumber
bool fRequestNoInputOperator
bool fRequestNoStreamer
bool fRequestOnlyTClass
bool fRequestPrivate
bool fRequestProtected
bool fRequestStreamerInfo
std::string fSelFileName =""
std::list< std::string > fSubPatterns

#include </home/stephan/code/root-2/core/dictgen/res/ClassSelectionRule.h>

Inheritance diagram for ClassSelectionRule:
BaseSelectionRule

Member Typedef Documentation

◆ AttributesMap_t

typedef std::unordered_map<std::string, std::string> BaseSelectionRule::AttributesMap_t
inherited

Definition at line 41 of file BaseSelectionRule.h.

Member Enumeration Documentation

◆ EMatchType

Enumerator
kName 
kPattern 
kFile 
kNoMatch 

Definition at line 48 of file BaseSelectionRule.h.

◆ ESelect

Enumerator
kYes 
kNo 
kDontCare 

Definition at line 43 of file BaseSelectionRule.h.

Constructor & Destructor Documentation

◆ ClassSelectionRule() [1/3]

ClassSelectionRule::ClassSelectionRule ( ESelect sel = kYes)
inline

Definition at line 56 of file ClassSelectionRule.h.

◆ ClassSelectionRule() [2/3]

ClassSelectionRule::ClassSelectionRule ( long index,
cling::Interpreter & interp,
const char * selFileName = "",
long lineno = -1 )
inline

Definition at line 59 of file ClassSelectionRule.h.

◆ ClassSelectionRule() [3/3]

ClassSelectionRule::ClassSelectionRule ( long index,
bool inherit,
ESelect sel,
std::string attributeName,
std::string attributeValue,
cling::Interpreter & interp,
const char * selFileName = "",
long lineno = -1 )
inline

Definition at line 62 of file ClassSelectionRule.h.

Member Function Documentation

◆ AddFieldSelectionRule()

void ClassSelectionRule::AddFieldSelectionRule ( const VariableSelectionRule & field)

Definition at line 21 of file ClassSelectionRule.cxx.

◆ AddMethodSelectionRule()

void ClassSelectionRule::AddMethodSelectionRule ( const FunctionSelectionRule & method)

Definition at line 37 of file ClassSelectionRule.cxx.

◆ CheckPattern()

bool BaseSelectionRule::CheckPattern ( const std::string & test,
const std::string & pattern,
const std::list< std::string > & patterns_list,
bool isLinkdef ) const
inlineprotectedinherited

Definition at line 444 of file BaseSelectionRule.cxx.

◆ DebugPrint()

void BaseSelectionRule::DebugPrint ( ) const
virtualinherited

Definition at line 155 of file BaseSelectionRule.cxx.

◆ FillCache()

void BaseSelectionRule::FillCache ( )
inherited

Definition at line 536 of file BaseSelectionRule.cxx.

◆ GetAttributeFileName()

const std::string & BaseSelectionRule::GetAttributeFileName ( ) const
inlineinherited

Definition at line 122 of file BaseSelectionRule.h.

◆ GetAttributeFilePattern()

const std::string & BaseSelectionRule::GetAttributeFilePattern ( ) const
inlineinherited

Definition at line 125 of file BaseSelectionRule.h.

◆ GetAttributeName()

const std::string & BaseSelectionRule::GetAttributeName ( ) const
inlineinherited

Definition at line 110 of file BaseSelectionRule.h.

◆ GetAttributeNArgsToKeep()

const std::string & BaseSelectionRule::GetAttributeNArgsToKeep ( ) const
inlineinherited

Definition at line 131 of file BaseSelectionRule.h.

◆ GetAttributePattern()

const std::string & BaseSelectionRule::GetAttributePattern ( ) const
inlineinherited

Definition at line 116 of file BaseSelectionRule.h.

◆ GetAttributeProtoName()

const std::string & BaseSelectionRule::GetAttributeProtoName ( ) const
inlineinherited

Definition at line 113 of file BaseSelectionRule.h.

◆ GetAttributeProtoPattern()

const std::string & BaseSelectionRule::GetAttributeProtoPattern ( ) const
inlineinherited

Definition at line 119 of file BaseSelectionRule.h.

◆ GetAttributes()

const BaseSelectionRule::AttributesMap_t & BaseSelectionRule::GetAttributes ( ) const
inherited

Definition at line 150 of file BaseSelectionRule.cxx.

◆ GetAttributeValue()

bool BaseSelectionRule::GetAttributeValue ( const std::string & attributeName,
std::string & returnValue ) const
inherited

Definition at line 116 of file BaseSelectionRule.cxx.

◆ GetCXXRecordDecl()

const clang::CXXRecordDecl * BaseSelectionRule::GetCXXRecordDecl ( ) const
inlineinherited

Definition at line 151 of file BaseSelectionRule.h.

◆ GetFieldSelectionRules()

const std::list< VariableSelectionRule > & ClassSelectionRule::GetFieldSelectionRules ( ) const

Definition at line 32 of file ClassSelectionRule.cxx.

◆ GetIndex()

long BaseSelectionRule::GetIndex ( ) const
inlineinherited

Definition at line 98 of file BaseSelectionRule.h.

◆ GetLineNumber()

long BaseSelectionRule::GetLineNumber ( ) const
inlineinherited

Definition at line 101 of file BaseSelectionRule.h.

◆ GetMatchFound()

bool BaseSelectionRule::GetMatchFound ( ) const
inherited

Definition at line 520 of file BaseSelectionRule.cxx.

◆ GetMethodSelectionRules()

const std::list< FunctionSelectionRule > & ClassSelectionRule::GetMethodSelectionRules ( ) const

Definition at line 95 of file ClassSelectionRule.cxx.

◆ GetRequestedType()

const clang::Type * BaseSelectionRule::GetRequestedType ( ) const
inherited

Definition at line 525 of file BaseSelectionRule.cxx.

◆ GetSelected()

BaseSelectionRule::ESelect BaseSelectionRule::GetSelected ( ) const
inherited

Definition at line 103 of file BaseSelectionRule.cxx.

◆ GetSelFileName()

const char * BaseSelectionRule::GetSelFileName ( ) const
inlineinherited

Definition at line 102 of file BaseSelectionRule.h.

◆ HasAttributeFileName()

bool BaseSelectionRule::HasAttributeFileName ( ) const
inlineinherited

Definition at line 123 of file BaseSelectionRule.h.

◆ HasAttributeFilePattern()

bool BaseSelectionRule::HasAttributeFilePattern ( ) const
inlineinherited

Definition at line 126 of file BaseSelectionRule.h.

◆ HasAttributeFromTypedef()

bool BaseSelectionRule::HasAttributeFromTypedef ( ) const
inlineinherited

Definition at line 129 of file BaseSelectionRule.h.

◆ HasAttributeName()

bool BaseSelectionRule::HasAttributeName ( ) const
inlineinherited

Definition at line 111 of file BaseSelectionRule.h.

◆ HasAttributePattern()

bool BaseSelectionRule::HasAttributePattern ( ) const
inlineinherited

Definition at line 117 of file BaseSelectionRule.h.

◆ HasAttributeProtoName()

bool BaseSelectionRule::HasAttributeProtoName ( ) const
inlineinherited

Definition at line 114 of file BaseSelectionRule.h.

◆ HasAttributeProtoPattern()

bool BaseSelectionRule::HasAttributeProtoPattern ( ) const
inlineinherited

Definition at line 120 of file BaseSelectionRule.h.

◆ HasAttributeWithName()

bool BaseSelectionRule::HasAttributeWithName ( const std::string & attributeName) const
inherited

Definition at line 108 of file BaseSelectionRule.cxx.

◆ HasFieldSelectionRules()

bool ClassSelectionRule::HasFieldSelectionRules ( ) const

Definition at line 26 of file ClassSelectionRule.cxx.

◆ HasInterpreter()

bool BaseSelectionRule::HasInterpreter ( ) const
inlineinherited

Definition at line 138 of file BaseSelectionRule.h.

◆ HasMethodSelectionRules()

bool ClassSelectionRule::HasMethodSelectionRules ( ) const

Definition at line 42 of file ClassSelectionRule.cxx.

◆ IsFromTypedef()

bool BaseSelectionRule::IsFromTypedef ( ) const
inlineinherited

Definition at line 128 of file BaseSelectionRule.h.

◆ IsInheritable()

bool ClassSelectionRule::IsInheritable ( ) const

Definition at line 100 of file ClassSelectionRule.cxx.

◆ Match()

BaseSelectionRule::EMatchType BaseSelectionRule::Match ( const clang::NamedDecl * decl,
const std::string & name,
const std::string & prototype,
bool isLinkdef ) const
inherited

Definition at line 185 of file BaseSelectionRule.cxx.

◆ Print()

void ClassSelectionRule::Print ( std::ostream & out) const
finalvirtual

Implements BaseSelectionRule.

Definition at line 47 of file ClassSelectionRule.cxx.

◆ PrintAttributes() [1/2]

void BaseSelectionRule::PrintAttributes ( int level) const
inherited

Definition at line 178 of file BaseSelectionRule.cxx.

◆ PrintAttributes() [2/2]

void BaseSelectionRule::PrintAttributes ( std::ostream & out,
int level ) const
inherited

Definition at line 160 of file BaseSelectionRule.cxx.

◆ ProcessPattern()

void BaseSelectionRule::ProcessPattern ( const std::string & pattern,
std::list< std::string > & out ) const
inlineprotectedinherited

Definition at line 372 of file BaseSelectionRule.cxx.

◆ RequestedRNTupleSerializationMode()

int ClassSelectionRule::RequestedRNTupleSerializationMode ( ) const

Definition at line 190 of file ClassSelectionRule.cxx.

◆ RequestedRNTupleSoARecord()

const std::string & ClassSelectionRule::RequestedRNTupleSoARecord ( ) const

Definition at line 195 of file ClassSelectionRule.cxx.

◆ RequestedVersionNumber()

int ClassSelectionRule::RequestedVersionNumber ( ) const

Definition at line 185 of file ClassSelectionRule.cxx.

◆ RequestNoInputOperator()

bool ClassSelectionRule::RequestNoInputOperator ( ) const

Definition at line 130 of file ClassSelectionRule.cxx.

◆ RequestNoStreamer()

bool ClassSelectionRule::RequestNoStreamer ( ) const

Definition at line 120 of file ClassSelectionRule.cxx.

◆ RequestOnlyTClass()

bool ClassSelectionRule::RequestOnlyTClass ( ) const

Definition at line 170 of file ClassSelectionRule.cxx.

◆ RequestPrivate()

bool ClassSelectionRule::RequestPrivate ( ) const

Definition at line 180 of file ClassSelectionRule.cxx.

◆ RequestProtected()

bool ClassSelectionRule::RequestProtected ( ) const

Definition at line 175 of file ClassSelectionRule.cxx.

◆ RequestStreamerInfo()

bool ClassSelectionRule::RequestStreamerInfo ( ) const

Definition at line 110 of file ClassSelectionRule.cxx.

◆ SetAttributeValue()

void BaseSelectionRule::SetAttributeValue ( const std::string & attributeName,
const std::string & attributeValue )
inherited

Definition at line 125 of file BaseSelectionRule.cxx.

◆ SetCXXRecordDecl()

void BaseSelectionRule::SetCXXRecordDecl ( const clang::CXXRecordDecl * decl,
const clang::Type * typeptr )
inherited

Definition at line 530 of file BaseSelectionRule.cxx.

◆ SetIndex()

void BaseSelectionRule::SetIndex ( long index)
inlineinherited

Definition at line 99 of file BaseSelectionRule.h.

◆ SetInheritable()

void ClassSelectionRule::SetInheritable ( bool inherit)

Definition at line 105 of file ClassSelectionRule.cxx.

◆ SetInterpreter()

void BaseSelectionRule::SetInterpreter ( cling::Interpreter & interp)
inlineinherited

Definition at line 139 of file BaseSelectionRule.h.

◆ SetMatchFound()

void BaseSelectionRule::SetMatchFound ( bool match)
inherited

Definition at line 515 of file BaseSelectionRule.cxx.

◆ SetRequestedRNTupleSerializationMode()

void ClassSelectionRule::SetRequestedRNTupleSerializationMode ( int serializationMode)

Definition at line 160 of file ClassSelectionRule.cxx.

◆ SetRequestedRNTupleSoARecord()

void ClassSelectionRule::SetRequestedRNTupleSoARecord ( const std::string & recordName)

Definition at line 165 of file ClassSelectionRule.cxx.

◆ SetRequestedVersionNumber()

void ClassSelectionRule::SetRequestedVersionNumber ( int version)

Definition at line 155 of file ClassSelectionRule.cxx.

◆ SetRequestNoInputOperator()

void ClassSelectionRule::SetRequestNoInputOperator ( bool excl)

Definition at line 135 of file ClassSelectionRule.cxx.

◆ SetRequestNoStreamer()

void ClassSelectionRule::SetRequestNoStreamer ( bool noStreamer)

Definition at line 125 of file ClassSelectionRule.cxx.

◆ SetRequestOnlyTClass()

void ClassSelectionRule::SetRequestOnlyTClass ( bool val)

Definition at line 140 of file ClassSelectionRule.cxx.

◆ SetRequestPrivate()

void ClassSelectionRule::SetRequestPrivate ( bool val)

Definition at line 150 of file ClassSelectionRule.cxx.

◆ SetRequestProtected()

void ClassSelectionRule::SetRequestProtected ( bool val)

Definition at line 145 of file ClassSelectionRule.cxx.

◆ SetRequestStreamerInfo()

void ClassSelectionRule::SetRequestStreamerInfo ( bool needStreamerInfo)

Definition at line 115 of file ClassSelectionRule.cxx.

◆ SetSelected()

void BaseSelectionRule::SetSelected ( BaseSelectionRule::ESelect sel)
inherited

Definition at line 98 of file BaseSelectionRule.cxx.

Member Data Documentation

◆ fAttributes

AttributesMap_t BaseSelectionRule::fAttributes
privateinherited

Definition at line 59 of file BaseSelectionRule.h.

◆ fCXXRecordDecl

const clang::CXXRecordDecl* BaseSelectionRule::fCXXRecordDecl
privateinherited

Definition at line 64 of file BaseSelectionRule.h.

◆ fFieldSelectionRules

std::list<VariableSelectionRule> ClassSelectionRule::fFieldSelectionRules
private

Definition at line 36 of file ClassSelectionRule.h.

◆ fFileName

std::string BaseSelectionRule::fFileName = ""
privateinherited

Definition at line 73 of file BaseSelectionRule.h.

◆ fFilePattern

std::string BaseSelectionRule::fFilePattern = ""
privateinherited

Definition at line 74 of file BaseSelectionRule.h.

◆ fFileSubPatterns

std::list<std::string> BaseSelectionRule::fFileSubPatterns
privateinherited

Definition at line 62 of file BaseSelectionRule.h.

◆ fHasFileNameAttribute

bool BaseSelectionRule::fHasFileNameAttribute = false
privateinherited

Definition at line 80 of file BaseSelectionRule.h.

◆ fHasFilePatternAttribute

bool BaseSelectionRule::fHasFilePatternAttribute = false
privateinherited

Definition at line 81 of file BaseSelectionRule.h.

◆ fHasFromTypedefAttribute

bool BaseSelectionRule::fHasFromTypedefAttribute = false
privateinherited

Definition at line 82 of file BaseSelectionRule.h.

◆ fHasNameAttribute

bool BaseSelectionRule::fHasNameAttribute = false
privateinherited

Definition at line 76 of file BaseSelectionRule.h.

◆ fHasPatternAttribute

bool BaseSelectionRule::fHasPatternAttribute = false
privateinherited

Definition at line 78 of file BaseSelectionRule.h.

◆ fHasProtoNameAttribute

bool BaseSelectionRule::fHasProtoNameAttribute = false
privateinherited

Definition at line 77 of file BaseSelectionRule.h.

◆ fHasProtoPatternAttribute

bool BaseSelectionRule::fHasProtoPatternAttribute = false
privateinherited

Definition at line 79 of file BaseSelectionRule.h.

◆ fIndex

long BaseSelectionRule::fIndex
privateinherited

Definition at line 56 of file BaseSelectionRule.h.

◆ fInterp

cling::Interpreter* BaseSelectionRule::fInterp
privateinherited

Definition at line 66 of file BaseSelectionRule.h.

◆ fIsFromTypedef

bool BaseSelectionRule::fIsFromTypedef = false
privateinherited

Definition at line 83 of file BaseSelectionRule.h.

◆ fIsInheritable

bool ClassSelectionRule::fIsInheritable
private

Definition at line 38 of file ClassSelectionRule.h.

◆ fIsSelected

ESelect BaseSelectionRule::fIsSelected
privateinherited

Definition at line 60 of file BaseSelectionRule.h.

◆ fLineNumber

long BaseSelectionRule::fLineNumber =-1
privateinherited

Definition at line 57 of file BaseSelectionRule.h.

◆ fMatchFound

bool BaseSelectionRule::fMatchFound
privateinherited

Definition at line 63 of file BaseSelectionRule.h.

◆ fMethodSelectionRules

std::list<FunctionSelectionRule> ClassSelectionRule::fMethodSelectionRules
private

Definition at line 37 of file ClassSelectionRule.h.

◆ fName

std::string BaseSelectionRule::fName = ""
privateinherited

Definition at line 69 of file BaseSelectionRule.h.

◆ fNArgsToKeep

std::string BaseSelectionRule::fNArgsToKeep = ""
privateinherited

Definition at line 75 of file BaseSelectionRule.h.

◆ fPattern

std::string BaseSelectionRule::fPattern = ""
privateinherited

Definition at line 70 of file BaseSelectionRule.h.

◆ fProtoName

std::string BaseSelectionRule::fProtoName = ""
privateinherited

Definition at line 71 of file BaseSelectionRule.h.

◆ fProtoPattern

std::string BaseSelectionRule::fProtoPattern = ""
privateinherited

Definition at line 72 of file BaseSelectionRule.h.

◆ fRequestedRNTupleSerializationMode

int ClassSelectionRule::fRequestedRNTupleSerializationMode = 0
private

Definition at line 49 of file ClassSelectionRule.h.

◆ fRequestedRNTupleSoARecord

std::string ClassSelectionRule::fRequestedRNTupleSoARecord
private

Definition at line 51 of file ClassSelectionRule.h.

◆ fRequestedType

const clang::Type* BaseSelectionRule::fRequestedType
privateinherited

Definition at line 65 of file BaseSelectionRule.h.

◆ fRequestedVersionNumber

int ClassSelectionRule::fRequestedVersionNumber
private

Definition at line 47 of file ClassSelectionRule.h.

◆ fRequestNoInputOperator

bool ClassSelectionRule::fRequestNoInputOperator
private

Definition at line 43 of file ClassSelectionRule.h.

◆ fRequestNoStreamer

bool ClassSelectionRule::fRequestNoStreamer
private

Definition at line 42 of file ClassSelectionRule.h.

◆ fRequestOnlyTClass

bool ClassSelectionRule::fRequestOnlyTClass
private

Definition at line 44 of file ClassSelectionRule.h.

◆ fRequestPrivate

bool ClassSelectionRule::fRequestPrivate
private

Definition at line 46 of file ClassSelectionRule.h.

◆ fRequestProtected

bool ClassSelectionRule::fRequestProtected
private

Definition at line 45 of file ClassSelectionRule.h.

◆ fRequestStreamerInfo

bool ClassSelectionRule::fRequestStreamerInfo
private

Definition at line 41 of file ClassSelectionRule.h.

◆ fSelFileName

std::string BaseSelectionRule::fSelFileName =""
privateinherited

Definition at line 58 of file BaseSelectionRule.h.

◆ fSubPatterns

std::list<std::string> BaseSelectionRule::fSubPatterns
privateinherited

Definition at line 61 of file BaseSelectionRule.h.


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