Logo ROOT  
Reference Guide
TRangeDynCast< T > Class Template Reference

template<class T>
class TRangeDynCast< T >

TRangeDynCast is an adaptater class that allows the typed iteration through a TCollection.

The typical use is:

for(auto bcl : TRangeDynCast<TBaseClass>( *cl->GetListOfBases() )) {
if (!bcl) continue;
... use bcl as a TBaseClass*
}
for(auto bcl : TRangeDynCast<TBaseClass>( cl->GetListOfBases() )) {
if (!bcl) continue;
... use bcl as a TBaseClass*
}
Each class (see TClass) has a linked list of its base class(es).
Definition: TBaseClass.h:33
TRangeDynCast is an adaptater class that allows the typed iteration through a TCollection.
Definition: TCollection.h:411
TString as(SEXP s)
Definition: RExports.h:71
auto * a
Definition: textangle.C:12

Definition at line 411 of file TCollection.h.

Public Member Functions

 TRangeDynCast (const TCollection &col)
 
 TRangeDynCast (const TCollection *col)
 
ROOT::Internal::TRangeDynCastIterator< T > begin () const
 
ROOT::Internal::TRangeDynCastIterator< T > end () const
 

Private Attributes

const TCollectionfCollection
 

#include <TCollection.h>

Constructor & Destructor Documentation

◆ TRangeDynCast() [1/2]

template<class T >
TRangeDynCast< T >::TRangeDynCast ( const TCollection col)
inline

Definition at line 415 of file TCollection.h.

◆ TRangeDynCast() [2/2]

template<class T >
TRangeDynCast< T >::TRangeDynCast ( const TCollection col)
inline

Definition at line 416 of file TCollection.h.

Member Function Documentation

◆ begin()

template<class T >
ROOT::Internal::TRangeDynCastIterator< T > TRangeDynCast< T >::begin ( ) const
inline

Definition at line 418 of file TCollection.h.

◆ end()

template<class T >
ROOT::Internal::TRangeDynCastIterator< T > TRangeDynCast< T >::end ( ) const
inline

Definition at line 419 of file TCollection.h.

Member Data Documentation

◆ fCollection

template<class T >
const TCollection& TRangeDynCast< T >::fCollection
private

Definition at line 412 of file TCollection.h.


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