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)
virtual~TClassStreamer()
virtual TClassStreamer*Generate() const
virtual const TClass*GetOnFileClass() const
virtual voidoperator()(TBuffer& b, void* objp)
virtual voidSetOnFileClass(const TClass* cl)
virtual voidStream(TBuffer& b, void* objp, const TClass* onfileClass)

Data Members

protected:
TClassReffOnFileClass
private:
ClassStreamerFunc_tfStreamer

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TClassStreamer()
{}
TClassStreamer(const TClassStreamer& rhs)
{}
TClassStreamer & operator=(const TClassStreamer& rhs)
{ fOnFileClass = rhs.fOnFileClass; fStreamer = rhs.fStreamer; return *this; }
TClassStreamer(ClassStreamerFunc_t pointer)
{}
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.