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

Public Methods | |
| virtual int | AreYouA (const lcore::ClassIdent &cid) const |
| Asks if a class is of a particular type, or publicly derived from that type. | |
| virtual bool | invariant () const=0 |
| This should ALWAYS return true. It says whether the class invariant holds or not. | |
| virtual void | printState (std::ostream &os) const=0 |
| virtual void | resize (unsigned int newsize)=0 throw (std::bad_alloc) |
| Change the size of the chunk to newsize. | |
Static Public Attributes | |
| const STR_ClassIdent | identifier |
| Globally unique identifier for this class. | |
Protected Methods | |
| virtual const lcore::ClassIdent * | i_GetIdent () const |
| Returns the class identifier for the class the object actually is. | |
| void | i_destruct (const U1Byte *const preallocbuf) |
| void | i_resize (const unsigned int newsize, const unsigned int prebufsize, U1Byte *const preallocbuf) throw (std::bad_alloc) |
| bool | i_invariant (const unsigned int prebufsize, const void *const prebuf) const |
| void | i_printState (std::ostream &os, const unsigned int prebufsize, const void *const prebuf) const |
Definition at line 41 of file PreAllocBuffer.h.
|
|
Asks if a class is of a particular type, or publicly derived from that type. Overriden in every derived class (with a static identifier member) to compare against the identifier, then call the AreYouA methods of all the superclasses.
Reimplemented from strmod::strmod::BufferChunk. Definition at line 105 of file PreAllocBuffer.h. |
|
|
Returns the class identifier for the class the object actually is. Should always be overridden in any class that has a static identifier member. Reimplemented from strmod::strmod::BufferChunk. Definition at line 63 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. Reimplemented from strmod::strmod::BufferChunk. Implemented in strmod::strmod::PreAllocBuffer< TInitialAlloc >, and strmod::strmod::PreAllocBuffer< 48 >. |
|
|
Change the size of the chunk to newsize. Throws bad_alloc if the allocation fails, just like operator new. Implements strmod::strmod::BufferChunk. Implemented in strmod::strmod::PreAllocBuffer< TInitialAlloc >, and strmod::strmod::PreAllocBuffer< 48 >. |
|
|
Globally unique identifier for this class. Every class that might need to be identified should have a public static const identifier object in it. Reimplemented from strmod::strmod::BufferChunk. |
1.3-rc1