#include <StrMod/PreAllocBuffer.h>
Inheritance diagram for strmod::strmod::PreAllocBuffer< TInitialAlloc >:

Public Methods | |
| virtual bool | invariant () const |
| This should ALWAYS return true. It says whether the class invariant holds or not. | |
| virtual void | printState (std::ostream &os) const |
| virtual void | resize (unsigned int newsize) throw (std::bad_alloc) |
| Change the size of the chunk to newsize. | |
Definition at line 83 of file PreAllocBuffer.h.
|
|||||||||
|
This should ALWAYS return true. It says whether the class invariant holds or not. Your class invariant should be as strict as possible. The class invariant is used to detect when the class goes into a bad state, so all possible bad states should be caught by the invariant. Implements strmod::strmod::PreAllocBufferBase. Definition at line 124 of file PreAllocBuffer.h. |
|
||||||||||
|
Change the size of the chunk to newsize. Throws bad_alloc if the allocation fails, just like operator new. Implements strmod::strmod::PreAllocBufferBase. Definition at line 137 of file PreAllocBuffer.h. |
1.3-rc1