aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bufferarray.h
blob: 089eb4e0164952173a71d14747b8400193826980 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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