home *** CD-ROM | disk | FTP | other *** search
- #ifndef __RWTQUEUE_H__
- #define __RWTQUEUE_H__
- pragma push_align_members(64);
-
- /*
- * Parameterized queue of T's, implemented using class C.
- *
- * $Header: E:/vcs/rw/tqueue.h_v 1.2 15 Mar 1992 12:47:32 KEFFER $
- *
- ****************************************************************************
- *
- * Rogue Wave Software, Inc.
- * P.O. Box 2328
- * Corvallis, OR 97339
- *
- * Copyright (C) 1992. This software is subject to copyright
- * protection under the laws of the United States and other countries.
- *
- ***************************************************************************
- *
- * $Log: E:/vcs/rw/tqueue.h_v $
- *
- * Rev 1.2 15 Mar 1992 12:47:32 KEFFER
- *
- * Rev 1.0 02 Mar 1992 16:10:52 KEFFER
- * Initial revision.
- */
-
- //$DECLARE_TEMPLATE
-
- #ifndef __RWDEFS_H__
- # include "rw/defs.h"
- #endif
-
- template <class T, class C> class RWExport RWTQueue : private C {
-
- public:
-
- RWTQueue() { }
-
- C::clear;
- C::entries;
- C::first;
- T get() {return C::removeFirst();}
- C::isEmpty;
- void insert(T a) {C::append(a);}
- C::last;
- };
-
- pragma pop_align_members();
- #endif /* __RWTQUEUE_H__ */
-