From Axel: as you're probably aware, there is no common interface to get the number of entries in collections. It's GetEntries() for all collections which have a "reserved size", and GetSize() for all others.
From Axel:
as you're probably aware, there is no common interface to get the number
of entries in collections. It's GetEntries() for all collections which
have a "reserved size", and GetSize() for all others.

The attached tiny patch introduces
virtual TCollection::GetEntries() { return GetSize();}
It returns GetSize() if GetEntries() is not re-implemented by the
derived class. It already is re-implemented for all classes for which
GetSize() returns something different than GetEntries(). Thus,
GetEntries() returns the number of entries for all collections.


git-svn-id: ecbadac9c76e8cf640a0bca86f6bd796c98521e3@11418 27541ba8-7e3a-0410-8455-c3a389f83636

dawehner/root,bbannier/ROOT,bbannier/ROOT,dawehner/root,bbannier/ROOT,dawehner/root,bbannier/ROOT,bbannier/ROOT,dawehner/root,dawehner/root,bbannier/ROOT,dawehner/root,dawehner/root,dawehner/root,bbannier/ROOT