diff options
Diffstat (limited to 'gnu/lib/libg++/g++-include/gen/OXPBag.hP')
-rw-r--r-- | gnu/lib/libg++/g++-include/gen/OXPBag.hP | 76 |
1 files changed, 0 insertions, 76 deletions
diff --git a/gnu/lib/libg++/g++-include/gen/OXPBag.hP b/gnu/lib/libg++/g++-include/gen/OXPBag.hP deleted file mode 100644 index 5542a273dc3..00000000000 --- a/gnu/lib/libg++/g++-include/gen/OXPBag.hP +++ /dev/null @@ -1,76 +0,0 @@ -#ifndef _<T>OXPBag_h -#ifdef __GNUG__ -#pragma once -#pragma interface -#endif -#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(); -}; - - -#if defined(__OPTIMIZE__) || defined(USE_LIBGXX_INLINES) - -inline <T>OXPBag::<T>OXPBag(int chunksize) - : 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 -#endif |