|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: O T
Length: 1258 (0x4ea) Types: TextFile Names: »OXPBag.hP«
└─⟦a05ed705a⟧ Bits:30007078 DKUUG GNU 2/12/89 └─⟦cc8755de2⟧ »./libg++-1.36.1.tar.Z« └─⟦23757c458⟧ └─⟦this⟧ »libg++/g++-include/OXPBag.hP«
#ifndef _<T>OXPBag_h #pragma once #define _<T>OXPBag_h 1 #include "<T>.Bag.h" #include "<T>.XPlex.h" class <T>OXPBag : public <T>Bag { protected: <T>XPlex p; public: <T>OXPBag(int chunksize = DEFAULT_INITIAL_CAPACITY); <T>OXPBag(const <T>OXPBag&); Pix add(<T&> item); void del(<T&> item); void remove(<T&>item); int nof(<T&> item); int contains(<T&> item); void clear(); Pix first(); void next(Pix& i); <T>& operator () (Pix i); int owns(Pix i); Pix seek(<T&> item, Pix from = 0); int OK(); }; inline <T>OXPBag::<T>OXPBag(int chunksize = DEFAULT_INITIAL_CAPACITY) : p(chunksize) { count = 0; } inline <T>OXPBag::<T>OXPBag(const <T>OXPBag& s) : p(s.p) { count = s.count; } inline Pix <T>OXPBag::first() { return p.first(); } inline void <T>OXPBag::next(Pix & idx) { p.next(idx); } inline <T>& <T>OXPBag::operator ()(Pix idx) { return p(idx); } inline void <T>OXPBag::clear() { count = 0; p.clear(); } inline int <T>OXPBag::owns (Pix idx) { return p.owns(idx); } inline int <T>OXPBag::contains(<T&> item) { return seek(item) != 0; } #endif