OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::ClipperUtils::SinglePathProvider::iterator Struct Reference

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

Inheritance diagram for Slic3r::ClipperUtils::SinglePathProvider::iterator:
Collaboration diagram for Slic3r::ClipperUtils::SinglePathProvider::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 (const Points &points)
const Points & operator* () const
bool operator== (const iterator &rhs) const
bool operator!= (const iterator &rhs) const
const Points & operator++ (int)
iterator & operator++ ()

Private Attributes

const Points * m_ptr

Detailed Description

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()

Slic3r::ClipperUtils::SinglePathProvider::iterator::iterator ( const Points & points)
inlineexplicit
92: m_ptr(&points) {}
const Points * m_ptr
Definition ClipperUtils.hpp:99

References m_ptr.

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

Here is the caller graph for this function:

Member Function Documentation

◆ operator!=()

bool Slic3r::ClipperUtils::SinglePathProvider::iterator::operator!= ( const iterator & rhs) const
inline
95{ return !(*this == rhs); }

References iterator().

Here is the call graph for this function:

◆ operator*()

const Points & Slic3r::ClipperUtils::SinglePathProvider::iterator::operator* ( ) const
inline
93{ return *m_ptr; }

References m_ptr.

◆ operator++() [1/2]

iterator & Slic3r::ClipperUtils::SinglePathProvider::iterator::operator++ ( )
inline
97{ m_ptr = &s_end; return *this; }
static Points s_end
Definition ClipperUtils.hpp:110

References iterator(), m_ptr, and Slic3r::ClipperUtils::SinglePathProvider::s_end.

Here is the call graph for this function:

◆ operator++() [2/2]

const Points & Slic3r::ClipperUtils::SinglePathProvider::iterator::operator++ ( int )
inline
96{ auto out = m_ptr; m_ptr = &s_end; return *out; }

References m_ptr, and Slic3r::ClipperUtils::SinglePathProvider::s_end.

◆ operator==()

bool Slic3r::ClipperUtils::SinglePathProvider::iterator::operator== ( const iterator & rhs) const
inline
94{ return m_ptr == rhs.m_ptr; }

References iterator(), and m_ptr.

Here is the call graph for this function:

Member Data Documentation

◆ m_ptr

const Points* Slic3r::ClipperUtils::SinglePathProvider::iterator::m_ptr
private

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