ROOT 6.12/07 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 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 TCollection & | fCollection |
#include <TCollection.h>
|
inline |
Definition at line 413 of file TCollection.h.
|
inline |
Definition at line 414 of file TCollection.h.
|
inline |
Definition at line 416 of file TCollection.h.
|
inline |
Definition at line 417 of file TCollection.h.
|
private |
Definition at line 410 of file TCollection.h.