NiHu
2.0
|
Class storing a vector of class instances. More...
#include <pool_pattern.hpp>
Public Member Functions | |
pool (void) | |
constructor | |
~pool (void) | |
destructor | |
const C & | operator[] (unsigned idx) const |
Index operator. More... | |
Class storing a vector of class instances.
C | the stored class |
MaxOrder | the array size |
In order to create a pool, the stored type C
must have a constructor that can take one integer as a parameter.
Definition at line 41 of file pool_pattern.hpp.
|
inline |
Index operator.
[in] | idx | Element index |
Definition at line 63 of file pool_pattern.hpp.