Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches
RooAbsCategoryLegacyIterator Class Reference

Deprecated
Legacy class to iterate through legacy RooAbsCategory states. Use RooAbsCategory::begin(), RooAbsCategory::end() or range-based for loops instead.

Definition at line 31 of file RooAbsCategoryLegacyIterator.h.

Public Member Functions

 RooAbsCategoryLegacyIterator (const std::map< std::string, RooAbsCategory::value_type > &stateNames)
const TCollectionGetCollection () const override
virtual Option_tGetOption () const
virtual TClassIsA () const
TObjectNext () override
virtual Bool_t operator!= (const TIterator &) const
 Compare two iterator objects.
TObjectoperator() ()
TObjectoperator* () const override
 Return current object or nullptr.
RooAbsCategoryLegacyIteratoroperator= (const RooAbsCategoryLegacyIterator &)=default
TIteratoroperator= (const TIterator &) override
Bool_t operator== (const TIterator &other) const
void Reset () override
virtual void Streamer (TBuffer &)
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)

Static Public Member Functions

static TClassClass ()
static const char * Class_Name ()
static constexpr Version_t Class_Version ()
static const char * DeclFileName ()

Private Member Functions

void populate ()

Private Attributes

std::vector< RooCatType_legacyStates
const std::map< std::string, RooAbsCategory::value_type > * _origStateNames
int index

#include </home/stephan/code/root-2/roofit/roofitcore/src/RooFitLegacy/RooAbsCategoryLegacyIterator.h>

Inheritance diagram for RooAbsCategoryLegacyIterator:
TIterator

Constructor & Destructor Documentation

◆ RooAbsCategoryLegacyIterator()

RooAbsCategoryLegacyIterator::RooAbsCategoryLegacyIterator ( const std::map< std::string, RooAbsCategory::value_type > & stateNames)
inline

Definition at line 33 of file RooAbsCategoryLegacyIterator.h.

Member Function Documentation

◆ Class()

TClass * TIterator::Class ( )
staticinherited
Returns
TClass describing this class

◆ Class_Name()

const char * TIterator::Class_Name ( )
staticinherited
Returns
Name of this class

◆ Class_Version()

constexpr Version_t TIterator::Class_Version ( )
inlinestaticconstexprinherited
Returns
Version of this class

Definition at line 48 of file TIterator.h.

◆ DeclFileName()

const char * TIterator::DeclFileName ( )
inlinestaticinherited
Returns
Name of the file containing the class declaration

Definition at line 48 of file TIterator.h.

◆ GetCollection()

const TCollection * RooAbsCategoryLegacyIterator::GetCollection ( ) const
inlineoverridevirtual

Implements TIterator.

Definition at line 38 of file RooAbsCategoryLegacyIterator.h.

◆ GetOption()

virtual Option_t * TIterator::GetOption ( ) const
inlinevirtualinherited

Reimplemented in TListIter, and TTreeFriendLeafIter.

Definition at line 40 of file TIterator.h.

◆ IsA()

virtual TClass * TIterator::IsA ( ) const
inlinevirtualinherited

◆ Next()

TObject * RooAbsCategoryLegacyIterator::Next ( )
inlineoverridevirtual

Implements TIterator.

Definition at line 40 of file RooAbsCategoryLegacyIterator.h.

◆ operator!=()

Bool_t TIterator::operator!= ( const TIterator & ) const
virtualinherited

◆ operator()()

TObject * TIterator::operator() ( )
inlineinherited

Definition at line 43 of file TIterator.h.

◆ operator*()

TObject * RooAbsCategoryLegacyIterator::operator* ( ) const
inlineoverridevirtual

Return current object or nullptr.

For backward compatibility reasons we have to provide this default implementation.

Reimplemented from TIterator.

Definition at line 47 of file RooAbsCategoryLegacyIterator.h.

◆ operator=() [1/2]

RooAbsCategoryLegacyIterator & RooAbsCategoryLegacyIterator::operator= ( const RooAbsCategoryLegacyIterator & )
default

◆ operator=() [2/2]

TIterator & RooAbsCategoryLegacyIterator::operator= ( const TIterator & )
inlineoverridevirtual

Implements TIterator.

Definition at line 56 of file RooAbsCategoryLegacyIterator.h.

◆ operator==()

Bool_t TIterator::operator== ( const TIterator & other) const
inlineinherited

Definition at line 45 of file TIterator.h.

◆ populate()

void RooAbsCategoryLegacyIterator::populate ( )
inlineprivate

Definition at line 61 of file RooAbsCategoryLegacyIterator.h.

◆ Reset()

void RooAbsCategoryLegacyIterator::Reset ( )
inlineoverridevirtual

Implements TIterator.

Definition at line 45 of file RooAbsCategoryLegacyIterator.h.

◆ Streamer()

◆ StreamerNVirtual()

void TIterator::StreamerNVirtual ( TBuffer & ClassDef_StreamerNVirtual_b)
inlineinherited

Definition at line 48 of file TIterator.h.

Member Data Documentation

◆ _legacyStates

std::vector<RooCatType> RooAbsCategoryLegacyIterator::_legacyStates
private

Definition at line 73 of file RooAbsCategoryLegacyIterator.h.

◆ _origStateNames

const std::map<std::string, RooAbsCategory::value_type>* RooAbsCategoryLegacyIterator::_origStateNames
private

Definition at line 72 of file RooAbsCategoryLegacyIterator.h.

◆ index

int RooAbsCategoryLegacyIterator::index
private

Definition at line 74 of file RooAbsCategoryLegacyIterator.h.


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