Prusa Slicer 2.6.0
Loading...
Searching...
No Matches
Slic3r::client Namespace Reference

Classes

struct  ascii_char_skipper_parser
 
struct  expr
 
struct  FactorActions
 
struct  InterpolateTableContext
 
struct  macro_processor
 
struct  MyContext
 
struct  OptWithPos
 
struct  strict_real_policies_without_nan_inf
 
struct  utf8_char_parser
 

Typedefs

using Iterator = std::string::const_iterator
 
using IteratorRange = boost::iterator_range< Iterator >
 
using skipper = ascii_char_skipper_parser
 

Functions

std::ostream & operator<< (std::ostream &os, OptWithPos const &opt)
 
std::ostream & operator<< (std::ostream &os, const expr &expression)
 
std::ostream & operator<< (std::ostream &os, const InterpolateTableContext &table_context)
 
std::ostream & operator<< (std::ostream &os, const IteratorRange &it_range)
 

Typedef Documentation

◆ Iterator

using Slic3r::client::Iterator = typedef std::string::const_iterator

◆ IteratorRange

using Slic3r::client::IteratorRange = typedef boost::iterator_range<Iterator>

◆ skipper

Function Documentation

◆ operator<<() [1/4]

std::ostream & Slic3r::client::operator<< ( std::ostream &  os,
const expr expression 
)
763 {
764 typedef expr Expr;
765 os << std::string(expression.it_range.begin(), expression.it_range.end()) << " - ";
766 switch (expression.type()) {
767 case Expr::TYPE_EMPTY: os << "empty"; break;
768 case Expr::TYPE_BOOL: os << "bool (" << expression.b() << ")"; break;
769 case Expr::TYPE_INT: os << "int (" << expression.i() << ")"; break;
770 case Expr::TYPE_DOUBLE: os << "double (" << expression.d() << ")"; break;
771 case Expr::TYPE_STRING: os << "string (" << expression.s() << ")"; break;
772 default: os << "unknown";
773 };
774 return os;
775 }
Definition PlaceholderParser.cpp:194
std::string & s()
Definition PlaceholderParser.cpp:273
bool & b()
Definition PlaceholderParser.cpp:258
IteratorRange it_range
Definition PlaceholderParser.cpp:325
double & d()
Definition PlaceholderParser.cpp:268
Type type() const
Definition PlaceholderParser.cpp:255
int & i()
Definition PlaceholderParser.cpp:262

References Slic3r::client::expr::b(), Slic3r::client::expr::d(), Slic3r::client::expr::i(), Slic3r::client::expr::it_range, Slic3r::client::expr::s(), and Slic3r::client::expr::type().

+ Here is the call graph for this function:

◆ operator<<() [2/4]

std::ostream & Slic3r::client::operator<< ( std::ostream &  os,
const InterpolateTableContext table_context 
)
1681 {
1682 for (const auto &item : table_context.table)
1683 os << "(" << item.x << "," << item.y << ")";
1684 return os;
1685 }

References Slic3r::client::InterpolateTableContext::table.

◆ operator<<() [3/4]

std::ostream & Slic3r::client::operator<< ( std::ostream &  os,
const IteratorRange it_range 
)
1717 {
1718 os << std::string(it_range.begin(), it_range.end());
1719 return os;
1720 }

◆ operator<<() [4/4]

std::ostream & Slic3r::client::operator<< ( std::ostream &  os,
OptWithPos const opt 
)
188 {
189 os << std::string(opt.it_range.begin(), opt.it_range.end());
190 return os;
191 }

References Slic3r::client::OptWithPos::it_range.