Add a bunch of APNs
Fork of C027_Support by
Diff: Pipe.h
- Revision:
- 41:b94a1f410e71
- Parent:
- 40:295099ff5338
- Child:
- 74:208e3e32d263
diff -r 295099ff5338 -r b94a1f410e71 Pipe.h --- a/Pipe.h Fri Apr 11 19:39:08 2014 +0000 +++ b/Pipe.h Fri Apr 11 19:41:05 2014 +0000 @@ -24,7 +24,7 @@ /** Destructor frees a allocated buffer. */ - virtual ~Pipe(void) + ~Pipe(void) { if (_a) delete [] _a; @@ -129,7 +129,7 @@ /** Get the number of values available in the buffer return the number of element available */ - virtual int size(void) + int size(void) { int s = _w - _r; if (s < 0) @@ -156,7 +156,7 @@ \param t set to true if blocking, false otherwise \return number elements extracted */ - virtual int get(T* p, int n, bool t = false) + int get(T* p, int n, bool t = false) { int c = n; while (c) @@ -191,7 +191,7 @@ \param ix the index to set. \return the number of elements starting at this position */ - virtual int set(int ix) + int set(int ix) { int sz = size(); ix = (ix > sz) ? sz : ix; @@ -202,7 +202,7 @@ /** get the next element from parsing position and increment parsing index \return the extracted element. */ - virtual T next(void) + T next(void) { int o = _o; T t = _b[o]; @@ -212,7 +212,7 @@ /** commit the index, mrk the current parsing index as consumed data. */ - virtual void done(void) + void done(void) { _r = _o; }