Classes |
Public Member Functions |
Private Member Functions |
Private Attributes |
List of all members
concepts::Pool< T > Class Template Reference
Pool for blockwise memory allocation. More...
#include <pool.hh>
Classes | |
| union | link |
Public Member Functions | |
| T * | alloc () |
| Returns a pointer to a available location. More... | |
| float | memory () const |
| Pool (unsigned sz=0) | |
| Constructor. More... | |
| ~Pool () | |
Private Member Functions | |
| void | operator= (Pool &) |
| Pool (Pool &) | |
Private Attributes | |
| void * | blk |
| const unsigned | blkSz |
| unsigned | free |
| Stores the number of free entries. More... | |
| T * | next |
Detailed Description
template<class T>
class concepts::Pool< T >
Pool for blockwise memory allocation.
A chunk of memory is allocated and returned piecewise. If all space is used up, new space is allocated.
Constructor & Destructor Documentation
◆ Pool() [1/2]
template<class T >
|
private |
◆ Pool() [2/2]
template<class T >
|
inline |
◆ ~Pool()
template<class T >
| concepts::Pool< T >::~Pool |
Member Function Documentation
◆ alloc()
template<class T >
| T * concepts::Pool< T >::alloc |
◆ memory()
template<class T >
| float concepts::Pool< T >::memory |
◆ operator=()
template<class T >
|
private |
Member Data Documentation
◆ blk
template<class T >
|
private |
◆ blkSz
template<class T >
|
private |
◆ free
template<class T >
|
private |
◆ next
template<class T >
|
private |
The documentation for this class was generated from the following file:
- toolbox/pool.hh

