NiHu  2.0
NiHu::pool< C, MaxOrder > Class Template Reference

Class storing a vector of class instances. More...

#include <pool_pattern.hpp>

Public Member Functions

 pool (void)
 constructor
 
 ~pool (void)
 destructor
 
const Coperator[] (unsigned idx) const
 Index operator. More...
 

Detailed Description

template<class C, unsigned MaxOrder>
class NiHu::pool< C, MaxOrder >

Class storing a vector of class instances.

Template Parameters
Cthe stored class
MaxOrderthe 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.

Member Function Documentation

◆ operator[]()

template<class C , unsigned MaxOrder>
const C& NiHu::pool< C, MaxOrder >::operator[] ( unsigned  idx) const
inline

Index operator.

Parameters
[in]idxElement index
Returns
The indexed element

Definition at line 63 of file pool_pattern.hpp.


The documentation for this class was generated from the following file: