A pool template class.
More...
#include <murl_pool.h>
template<class DataType>
class Murl::Pool< DataType >
A pool template class.
◆ ValueType
The template parameter value type.
◆ Pool()
The default constructor.
Create an empty pool.
◆ Acquire()
Acquire an item.
Get an item from the pool or allocate a new one.
- Returns
- The item.
◆ Release() [1/2]
template<class DataType>
void Murl::Pool< DataType >::Release |
( |
DataType * |
item | ) |
|
|
inline |
Release an acquired item.
Put the item to the pool.
- Parameters
-
item | The acquired item to put into the pool. |
◆ Release() [2/2]
Release an array of acquired items.
Put the items to the pool.
- Parameters
-
items | The acquired items to put into the pool. |
◆ mFreeItems
◆ mTotalNumberOfItems
The number of created items.
The documentation for this class was generated from the following file: