CGAL 6.1 - Homological Discrete Vector Fields
Loading...
Searching...
No Matches
Filtration::iterator Struct Reference

#include <Concepts/Filtration.h>

Definition

The iterator over filtration.

Iterate the filtration by increasing degrees.

Public Types

using iterator_category = std::forward_iterator_tag
 
using difference_type = std::ptrdiff_t
 
using value_type = FiltrationIterValue
 

Public Member Functions

 iterator (const Filtration &f, size_t i=0)
 Iterator constructor.
 
value_type operator* () const
 Dereference operator.
 
size_t time () const
 Gets the index (time) associated to the iterator.
 
CellDim cell_dim () const
 Gets the CellDim (cell and its dimension) associated to the iterator.
 
DegreeType degree () const
 Gets the degree associated to the iterator.
 
iteratoroperator++ ()
 Prefix incrementation.
 
iterator operator++ (int)
 Postfix incrementation.
 

Friends

bool operator== (const iterator &a, const iterator &b)
 Equality check.
 
bool operator!= (const iterator &a, const iterator &b)
 Inequality check.
 

Member Function Documentation

◆ operator++()

iterator & Filtration::iterator::operator++ ( )

Prefix incrementation.

Move to next index in the filtration.

Friends And Related Function Documentation

◆ operator!=

bool operator!= ( const iterator a,
const iterator b 
)
friend

Inequality check.

Returns
True if the indices are different.

◆ operator==

bool operator== ( const iterator a,
const iterator b 
)
friend

Equality check.

Returns
True if the indices are equal.