template<typename TYPES, class COUNTER = NoInstantiationCount>
class lib::SimpleAllocator< TYPES, COUNTER >
Frontend for explicit allocations, using a custom allocator.
This template is to be instantiated for the collection of types later to be allocated through this custom memory manager/model. It provides convenience shortcuts for placement-construction and releasing of target objects.
- Todo:
- currently (as of 8/09) the low-level pooled allocator isn't implemented; instead we do just heap allocations. ////////////////////////////////////////////////////////////////////////////////////////////Ticket #835
Definition at line 145 of file simple-allocator.hpp.
|
template<class XX > |
XX * | create () |
|
template<class XX , typename P1 > |
XX * | create (P1 &p1) |
|
template<class XX , typename P1 , typename P2 > |
XX * | create (P1 &p1, P2 &p2) |
|
template<class XX , typename P1 , typename P2 , typename P3 > |
XX * | create (P1 &p1, P2 &p2, P3 &p3) |
|
template<class XX , typename P1 , typename P2 , typename P3 , typename P4 > |
XX * | create (P1 &p1, P2 &p2, P3 &p3, P4 &p4) |
|
template<class XX , typename P1 , typename P2 , typename P3 , typename P4 , typename P5 > |
XX * | create (P1 &p1, P2 &p2, P3 &p3, P4 &p4, P5 &p5) |
|
template<class XX > |
void | destroy (XX *entry) |
|
template<class XX > |
size_t | numSlots () const |
| diagnostics
|
|