ROOT 6.16/01 Reference Guide |
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 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 TCollection & | fCollection |
#include <TCollection.h>
|
inline |
Definition at line 415 of file TCollection.h.
|
inline |
Definition at line 416 of file TCollection.h.
|
inline |
Definition at line 418 of file TCollection.h.
|
inline |
Definition at line 419 of file TCollection.h.
|
private |
Definition at line 412 of file TCollection.h.