Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

PXXObject Class Reference

#include <PXXObject.h>

Inheritance diagram for PXXObject:

TObject PXXDOMID8B PXXPayloadFactory PXXRecordTypeRegistry PXXSourceID4B PXXUnpackerUtil PXXUTCTime8B PXXVDecoder PXXVUnpackable List of all members.

Public Member Functions

 SET_LOGGER ("PXXObject")
 PXXObject ()
 PXXObject (const PXXObject &org)
PXXObjectoperator= (const PXXObject &orig)
const PXXObjectoperator= (const PXXObject &orig) const
virtual ~PXXObject ()
virtual void SetOwnerPtr (void *ownerptr)
virtual const void * GetOwnerPtr () const
virtual void InitializePointer (PXXObjectPtr objptr)
virtual void Delete (PXXObjectPtr objptr)
virtual string GetTypeName () const
virtual void SetTypeName (const string &s)

Constructor & Destructor Documentation

PXXObject::PXXObject  ) 
 

Constructor

PXXObject::PXXObject const PXXObject org  )  [inline]
 

Copy constructor. DO NOT COPY fMyOwnerPtr_.

virtual PXXObject::~PXXObject  )  [inline, virtual]
 

Destructor.


Member Function Documentation

virtual void PXXObject::Delete PXXObjectPtr  objptr  )  [virtual]
 

Delete is a wrapper function for delete operator. It deletes ROOT pointer, but not delete shared_pointer. It checks whether the object is owner of objptr or not: if (this == objptr->GetOwnerPtr()) { then delete objptr only when the if test is true.

virtual const void* PXXObject::GetOwnerPtr  )  const [inline, virtual]
 

Return its owner which is used to check owner.

virtual string PXXObject::GetTypeName  )  const [inline, virtual]
 

Get type name. Type name doesn't have to be same as class name.

virtual void PXXObject::InitializePointer PXXObjectPtr  objptr  )  [virtual]
 

Initialize a pointer to 0. Currently, only ROOT pointer is required initialize.

const PXXObject& PXXObject::operator= const PXXObject orig  )  const [inline]
 

PXXObject& PXXObject::operator= const PXXObject orig  )  [inline]
 

operator=. DO NOT COPY fMyOwnerPtr_.

PXXObject::SET_LOGGER "PXXObject"   ) 
 

Reimplemented in PXXUnpackerUtil.

virtual void PXXObject::SetOwnerPtr void *  ownerptr  )  [virtual]
 

Set pointer to owner. Only the owner can execute delete for its datamembers. You should call it only when you create an object with "new" operator.

virtual void PXXObject::SetTypeName const string &  s  )  [inline, virtual]
 

Set type name. Type name doesn't have to same as class name.


The documentation for this class was generated from the following file:


Generated on Thu Nov 10 14:06:36 2005 by doxygen version 1.4.1