diff options
author | Fritz Elfert <felfert@to.com> | 1999-06-28 08:56:01 +0000 |
---|---|---|
committer | Fritz Elfert <felfert@to.com> | 1999-06-28 08:56:01 +0000 |
commit | 34b70b0b46e34a73308a4034cc9b1c70209b9eb4 (patch) | |
tree | 7abe8be40fde08828d3606e13c41435b2fc9a26c /lib/bufferarray.h | |
parent | 3d3be141551bb4622da1cb610e4f6f798dd1715e (diff) | |
download | plptools-34b70b0b46e34a73308a4034cc9b1c70209b9eb4.tar.gz plptools-34b70b0b46e34a73308a4034cc9b1c70209b9eb4.tar.bz2 plptools-34b70b0b46e34a73308a4034cc9b1c70209b9eb4.zip |
First import.
Diffstat (limited to 'lib/bufferarray.h')
-rw-r--r-- | lib/bufferarray.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/lib/bufferarray.h b/lib/bufferarray.h new file mode 100644 index 0000000..089eb4e --- /dev/null +++ b/lib/bufferarray.h @@ -0,0 +1,25 @@ +#ifndef _bufferarray_h +#define _bufferarray_h + +#include "bool.h" +class bufferStore; + +class bufferArray { +public: + bufferArray(); + bufferArray(const bufferArray &a); + ~bufferArray(); + void operator =(const bufferArray &a); + + bool empty() const; + bufferStore popBuffer(); + void pushBuffer(const bufferStore& b); +private: + long len; + long lenAllocd; + bufferStore* buff; +}; + +inline bool bufferArray::empty() const { return len == 0; } + +#endif |