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:418
TString as(SEXP s)
Definition: RExports.h:71
auto * a
Definition: textangle.C:12

Definition at line 418 of file TCollection.h.

Public Member Functions

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

Private Attributes

const TCollectionfCollection
  More...
 

#include <TCollection.h>

Constructor & Destructor Documentation

◆ TRangeDynCast() [1/2]

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

Definition at line 422 of file TCollection.h.

◆ TRangeDynCast() [2/2]

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

Definition at line 423 of file TCollection.h.

Member Function Documentation

◆ begin()

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

Definition at line 425 of file TCollection.h.

◆ end()

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

Definition at line 426 of file TCollection.h.

Member Data Documentation

◆ fCollection

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

Definition at line 419 of file TCollection.h.


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