seams-core v2.14.0
libyodaLib, the C++ engine of d-SEAMS
Loading...
Searching...
No Matches
seams::Rings::iterator Class Reference

Input iterator. More...

#include <include/seams.hpp>

Public Types

using value_type = std::vector<int>
using difference_type = std::ptrdiff_t

Public Member Functions

 iterator (const Rings *owner, int index)
value_type operator* () const
iterator & operator++ ()
bool operator== (const iterator &other) const
bool operator!= (const iterator &other) const

Detailed Description

Input iterator.

operator* copies one ring.

Definition at line 778 of file seams.hpp.

Member Typedef Documentation

◆ difference_type

Definition at line 781 of file seams.hpp.

◆ value_type

using seams::Rings::iterator::value_type = std::vector<int>

Definition at line 780 of file seams.hpp.

Constructor & Destructor Documentation

◆ iterator()

seams::Rings::iterator::iterator ( const Rings * owner,
int index )
inline

Definition at line 782 of file seams.hpp.

782: owner_(owner), index_(index) {}

Member Function Documentation

◆ operator!=()

bool seams::Rings::iterator::operator!= ( const iterator & other) const
inlinenodiscard

Definition at line 789 of file seams.hpp.

789{ return !(*this == other); }

◆ operator*()

value_type seams::Rings::iterator::operator* ( ) const
inlinenodiscard

Definition at line 783 of file seams.hpp.

783{ return owner_->vertices(index_); }

◆ operator++()

iterator & seams::Rings::iterator::operator++ ( )
inline

Definition at line 784 of file seams.hpp.

784 {
785 ++index_;
786 return *this;
787 }

◆ operator==()

bool seams::Rings::iterator::operator== ( const iterator & other) const
inlinenodiscard

Definition at line 788 of file seams.hpp.

788{ return index_ == other.index_; }

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