Logo ROOT  
Reference Guide
No Matches
RooAbsCategoryLegacyIterator Class Reference

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
TObjectNext () override
TObjectoperator* () const override
 Return current object or nullptr.
RooAbsCategoryLegacyIteratoroperator= (const RooAbsCategoryLegacyIterator &)=default
TIteratoroperator= (const TIterator &) override
void Reset () override
- Public Member Functions inherited from TIterator
virtual ~TIterator ()
virtual Option_tGetOption () const
virtual TClassIsA () const
virtual Bool_t operator!= (const TIterator &) const
 Compare two iterator objects.
TObjectoperator() ()
Bool_t operator== (const TIterator &other) const
virtual void Streamer (TBuffer &)
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)

Private Member Functions

void populate ()

Private Attributes

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

Additional Inherited Members

- Static Public Member Functions inherited from TIterator
static TClassClass ()
static const char * Class_Name ()
static constexpr Version_t Class_Version ()
static const char * DeclFileName ()
- Protected Member Functions inherited from TIterator
 TIterator ()
 TIterator (const TIterator &)

#include </home/sftnight/build/workspace/root-makedoc-v630/rootspi/rdoc/src/v6-30-00-patches/roofit/roofitcore/src/RooFitLegacy/RooAbsCategoryLegacyIterator.h>

Inheritance diagram for RooAbsCategoryLegacyIterator:

Constructor & Destructor Documentation

◆ RooAbsCategoryLegacyIterator()

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

Definition at line 33 of file RooAbsCategoryLegacyIterator.h.

Member Function Documentation

◆ GetCollection()

const TCollection * RooAbsCategoryLegacyIterator::GetCollection ( ) const

Implements TIterator.

Definition at line 38 of file RooAbsCategoryLegacyIterator.h.

◆ Next()

TObject * RooAbsCategoryLegacyIterator::Next ( )

Implements TIterator.

Definition at line 40 of file RooAbsCategoryLegacyIterator.h.

◆ operator*()

TObject * RooAbsCategoryLegacyIterator::operator* ( ) const

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 )

◆ operator=() [2/2]

TIterator & RooAbsCategoryLegacyIterator::operator= ( const TIterator )

Implements TIterator.

Definition at line 56 of file RooAbsCategoryLegacyIterator.h.

◆ populate()

void RooAbsCategoryLegacyIterator::populate ( )

Definition at line 61 of file RooAbsCategoryLegacyIterator.h.

◆ Reset()

void RooAbsCategoryLegacyIterator::Reset ( )

Implements TIterator.

Definition at line 45 of file RooAbsCategoryLegacyIterator.h.

Member Data Documentation

◆ _legacyStates

std::vector<RooCatType> RooAbsCategoryLegacyIterator::_legacyStates

Definition at line 73 of file RooAbsCategoryLegacyIterator.h.

◆ _origStateNames

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

Definition at line 72 of file RooAbsCategoryLegacyIterator.h.

◆ index

int RooAbsCategoryLegacyIterator::index

Definition at line 74 of file RooAbsCategoryLegacyIterator.h.

  • roofit/roofitcore/src/RooFitLegacy/RooAbsCategoryLegacyIterator.h