Gudhi::persistence_matrix::Pool_cell_constructor< Cell > Struct Template Reference

Cell factory. Uses Gudhi::Simple_object_pool, which is based on boost::object_pool, to construct and destroy cell pointer. More...

Public Member Functions

 Pool_cell_constructor ()
 Default constructor.
 
 Pool_cell_constructor (const Pool_cell_constructor &col)
 Copy constructor. More...
 
 Pool_cell_constructor (Pool_cell_constructor &&col)
 Move constructor. More...
 
template<class... U>
Cellconstruct (U &&... u)
 Constructs a cell with the given cell arguments. More...
 
void destroy (Cell *cell)
 Destroyes the given cell. More...
 
Pool_cell_constructoroperator= (const Pool_cell_constructor &other)
 Assign operator.
 

Friends

void swap (Pool_cell_constructor &col1, Pool_cell_constructor &col2)
 Swap operator.
 

Detailed Description

template<class Cell>
struct Gudhi::persistence_matrix::Pool_cell_constructor< Cell >

Cell factory. Uses Gudhi::Simple_object_pool, which is based on boost::object_pool, to construct and destroy cell pointer.

Template Parameters
CellCell with the right templates.

Constructor & Destructor Documentation

◆ Pool_cell_constructor() [1/2]

Copy constructor.

Parameters
colFactory to copy.

◆ Pool_cell_constructor() [2/2]

Move constructor.

Parameters
colFactory to move.

Member Function Documentation

◆ construct()

template<class Cell >
template<class... U>
Cell* Gudhi::persistence_matrix::Pool_cell_constructor< Cell >::construct ( U &&...  u)
inline

Constructs a cell with the given cell arguments.

Parameters
uArguments forwarded to the Cell constructor.
Returns
Cell pointer.

◆ destroy()

template<class Cell >
void Gudhi::persistence_matrix::Pool_cell_constructor< Cell >::destroy ( Cell cell)
inline

Destroyes the given cell.

Parameters
cellCell pointer.

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