OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::ConstVectorOfPtrsAdaptor< T > Class Template Reference

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

Inheritance diagram for Slic3r::ConstVectorOfPtrsAdaptor< T >:
Collaboration diagram for Slic3r::ConstVectorOfPtrsAdaptor< T >:

Public Member Functions

T *const * begin () const
T *const * end () const
const T * front () const
const T * back () const
size_t size () const
bool empty () const
const T * operator[] (size_t i) const
const T * at (size_t i) const
std::vector< const T * > vector () const

Protected Member Functions

 ConstVectorOfPtrsAdaptor (const std::vector< T * > *data)

Private Attributes

const std::vector< T * > * m_data

Detailed Description

template<typename T>
class Slic3r::ConstVectorOfPtrsAdaptor< T >

Constructor & Destructor Documentation

◆ ConstVectorOfPtrsAdaptor()

template<typename T>
Slic3r::ConstVectorOfPtrsAdaptor< T >::ConstVectorOfPtrsAdaptor ( const std::vector< T * > * data)
inlineprotected
216: m_data(data) {}
Definition Print.hpp:202
const std::vector< T * > * m_data
Definition Print.hpp:218

References m_data.

Member Function Documentation

◆ at()

template<typename T>
const T * Slic3r::ConstVectorOfPtrsAdaptor< T >::at ( size_t i) const
inline
213{ return m_data->at(i); }

References m_data.

◆ back()

template<typename T>
const T * Slic3r::ConstVectorOfPtrsAdaptor< T >::back ( ) const
inline
209{ return m_data->back(); }

References m_data.

Referenced by Slic3r::GCode::_do_export(), and Slic3r::TreeSupport3D::group_meshes().

Here is the caller graph for this function:

◆ begin()

template<typename T>
T *const * Slic3r::ConstVectorOfPtrsAdaptor< T >::begin ( ) const
inline
205{ return m_data->data(); }

References m_data.

Referenced by Slic3r::FillAdaptive::adaptive_fill_line_spacing(), libvgcode::convert_brim_skirt_to_vertices(), Slic3r::anonymous_namespace{SupportCommon.cpp}::object_layer_id_at_z(), and vector().

Here is the caller graph for this function:

◆ empty()

template<typename T>
bool Slic3r::ConstVectorOfPtrsAdaptor< T >::empty ( ) const
inline
211{ return m_data->empty(); }

References m_data.

Referenced by Slic3r::Print::_align_belt_purge_layers(), Slic3r::GCode::_do_export(), Slic3r::get_imex_active_tools(), Slic3r::GUI::GCodeViewer::load_shells(), Slic3r::make_brim(), Slic3r::anonymous_namespace{SupportCommon.cpp}::object_layer_id_at_z(), and Slic3r::outer_inner_brim_area().

Here is the caller graph for this function:

◆ end()

template<typename T>
T *const * Slic3r::ConstVectorOfPtrsAdaptor< T >::end ( ) const
inline
206{ return m_data->data() + m_data->size(); }

References m_data.

Referenced by Slic3r::FillAdaptive::adaptive_fill_line_spacing(), libvgcode::convert_brim_skirt_to_vertices(), Slic3r::anonymous_namespace{SupportCommon.cpp}::object_layer_id_at_z(), and vector().

Here is the caller graph for this function:

◆ front()

template<typename T>
const T * Slic3r::ConstVectorOfPtrsAdaptor< T >::front ( ) const
inline
207{ return m_data->front(); }

References m_data.

Referenced by Slic3r::GCode::_do_export(), Slic3r::get_imex_active_tools(), Slic3r::get_print_object_bottom_layer_expolygons(), Slic3r::getadhesionCoeff(), Slic3r::make_brim(), and Slic3r::outer_inner_brim_area().

Here is the caller graph for this function:

◆ operator[]()

template<typename T>
const T * Slic3r::ConstVectorOfPtrsAdaptor< T >::operator[] ( size_t i) const
inline
212{ return (*m_data)[i]; }

References m_data.

◆ size()

◆ vector()

template<typename T>
std::vector< const T * > Slic3r::ConstVectorOfPtrsAdaptor< T >::vector ( ) const
inline
214{ return std::vector<const T*>(this->begin(), this->end()); }
T *const * begin() const
Definition Print.hpp:205
T *const * end() const
Definition Print.hpp:206

References begin(), and end().

Referenced by Slic3r::chain_print_object_instances(), Slic3r::chain_print_object_instances_best_of(), Slic3r::chain_print_object_instances_snake(), and Slic3r::WipingExtrusions::mark_wiping_extrusions().

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

Member Data Documentation

◆ m_data

template<typename T>
const std::vector<T*>* Slic3r::ConstVectorOfPtrsAdaptor< T >::m_data
private

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