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

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

- Protected Member Functions inherited from TIterator
 TIterator ()
 
 TIterator (const TIterator &)
 

#include </home/sftnight/build/workspace/root-makedoc-master/rootspi/rdoc/src/master/roofit/roofitcore/src/RooFitLegacy/RooAbsCategoryLegacyIterator.h>

Inheritance diagram for RooAbsCategoryLegacyIterator:
[legend]

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

◆ GetCollection()

virtual const TCollection* RooAbsCategoryLegacyIterator::GetCollection ( ) const
inlineoverridevirtual

Implements TIterator.

Definition at line 38 of file RooAbsCategoryLegacyIterator.h.

◆ Next()

TObject* RooAbsCategoryLegacyIterator::Next ( )
inlineoverridevirtual

Implements TIterator.

Definition at line 40 of file RooAbsCategoryLegacyIterator.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

Reimplemented from TIterator.

Definition at line 56 of file RooAbsCategoryLegacyIterator.h.

◆ populate()

void RooAbsCategoryLegacyIterator::populate ( )
inlineprivate

Definition at line 61 of file RooAbsCategoryLegacyIterator.h.

◆ Reset()

void RooAbsCategoryLegacyIterator::Reset ( void  )
inlineoverridevirtual

Implements TIterator.

Definition at line 45 of file RooAbsCategoryLegacyIterator.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: