Main Page | Class Hierarchy | Compound List | File List | Compound Members | File Members

bqueuet.h

Go to the documentation of this file.
00001 /*--------------------------------------------------------------------
00002  *
00003  * (C) Copyright Koninklijke Philips Electronics NV 2006. 
00004  * All rights reserved. This software is licensed under the terms of
00005  * version 2.1 of the GNU Lesser General Public License as published 
00006  * by the Free Software Foundation. For licensing and warranty
00007  * information, see the file COPYING in the main directory.
00008  *
00009  *------------------------------------------------------------------*/
00010 
00011 #ifndef BQUEUET_H
00012 #define BQUEUET_H
00013 
00014 template<class T>
00015 class bqueueT
00016 {
00017 public:
00018   bqueueT(unsigned int sz);
00019   ~bqueueT();
00020 
00021   void put(const T& value);
00022   void get(      T& value);
00023 
00024   void put(const T* p, unsigned int n);
00025   void get(      T* p, unsigned int n);
00026 
00027   unsigned int size() const;
00028   unsigned int data() const;
00029   unsigned int room() const;
00030 
00031   void resize(unsigned int sz);
00032 
00033 private:
00034   T* begin;
00035   T* end;
00036   T* r;
00037   T* w;
00038   unsigned int d;
00039 };
00040 
00041 #include "bqueuet.cc"
00042 
00043 #endif

Generated on Wed Feb 15 14:52:38 2006 for yapi by doxygen 1.3.2