Gudhi::persistence_matrix::Cell_field_element< Field_element_type > Class Template Reference

Class managing the value access of a cell. More...

Public Member Functions

 Cell_field_element ()
 Default constructor. Sets to the element to 0.
 
 Cell_field_element (Field_element_type element)
 Stores the given element. More...
 
 Cell_field_element (const Cell_field_element &cell)
 Copy constructor. More...
 
 Cell_field_element (Cell_field_element &&cell) noexcept
 Move constructor. More...
 
Field_element_type & get_element ()
 Returns the value stored in the cell. More...
 
const Field_element_type & get_element () const
 Returns the value stored in the cell. More...
 
void set_element (const Field_element_type &element)
 Sets the value. More...
 
Cell_field_elementoperator= (Cell_field_element other)
 Assign operator.
 

Detailed Description

template<class Field_element_type>
class Gudhi::persistence_matrix::Cell_field_element< Field_element_type >

Class managing the value access of a cell.

Template Parameters
Field_element_typeType of a cell value.

Constructor & Destructor Documentation

◆ Cell_field_element() [1/3]

template<class Field_element_type >
Gudhi::persistence_matrix::Cell_field_element< Field_element_type >::Cell_field_element ( Field_element_type  element)
inline

Stores the given element.

Parameters
columnIndexValue to store.

◆ Cell_field_element() [2/3]

template<class Field_element_type >
Gudhi::persistence_matrix::Cell_field_element< Field_element_type >::Cell_field_element ( const Cell_field_element< Field_element_type > &  cell)
inline

Copy constructor.

Parameters
cellCell to copy.

◆ Cell_field_element() [3/3]

template<class Field_element_type >
Gudhi::persistence_matrix::Cell_field_element< Field_element_type >::Cell_field_element ( Cell_field_element< Field_element_type > &&  cell)
inlinenoexcept

Move constructor.

Parameters
cellCell to move.

Member Function Documentation

◆ get_element() [1/2]

template<class Field_element_type >
Field_element_type& Gudhi::persistence_matrix::Cell_field_element< Field_element_type >::get_element ( )
inline

Returns the value stored in the cell.

Returns
Reference to the value of the cell.

◆ get_element() [2/2]

template<class Field_element_type >
const Field_element_type& Gudhi::persistence_matrix::Cell_field_element< Field_element_type >::get_element ( ) const
inline

Returns the value stored in the cell.

Returns
Const reference to the value of the cell.

◆ set_element()

template<class Field_element_type >
void Gudhi::persistence_matrix::Cell_field_element< Field_element_type >::set_element ( const Field_element_type &  element)
inline

Sets the value.

Parameters
elementValue to store.

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