Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

ContainedObject Class Reference

All classes that their objects may be contained in an LHCb ObjectContainer (e.g. More...

#include <GaudiKernel/ContainedObject.h>

List of all members.

Public Methods

virtual const CLIDclID () const
 Retrieve pointer to class identifier. More...

const ObjectContainerBaseparent () const
 Access to parent object. More...

void setParent (ObjectContainerBase* value)
 Update parent member. More...

long distance () const
 Distance in the parent container. More...

virtual StreamBufferserialize ( StreamBuffer& s ) const
 Serialize the object for writing. More...

virtual StreamBufferserialize ( StreamBuffer& s )
 Serialize the object for reading. More...

virtual std::ostream& fillStream ( std::ostream& s ) const
 Fill the output stream (ASCII). More...


Static Public Methods

const CLIDclassID ()

Protected Methods

 ContainedObject ()
 Constructors. More...

 ContainedObject (const ContainedObject&)
 Copy constructor. More...

virtual ~ContainedObject ()
 Destructor. More...

ContainedObject& operator= (const ContainedObject&)
 Clone operator. More...


Private Attributes

ObjectContainerBasem_parent
 Pointer to the parent. More...


Friends

class  ObjectVector< ContainedObject >
class  ObjectList< ContainedObject >
std::ostream& operator<< ( std::ostream& s, const ContainedObject& obj )
 Output operator(ASCII). More...


Detailed Description

All classes that their objects may be contained in an LHCb ObjectContainer (e.g.

ObjectVector, or ObjectList), have to inherit from the class ContainedObject. It guarantees the navigability from the contained object back to its container.

Author(s):
Pavel Binko

Definition at line 31 of file ContainedObject.h.


Constructor & Destructor Documentation

ContainedObject::ContainedObject ( ) [inline, protected]
 

Constructors.

Definition at line 39 of file ContainedObject.h.

ContainedObject::ContainedObject ( const ContainedObject & ) [inline, protected]
 

Copy constructor.

Definition at line 42 of file ContainedObject.h.

ContainedObject::~ContainedObject ( ) [inline, protected, virtual]
 

Destructor.

Definition at line 93 of file ContainedObject.h.


Member Function Documentation

const CLID & ContainedObject::clID ( ) const [inline, virtual]
 

Retrieve pointer to class identifier.

Definition at line 54 of file ContainedObject.h.

const CLID & ContainedObject::classID ( ) [inline, static]
 

Definition at line 55 of file ContainedObject.h.

Referenced by clID().

long ContainedObject::distance ( ) const [inline]
 

Distance in the parent container.

Definition at line 63 of file ContainedObject.h.

std::ostream & ContainedObject::fillStream ( std::ostream & s ) const [inline, virtual]
 

Fill the output stream (ASCII).

Definition at line 79 of file ContainedObject.h.

Referenced by operator<<().

ContainedObject & ContainedObject::operator= ( const ContainedObject & ) [inline, protected]
 

Clone operator.

Definition at line 47 of file ContainedObject.h.

const ObjectContainerBase * ContainedObject::parent ( ) const [inline]
 

Access to parent object.

Definition at line 58 of file ContainedObject.h.

Referenced by SmartRef::SmartRef(), and SmartRef::operator()().

StreamBuffer & ContainedObject::serialize ( StreamBuffer & s ) [inline, virtual]
 

Serialize the object for reading.

Definition at line 70 of file ContainedObject.h.

StreamBuffer & ContainedObject::serialize ( StreamBuffer & s ) const [inline, virtual]
 

Serialize the object for writing.

Definition at line 66 of file ContainedObject.h.

void ContainedObject::setParent ( ObjectContainerBase * value ) [inline]
 

Update parent member.

Definition at line 60 of file ContainedObject.h.


Friends And Related Function Documentation

class ObjectList [friend]
 

Definition at line 35 of file ContainedObject.h.

class ObjectVector [friend]
 

Allow the container classes access to protected members.

Definition at line 34 of file ContainedObject.h.

std::ostream & operator<< ( std::ostream & s,
const ContainedObject & obj ) [friend]
 

Output operator(ASCII).

Definition at line 75 of file ContainedObject.h.


Member Data Documentation

ObjectContainerBase * ContainedObject::m_parent [private]
 

Pointer to the parent.

Definition at line 89 of file ContainedObject.h.


The documentation for this class was generated from the following file:
Generated at Wed Nov 21 12:22:09 2001 by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000