Prusa Slicer 2.6.0
Loading...
Searching...
No Matches
Slic3r::ToStringIterator Class Reference
+ Collaboration diagram for Slic3r::ToStringIterator:

Public Types

using iterator_category = std::output_iterator_tag
 
using value_type = void
 
using difference_type = void
 
using pointer = void
 
using reference = void
 

Public Member Functions

 ToStringIterator (std::string &data)
 
ToStringIteratoroperator= (const char val)
 
ToStringIteratoroperator* ()
 
ToStringIteratoroperator++ ()
 
ToStringIterator operator++ (int)
 

Private Attributes

std::string * m_data
 

Detailed Description

Member Typedef Documentation

◆ difference_type

◆ iterator_category

using Slic3r::ToStringIterator::iterator_category = std::output_iterator_tag

◆ pointer

◆ reference

◆ value_type

Constructor & Destructor Documentation

◆ ToStringIterator()

Slic3r::ToStringIterator::ToStringIterator ( std::string &  data)
inline
67: m_data(&data) {}
std::string * m_data
Definition FindReplace.cpp:82

Member Function Documentation

◆ operator*()

ToStringIterator & Slic3r::ToStringIterator::operator* ( )
inline
77{ return *this; }

◆ operator++() [1/2]

ToStringIterator & Slic3r::ToStringIterator::operator++ ( )
inline
78{ return *this; }

◆ operator++() [2/2]

ToStringIterator Slic3r::ToStringIterator::operator++ ( int  )
inline
79{ return *this; }

◆ operator=()

ToStringIterator & Slic3r::ToStringIterator::operator= ( const char  val)
inline
69 {
70 size_t needs = m_data->size() + 1;
71 if (m_data->capacity() < needs)
72 m_data->reserve(next_highest_power_of_2(needs));
73 m_data->push_back(val);
74 return *this;
75 }
uint16_t next_highest_power_of_2(uint16_t v)
Definition Utils.hpp:125

References m_data, and Slic3r::next_highest_power_of_2().

+ Here is the call graph for this function:

Member Data Documentation

◆ m_data

std::string* Slic3r::ToStringIterator::m_data
private

Referenced by operator=().


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