Re: [ROOT] rootcint Streamer doesn't handle map<string, Int_t> correctly

From: Fons Rademakers (Fons.Rademakers@cern.ch)
Date: Sun Jun 11 2000 - 18:47:23 MEST


Hi Matt,

  currently vector, list and deque are handled in rootcint generated
Streamers. The other ones (map, set, multimap and multiset) are on the
TODO list. To use these now, you'll have to make a custom Streamer().


Cheers, Fons.


On Sat, Jun 10, 2000 at 09:46:26PM -0700, Matthew D. Langston wrote:
> It appears that rootcint generated Streamers don't handle simple maps
> correctly.
> 
> Although rootcint appears to parse maps correctly (i.e. there are no
> error messages when rootcint parses a class deriving from TObject that
> contains a map<string, Int_t>), the generated Streamer either doesn't
> write them to a file properly, read them from a file properly, or both.
> 
> Can someone confirm this behavior for me?  If rootcint generated
> Streamers for maps really don't work properly, then may I ask the ROOT
> Team to put this in the TODO list for a future release of ROOT please?
> 
> Does anyone have a list of what standard C++ containers are handled
> properly by rootcint?  I have verified that rootcint generated Streamers
> for classes containing vector< Int_t > work.  However, before I just
> "hunt and peck" for what standard C++ containers work and don't work
> with rootcint, I wanted to ask roottalk for any collective experience
> first.
> 
> It would sure be nice if things like map< string, TH1* > would
> eventually work properly.
> 
> --
> Matthew D. Langston
> SLD, Stanford Linear Accelerator Center
> langston@SLAC.Stanford.EDU

-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers@cern.ch              Phone: +41 22 7679248
WWW:    http://root.cern.ch/~rdm/            Fax:   +41 22 7677910



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:27 MET