Logo ROOT   6.12/07
Reference Guide
List of all members | Public Member Functions | Private Attributes | List of all members
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: ~~~ {.cpp} 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* } ~~~ {.cpp}

Definition at line 409 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 413 of file TCollection.h.

◆ TRangeDynCast() [2/2]

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

Definition at line 414 of file TCollection.h.

Member Function Documentation

◆ begin()

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

Definition at line 416 of file TCollection.h.

◆ end()

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

Definition at line 417 of file TCollection.h.

Member Data Documentation

◆ fCollection

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

Definition at line 410 of file TCollection.h.

Libraries for TRangeDynCast< T >:
[legend]

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