ROOT logo
ROOT » CORE » META » TClassStreamer

class TClassStreamer


TClassStreamer is used to stream an object of a specific class.

The address passed to operator() will be the address of the start
of the  object.


Function Members (Methods)

public:
TClassStreamer(ClassStreamerFunc_t pointer)
TClassStreamer(const TClassStreamer& rhs)
virtual~TClassStreamer()
virtual TClassStreamer*Generate() const
virtual const TClass*GetOnFileClass() const
virtual voidoperator()(TBuffer& b, void* objp)
TClassStreamer&operator=(const TClassStreamer&)
virtual voidSetOnFileClass(const TClass* cl)
virtual voidStream(TBuffer& b, void* objp, const TClass* onfileClass)
protected:
TClassStreamer()

Data Members

protected:
TClassReffOnFileClass
private:
ClassStreamerFunc_tfStreamer

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TClassStreamer()
{}
TClassStreamer(ClassStreamerFunc_t pointer)
{}
TClassStreamer(const TClassStreamer& rhs)
{}
void SetOnFileClass(const TClass* cl)
{ fOnFileClass = const_cast<TClass*>(cl); }
const TClass* GetOnFileClass() const
{ return fOnFileClass; }
TClassStreamer * Generate() const
 Virtual copy constructor.
virtual ~TClassStreamer()
{}
void operator()(TBuffer& b, void* objp)
 The address passed to operator() will be the address of the start of the
 object.
void Stream(TBuffer& b, void* objp, const TClass* onfileClass)
 The address passed to operator() will be the address of the start of the
 object.   Overload this routine, if your derived class can optimize
 the handling of the onfileClass (rather than storing and restoring from the
 fOnFileClass member.