//*-- Author : Valeriy Onuchin 11/09/2000
//
//
////////////////////////////////////////////////////////////////////////////////
//
// rooVArrayRefType corresponds to VArray_Ref_Type Class
//
// The class rooVArrayRefType represents descriptors for object-reference VArray
// types. An instance of this class is called an object-reference-VArray type
// descriptor.
//
// An instance of this class provides information about a particular
// object-reference VArray type, called its described type. An object-reference
// VArray type is a variable-size array type whose elements are
// object-references to instances of a particular persistence-capable referenced
// class.
//
// You should never instantiate this class directly. Instead, you can obtain an
// object-reference-VArray type descriptor either from the module descriptor
// for the top-level module or from an attribute descriptor for an
// object-reference VArray attribute. Typically, you obtain an instance by
// calling the inherited type_of member function of an attribute descriptor.
#include "rooObjy.h"
#include <ooas.h>
#include <oo.h>
ClassImp(rooVArrayRefType)
////////////////////////////////////////////////////////////////////////////////
//______________________________________________________________________________
rooVArrayRefType::rooVArrayRefType()
{
// default ctor., for internal use only
fImp = 0;
}
//______________________________________________________________________________
rooVArrayRefType::~rooVArrayRefType()
{
// dtor., for internal use only
fImp = 0;
}
//______________________________________________________________________________
const rooRefType & rooVArrayRefType::element_ref_type()
{
// Returns a reference-type descriptor for the object-reference element type.
if(!fImp) return 0;
d_Ref_Type& rtp = ((VArray_Ref_Type*)fImp)->element_ref_type();
if(!rtp) return 0;
if(!fElementRefType) fElementRefType = new rooRefType((void*)&rtp);
fElementRefType->setImp((void*)&rtp);
return *fElementRefType;
}
ROOT page - Class index - Top of the page
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.