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

Cell factory. Constructs and destroyes cell pointers with new and delete. More...

Public Member Functions

 New_cell_constructor ()
 Default constructor.
 
template<class... U>
Cellconstruct (U &&... u) const
 Constructs a cell with the given cell arguments. More...
 
void destroy (Cell *cell) const
 Destroyes the given cell. More...
 

Friends

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

Detailed Description

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

Cell factory. Constructs and destroyes cell pointers with new and delete.

Template Parameters
CellCell with the right templates.

Member Function Documentation

◆ construct()

template<class Cell >
template<class... U>
Cell* Gudhi::persistence_matrix::New_cell_constructor< Cell >::construct ( U &&...  u) const
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::New_cell_constructor< Cell >::destroy ( Cell cell) const
inline

Destroyes the given cell.

Parameters
cellCell pointer.

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