| # Gaudi Framework, version v20r2
Generated: 18 Jul 2008

- Main Page
- Namespaces
- Classes
- Files
- Directories
- Related Pages

- Search for |

- File List
- File Members

# ObjectContainerBase.h

Go to the documentation of this file.

    00001 // $Header: /local/reps/Gaudi/GaudiKernel/GaudiKernel/ObjectContainerBase.h,v 1.4 2001/11/12 08:42:59 mato Exp $
    00002 #ifndef GAUDI_OBJECTCONTAINERBASE_H
    00003 #define GAUDI_OBJECTCONTAINERBASE_H 1
    00004
    00005 // Include files
    00006 #include "GaudiKernel/Kernel.h"
    00007 #include "GaudiKernel/DataObject.h"
    00008
    00009 // Forward declarations
    00010 class ContainedObject;
    00011
    00020 class ObjectContainerBase : public DataObject  {
    00021
    00022 protected:
    00023
    00025   ObjectContainerBase() { }
    00026
    00028   virtual ~ObjectContainerBase() { }
    00029
    00030 public:
    00031
    00033   virtual long index( const ContainedObject* obj ) const = 0;
    00034
    00036   virtual ContainedObject* containedObject( long dist ) const = 0;
    00037
    00039   virtual long numberOfObjects() const = 0;
    00040
    00044   virtual long add(ContainedObject* pObject) = 0;
    00045
    00049   virtual long remove(ContainedObject* value) = 0;
    00050
    00051 private:
    00052 };
    00053
    00054 #endif    // GAUDI_OBJECTCONTAINERBASE_H