HGL::Common::RAIIFactory< T, arrayDel, Container, capacity > Class Template Reference
[Utility classes]

Template to implement a RAII factory. More...

#include <raiifactory.h>

Inheritance diagram for HGL::Common::RAIIFactory< T, arrayDel, Container, capacity >:
Inheritance graph
[legend]

List of all members.


Detailed Description

template<class T, bool arrayDel = false, class Container = std::vector<const T *>, std::size_t capacity = 50>
class HGL::Common::RAIIFactory< T, arrayDel, Container, capacity >

Template to implement a RAII factory.

Note:
There exists an specialisation for std::set to improve performance if there are mostly calls to RAIIFactory::release
Template Parameters:
T the type to keep track of
arrayDel flag to indicate that T is an array
Container type of container to store references
capacity the capacity to hold before minimizing the memory usage
Author:
Heiko Schäfer <heiko@hgl.rangun.de>

Generated on 9 Apr 2014 for hgl 0.5.26~svn by  doxygen 1.6.1