template<class T>
class ROOT::Detail::TRangeStaticCast< T >
TRangeStaticCast is an adaptater class that allows the typed iteration through a TCollection.
This requires the collection to contains element of the type requested (or a derived class). Any deviation from this expectation will only be caught/reported by an assert in debug builds.
This is best used with a TClonesArray, for other cases prefered TRangeDynCast.
The typical use is:
assert(bcl && bcl->IsA()->InheritsFrom(TBaseClass::Class()));
}
assert(bcl && bcl->IsA()->InheritsFrom(TBaseClass::Class()));
}
TRangeStaticCast is an adaptater class that allows the typed iteration through a TCollection.
Each class (see TClass) has a linked list of its base class(es).
Definition at line 382 of file TCollection.h.