|
ROOT
Reference Guide |
|
Go to the documentation of this file.
16 #ifndef ROO_MAPPED_CATEGORY
17 #define ROO_MAPPED_CATEGORY
25 class RooMappedCategoryCache;
77 std::map<std::string,RooMappedCategory::Entry>
_mapArray ;
Bool_t match(const char *testPattern) const
static constexpr value_type NoCatIdx
RooMappedCategoryCache * _mapcache
RooAbsCategory::value_type outCat() const
virtual ~RooMappedCategory()
Entry & operator=(const Entry &other)
friend class RooMappedCategoryCache
virtual TObject * clone(const char *newname) const
static void indent(ostringstream &buf, int indent_level)
const TRegexp * regexp() const
RooAbsCategory::value_type _catIdx
RooAbsCategory is the base class for objects that represent a discrete value with a finite number of ...
RooMappedCategory provides a category-to-category mapping defined by pattern matching on their state ...
Bool_t map(const char *inKeyRegExp, const char *outKeyName, Int_t outKeyNum=NoCatIdx)
void printMetaArgs(std::ostream &os) const
Customized printing of arguments of a RooMappedCategory to more intuitively reflect the contents of t...
TString mangle(const char *exp) const
Mangle name : escape regexp character '+'.
Regular expression class.
const RooMappedCategoryCache * getOrCreateCache() const
std::map< std::string, RooMappedCategory::Entry > _mapArray
RooCategoryProxy _inputCat
virtual void writeToStream(std::ostream &os, Bool_t compact) const
Write object contents to ostream.
void printMultiline(std::ostream &os, Int_t content, Bool_t verbose=kFALSE, TString indent="") const
Print info about this object to the specified stream.
Mother of all ROOT objects.
#define ClassDef(name, id)
virtual value_type evaluate() const
transient member: cache the mapping
void recomputeShape()
When the input category changes states, the cached state mappings are invalidated.
virtual Bool_t readFromStream(std::istream &is, Bool_t compact, Bool_t verbose=kFALSE)
Read object contents from stream (dummy for now)