OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::MutablePolygon::const_iterator Class Reference

#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/libslic3r/MutablePolygon.hpp>

Collaboration diagram for Slic3r::MutablePolygon::const_iterator:

Public Member Functions

bool operator== (const const_iterator &rhs) const
bool operator!= (const const_iterator &rhs) const
const_iterator & operator-- ()
const_iterator operator-- (int)
const_iterator & operator++ ()
const_iterator operator++ (int)
const_iterator prev () const
const_iterator next () const
bool valid () const
const PointType & operator* () const
const PointType * operator-> () const
const MutablePolygon & polygon () const
IndexType size () const

Private Member Functions

 const_iterator (const MutablePolygon *data, IndexType idx)

Private Attributes

const MutablePolygon * m_data
IndexType m_idx

Friends

class MutablePolygon

Detailed Description

Constructor & Destructor Documentation

◆ const_iterator()

Slic3r::MutablePolygon::const_iterator::const_iterator ( const MutablePolygon * data,
IndexType idx )
inlineprivate
42: m_data(data), m_idx(idx) {}
IndexType m_idx
Definition MutablePolygon.hpp:45
const MutablePolygon * m_data
Definition MutablePolygon.hpp:44

References m_data, m_idx, and MutablePolygon.

Referenced by next(), operator!=(), operator++(), operator++(), operator--(), operator--(), operator==(), and prev().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ next()

const_iterator Slic3r::MutablePolygon::const_iterator::next ( ) const
inline
35{ assert(this->valid()); return { m_data, m_data->at(m_idx).next }; }
bool valid() const
Definition MutablePolygon.hpp:36

References const_iterator(), m_data, m_idx, and valid().

Here is the call graph for this function:

◆ operator!=()

bool Slic3r::MutablePolygon::const_iterator::operator!= ( const const_iterator & rhs) const
inline
29{ return ! (*this == rhs); }

References const_iterator().

Here is the call graph for this function:

◆ operator*()

const PointType & Slic3r::MutablePolygon::const_iterator::operator* ( ) const
inline
37{ return m_data->at(m_idx).point; }

References m_data, and m_idx.

◆ operator++() [1/2]

const_iterator & Slic3r::MutablePolygon::const_iterator::operator++ ( )
inline
32{ assert(this->valid()); m_idx = m_data->at(m_idx).next; return *this; }

References const_iterator(), m_data, m_idx, and valid().

Here is the call graph for this function:

◆ operator++() [2/2]

const_iterator Slic3r::MutablePolygon::const_iterator::operator++ ( int )
inline
33{ const_iterator result(*this); ++(*this); return result; }
const_iterator(const MutablePolygon *data, IndexType idx)
Definition MutablePolygon.hpp:42

References const_iterator().

Here is the call graph for this function:

◆ operator--() [1/2]

const_iterator & Slic3r::MutablePolygon::const_iterator::operator-- ( )
inline
30{ assert(this->valid()); m_idx = m_data->at(m_idx).prev; return *this; }

References const_iterator(), m_data, m_idx, and valid().

Here is the call graph for this function:

◆ operator--() [2/2]

const_iterator Slic3r::MutablePolygon::const_iterator::operator-- ( int )
inline
31{ const_iterator result(*this); --(*this); return result; }

References const_iterator().

Here is the call graph for this function:

◆ operator->()

const PointType * Slic3r::MutablePolygon::const_iterator::operator-> ( ) const
inline
38{ return &m_data->at(m_idx).point; }

References m_data, and m_idx.

◆ operator==()

bool Slic3r::MutablePolygon::const_iterator::operator== ( const const_iterator & rhs) const
inline
28{ assert(m_data == rhs.m_data); assert(this->valid()); return m_idx == rhs.m_idx; }

References const_iterator(), m_data, m_idx, and valid().

Here is the call graph for this function:

◆ polygon()

const MutablePolygon & Slic3r::MutablePolygon::const_iterator::polygon ( ) const
inline
39{ assert(this->valid()); return *m_data; }

References m_data, MutablePolygon, and valid().

Here is the call graph for this function:

◆ prev()

const_iterator Slic3r::MutablePolygon::const_iterator::prev ( ) const
inline
34{ assert(this->valid()); return { m_data, m_data->at(m_idx).prev }; }

References const_iterator(), m_data, m_idx, and valid().

Here is the call graph for this function:

◆ size()

IndexType Slic3r::MutablePolygon::const_iterator::size ( ) const
inline
40{ assert(this->valid()); return m_data->size(); }

References m_data, and valid().

Here is the call graph for this function:

◆ valid()

bool Slic3r::MutablePolygon::const_iterator::valid ( ) const
inline
36{ return m_idx >= 0; }

References m_idx.

Referenced by next(), operator++(), operator--(), operator==(), polygon(), prev(), and size().

Here is the caller graph for this function:

◆ MutablePolygon

friend class MutablePolygon
friend

References MutablePolygon.

Referenced by const_iterator(), MutablePolygon, and polygon().

Member Data Documentation

◆ m_data

const MutablePolygon* Slic3r::MutablePolygon::const_iterator::m_data
private

◆ m_idx

IndexType Slic3r::MutablePolygon::const_iterator::m_idx
private

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