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

bqueue.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 BQUEUE_H
00012 #define BQUEUE_H
00013 
00014 #include "bqueuet.h"
00015 
00016 class bqueue : private bqueueT<char>
00017 {
00018 public:
00019   bqueue(unsigned int sz, unsigned int tokenSize);
00020   ~bqueue();
00021 
00022   void put(const void* p, unsigned int n);
00023   void get(      void* p, unsigned int n);
00024 
00025   unsigned int size() const;
00026   unsigned int data() const;
00027   unsigned int room() const;
00028 
00029   void resize(unsigned int sz);
00030 
00031 private:
00032   unsigned int tsize;
00033   unsigned int nsize;
00034   unsigned int ndata;
00035 };
00036 
00037 #include "bqueue.cc"
00038 
00039 #endif

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