OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::ClipperUtils::PathsProvider< PathType >::iterator Struct Reference

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

Inheritance diagram for Slic3r::ClipperUtils::PathsProvider< PathType >::iterator:
Collaboration diagram for Slic3r::ClipperUtils::PathsProvider< PathType >::iterator:

Public Types

using value_type = Points
using difference_type = std::ptrdiff_t
using pointer = const Points*
using reference = const Points&
using iterator_category = std::input_iterator_tag

Public Member Functions

 iterator (typename std::vector< PathType >::const_iterator it)
const Points & operator* () const
bool operator== (const iterator &rhs) const
bool operator!= (const iterator &rhs) const
const Points & operator++ (int)
iterator & operator++ ()

Private Attributes

std::vector< PathType >::const_iterator m_it

Detailed Description

template<typename PathType>
struct Slic3r::ClipperUtils::PathsProvider< PathType >::iterator

Member Typedef Documentation

◆ difference_type

◆ iterator_category

using Slic3r::ClipperUtils::PathsProviderIteratorBase::iterator_category = std::input_iterator_tag
inherited

◆ pointer

◆ reference

◆ value_type

Constructor & Destructor Documentation

◆ iterator()

template<typename PathType>
Slic3r::ClipperUtils::PathsProvider< PathType >::iterator::iterator ( typename std::vector< PathType >::const_iterator it)
inlineexplicit
120: m_it(it) {}
Definition ClipperUtils.hpp:114
std::vector< PathType >::const_iterator m_it
Definition ClipperUtils.hpp:127

References m_it.

Referenced by operator!=(), operator++(), and operator==().

Here is the caller graph for this function:

Member Function Documentation

◆ operator!=()

template<typename PathType>
bool Slic3r::ClipperUtils::PathsProvider< PathType >::iterator::operator!= ( const iterator & rhs) const
inline
123{ return !(*this == rhs); }

References iterator().

Here is the call graph for this function:

◆ operator*()

template<typename PathType>
const Points & Slic3r::ClipperUtils::PathsProvider< PathType >::iterator::operator* ( ) const
inline
121{ return *m_it; }

References m_it.

◆ operator++() [1/2]

template<typename PathType>
iterator & Slic3r::ClipperUtils::PathsProvider< PathType >::iterator::operator++ ( )
inline
125{ ++ m_it; return *this; }

References iterator(), and m_it.

Here is the call graph for this function:

◆ operator++() [2/2]

template<typename PathType>
const Points & Slic3r::ClipperUtils::PathsProvider< PathType >::iterator::operator++ ( int )
inline
124{ return *(m_it ++); }

References m_it.

◆ operator==()

template<typename PathType>
bool Slic3r::ClipperUtils::PathsProvider< PathType >::iterator::operator== ( const iterator & rhs) const
inline
122{ return m_it == rhs.m_it; }

References iterator(), and m_it.

Here is the call graph for this function:

Member Data Documentation

◆ m_it

template<typename PathType>
std::vector<PathType>::const_iterator Slic3r::ClipperUtils::PathsProvider< PathType >::iterator::m_it
private

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