4 #ifndef ROOT_TSchemaRuleSet 5 #define ROOT_TSchemaRuleSet 24 class TMatches:
public std::vector<const TSchemaRule*>
27 operator bool() {
return !empty(); }
78 #endif // ROOT_TSchemaRuleSet Bool_t AddRule(TSchemaRule *rule, EConsistencyCheck checkConsistency=kCheckAll, TString *errmsg=0)
The consistency check always fails if the TClass object was not set! if checkConsistency is: kNoCheck...
void AsString(TString &out) const
Fill the string 'out' with the string representation of the rule.
TClassRef fClass
Array of all rules.
const TSchemaRule * GetRuleWithTarget(const TString &name) const
Return the rule that has 'name' as a target.
Bool_t HasRuleWithSource(const TString &name, Bool_t needingAlloc) const
Return true if the set of rules has at least one rule that has the data member named 'name' as a sour...
This namespace contains pre-defined functions to be used in conjuction with TExecutor::Map and TExecu...
void RemoveRule(TSchemaRule *rule)
Remove given rule from the set - the rule is not being deleted!
virtual ~TSchemaRuleSet()
Destructor.
TSchemaRuleSet()
Default constructor.
TObjArray * fPersistentRules
const TObjArray * GetRules() const
void RemoveRules(TObjArray *rules)
remove given array of rules from the set - the rules are not being deleted!
const TObjArray * GetPersistentRules() const
#define ClassDef(name, id)
UInt_t GetClassCheckSum() const
const TSchemaRule * GetRuleWithSource(const TString &name) const
Return the rule that has 'name' as a source.
Bool_t AddRules(TSchemaRuleSet *rules, EConsistencyCheck checkConsistency=kCheckAll, TString *errmsg=0)
Bool_t HasRuleWithSourceClass(const TString &source) const
Return True if we have any rule whose source class is 'source'.
TString fClassName
Target class pointer (for consistency checking)
void SetClass(TClass *cls)
Set the TClass associated with this rule set.
The ROOT global object gROOT contains a list of all defined classes.
TObjArray * fAllRules
Array of non-persisten rules - just for cleanup purposes - owns the elements.
Int_t GetClassVersion() const
TObjArray * fRemainingRules
void ls(Option_t *option="") const
The ls function lists the contents of a class on stdout.
TString GetClassName() const
const TMatches FindRules(const TString &source) const
Return all the rules that are about the given 'source' class.
Mother of all ROOT objects.
TClassRef is used to implement a permanent reference to a TClass object.
Bool_t HasRuleWithTarget(const TString &name, Bool_t willset) const
Return true if the set of rules has at least one rule that has the data member named 'name' as a targ...