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
 
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-v628/rootspi/rdoc/src/v6-28-00-patches/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()

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

Implements 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 ( )
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.

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