OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::Range< It > Class Template Reference

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

Public Types

using iterator = It
using value_type = typename std::iterator_traits<It>::value_type

Public Member Functions

It begin () const
It end () const
 Range ()=default
 Range (It b, It e)
size_t size () const
bool empty () const

Private Attributes

It from
It to

Detailed Description

template<class It>
class Slic3r::Range< It >

Member Typedef Documentation

◆ iterator

template<class It>
using Slic3r::Range< It >::iterator = It

◆ value_type

template<class It>
using Slic3r::Range< It >::value_type = typename std::iterator_traits<It>::value_type

Constructor & Destructor Documentation

◆ Range() [1/2]

template<class It>
Slic3r::Range< It >::Range ( )
default

◆ Range() [2/2]

template<class It>
Slic3r::Range< It >::Range ( It b,
It e )
inline
398: from(std::move(b)), to(std::move(e)) {}
Definition libslic3r.h:385
It from
Definition libslic3r.h:386
It to
Definition libslic3r.h:386

References from, and to.

Member Function Documentation

◆ begin()

template<class It>
It Slic3r::Range< It >::begin ( ) const
inline
390{ return from; }

References from.

Referenced by Slic3r::csg::check_csgmesh_booleans(), Slic3r::csg::check_csgmesh_booleans(), and Slic3r::csg::is_same().

Here is the caller graph for this function:

◆ empty()

template<class It>
bool Slic3r::Range< It >::empty ( ) const
inline
402{ return from == to; }

References from, and to.

◆ end()

template<class It>
It Slic3r::Range< It >::end ( ) const
inline
391{ return to; }

References to.

Referenced by Slic3r::csg::check_csgmesh_booleans(), and Slic3r::csg::check_csgmesh_booleans().

Here is the caller graph for this function:

◆ size()

template<class It>
size_t Slic3r::Range< It >::size ( ) const
inline
401{ return std::distance(from, to); }

References from, and to.

Referenced by Slic3r::csg::check_csgmesh_booleans(), Slic3r::csg::check_csgmesh_booleans(), Slic3r::csg::detail_cgal::get_cgalptrs(), Slic3r::csg::detail_mcut::get_mcutptrs(), and Slic3r::csg::is_same().

Here is the caller graph for this function:

Member Data Documentation

◆ from

template<class It>
It Slic3r::Range< It >::from
private

Referenced by Range(), begin(), empty(), and size().

◆ to

template<class It>
It Slic3r::Range< It >::to
private

Referenced by Range(), empty(), end(), and size().


The documentation for this class was generated from the following file:
  • /home/runner/work/OrcaSlicer/OrcaSlicer/src/libslic3r/libslic3r.h