////////////////////////////////////////////////////////////////////// /// (C)opyright 2004 /// /// Institute of Computer Science V /// Prof. Männer /// University of Mannheim, Germany /// /// ******************************************************************* /// /// Designer(s): Steinle / Gläß /// /// ******************************************************************* /// /// Project: Trackfinder for CBM-Project at GSI-Darmstadt, Germany /// /// ******************************************************************* /// /// Description: /// /// class: /// - consists of the hits and a special addon for the special memory /// /// ******************************************************************* /// /// $Author: csteinle $ /// $Date: 2006/07/17 11:27:34 $ /// $Revision: 1.1 $ /// ////////////////////////////////////////////////////////////////////// #ifndef _INPUTHITSTLVECTOR_H #define _INPUTHITSTLVECTOR_H #include "../include/trackfinderInputHit.h" #include /* ************************************************************** * CLASS inputHitStlList * * **************************************************************/ class inputHitStlList { protected: std::list stlList; /**< Memory to store the added pointers to the hits. */ std::list::iterator activeObjectPointer; /**< Iterator to access the memory. */ public: /** * Default constructor */ inputHitStlList(); /** * Constructor */ inputHitStlList(const inputHitStlList& value); /** * Destructor */ virtual ~inputHitStlList(); /** * operator = () */ const inputHitStlList& operator = (const inputHitStlList& value); /** * sets the activeObject to the initial value */ void resetActiveObject(); /** * method clears the memory */ void clear(); /** * method returns the number of entries */ unsigned short getNumberOfEntries(); /** * method pushes the element at the end of the memory. */ bool push(trackfinderInputHit* hit); /** * returns a reference of the activeObject and set the next one * to the active object. */ trackfinderInputHit* readActiveObjectAndMakeNextOneActive(); }; #endif