class TVirtualArray


Wrapper around an object and giving indirect access to its content
even if the object is not of a class in the Cint/Reflex dictionary.

Function Members (Methods)

TVirtualArray(const TVirtualArray&)
TVirtualArray(TClass* cl, UInt_t size)
char*GetObjectAt(UInt_t ind) const
TVirtualArray&operator=(const TVirtualArray&)
char*operator[](UInt_t ind) const

Data Members


Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TVirtualArray(TClass* cl, UInt_t size)
{ if (fClass) fClass->DeleteArray( fArray ); }
TClass * GetClass()
{ return fClass; }
char * operator[](UInt_t ind) const
{ return GetObjectAt(ind); }
char * GetObjectAt(UInt_t ind) const
{ return fArray+fClass->Size()*ind; }

Author: Philippe Canal July, 2008
Last change: root/io:$Id: TVirtualArray.h 25450 2008-09-18 21:13:42Z pcanal $
Last generated: 2008-09-19 09:33
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.