// **************** List ************ 179: // Ogólny
// **************** List ************
179: // Ogólny wzorzec listy
180: // Działa z każdym obiektem numerowanym
181: // ***********************************
182: template
183: class List
184: {
185: public:
186: List();
187: ~List();
188:
189: T* Find(int & position, int ObjectNumber) const;
190: T* GetFirst() const;
191: void Insert(T *);
192: T* operator[](int) const;
193: int GetCount() const { return itsCount; }
194: private:
195: Node * pHead;
196: int itsCount;
197: };
198:
199: // Implementacje dla list…