OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Slic3r::client Namespace Reference

Classes

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

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 = std::string::const_iterator

◆ IteratorRange

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

◆ skipper

Function Documentation

◆ operator<<() [1/4]

std::ostream & Slic3r::client::operator<< ( std::ostream & os,
const expr & expression )
909 {
910 typedef expr Expr;
911 os << std::string(expression.it_range.begin(), expression.it_range.end()) << " - ";
912 switch (expression.type()) {
913 case Expr::TYPE_EMPTY: os << "empty"; break;
914 case Expr::TYPE_BOOL: os << "bool (" << expression.b() << ")"; break;
915 case Expr::TYPE_INT: os << "int (" << expression.i() << ")"; break;
916 case Expr::TYPE_DOUBLE: os << "double (" << expression.d() << ")"; break;
917 case Expr::TYPE_STRING: os << "string (" << expression.s() << ")"; break;
918 default: os << "unknown";
919 };
920 return os;
921 }
Definition PlaceholderParser.cpp:244
std::string & s()
Definition PlaceholderParser.cpp:334
bool & b()
Definition PlaceholderParser.cpp:319
IteratorRange it_range
Definition PlaceholderParser.cpp:389
double & d()
Definition PlaceholderParser.cpp:329
Type type() const
Definition PlaceholderParser.cpp:312
int & i()
Definition PlaceholderParser.cpp:323

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 )
2007 {
2008 for (const auto &item : table_context.table)
2009 os << "(" << item.x << "," << item.y << ")";
2010 return os;
2011 }
std::vector< Item > table
Definition PlaceholderParser.cpp:1948

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

◆ operator<<() [3/4]

std::ostream & Slic3r::client::operator<< ( std::ostream & os,
const IteratorRange & it_range )
2043 {
2044 os << std::string(it_range.begin(), it_range.end());
2045 return os;
2046 }

◆ operator<<() [4/4]

std::ostream & Slic3r::client::operator<< ( std::ostream & os,
OptWithPos const & opt )
238 {
239 os << std::string(opt.it_range.begin(), opt.it_range.end());
240 return os;
241 }
Definition BruteforceOptimizer.hpp:11