Why do you want to insert this object in gDirectory? Why a global
pointing to your TObjArray is not OK?
Obviously, we could have one class derived from TNamed.
I believe, however, that this should be a small user class
derived from TObjArray with a name component and a GetName() member
function + all the functionality to search what you want.
> While looking at some root classes I have found some possible extentions
> which should not be difficult/time-consuming to implement.
> 1. implement TH*I and TH*L histogram classes
This has always been on our shoping list and it is easy to add.
> 2. some collection classes ( including TObjArray ) have the At(),
> RemoveAt(), but NONE has DeleteAt(), so I propose to implement
> DeleteAt() which should "remove" object At() and delete it if
> is it on the heap
We will implement DeleteAt.
> 3. currently the AddAtAndExpand() doubles the size of the array,
> but I think it should only increase the size by the INITIAL
> aray size ( default is kInitCapacity=16 )
This is for efficiency reasons. It is frequent to use the default
initial capacity in the array constructor. In case of large lists,
we want to minimize the number of reallocs.
Rene Brun