![]() |
Prusa Slicer 2.6.0
|
Collaboration diagram for Slic3r::client::expr:Classes | |
| union | Data |
Public Types | |
| enum | Type { TYPE_EMPTY = 0 , TYPE_BOOL , TYPE_INT , TYPE_DOUBLE , TYPE_STRING } |
| enum | Function2ParamsType { FUNCTION_MIN , FUNCTION_MAX } |
Static Public Member Functions | |
| static void | to_string2 (expr &self, std::string &out) |
| static void | evaluate_boolean (expr &self, bool &out) |
| static void | evaluate_boolean_to_string (expr &self, std::string &out) |
| static void | compare_op (expr &lhs, expr &rhs, char op, bool invert) |
| static void | equal (expr &lhs, expr &rhs) |
| static void | not_equal (expr &lhs, expr &rhs) |
| static void | lower (expr &lhs, expr &rhs) |
| static void | greater (expr &lhs, expr &rhs) |
| static void | leq (expr &lhs, expr &rhs) |
| static void | geq (expr &lhs, expr &rhs) |
| static void | throw_if_not_numeric (const expr ¶m) |
| static void | function_2params (expr ¶m1, expr ¶m2, Function2ParamsType fun) |
| static void | min (expr ¶m1, expr ¶m2) |
| static void | max (expr ¶m1, expr ¶m2) |
| static void | random (expr ¶m1, expr ¶m2, std::mt19937 &rng) |
| template<bool leading_zeros> | |
| static void | digits (expr ¶m1, expr ¶m2, expr ¶m3) |
| static void | regex_op (const expr &lhs, IteratorRange &rhs, char op, expr &out) |
| static void | regex_matches (expr &lhs, IteratorRange &rhs) |
| static void | regex_doesnt_match (expr &lhs, IteratorRange &rhs) |
| static void | one_of_test_init (expr &out) |
| template<bool RegEx> | |
| static void | one_of_test (const expr &match, const expr &pattern, expr &out) |
| static void | one_of_test_regex (const expr &match, IteratorRange &pattern, expr &out) |
| static void | logical_op (expr &lhs, expr &rhs, char op) |
| static void | logical_or (expr &lhs, expr &rhs) |
| static void | logical_and (expr &lhs, expr &rhs) |
Public Attributes | |
| IteratorRange | it_range |
Private Member Functions | |
| void | set_s_take_ownership (std::string *s) |
Private Attributes | |
| Type | m_type = TYPE_EMPTY |
| union Slic3r::client::expr::Data | m_data |
| Enumerator | |
|---|---|
| FUNCTION_MIN | |
| FUNCTION_MAX | |
| Enumerator | |
|---|---|
| TYPE_EMPTY | |
| TYPE_BOOL | |
| TYPE_INT | |
| TYPE_DOUBLE | |
| TYPE_STRING | |
|
inline |
Referenced by round(), unary_integer(), unary_minus(), and unary_not().
Here is the caller graph for this function:References m_data, Slic3r::client::expr::Data::s, Slic3r::client::expr::Data::set(), type(), and TYPE_STRING.
Here is the call graph for this function:
|
inline |
|
inlineexplicit |
References b(), Slic3r::client::expr::Data::b, and m_data.
Here is the call graph for this function:
|
inlineexplicit |
References i(), Slic3r::client::expr::Data::i, and m_data.
Here is the call graph for this function:
|
inlineexplicit |
References d(), Slic3r::client::expr::Data::d, and m_data.
Here is the call graph for this function:
|
inlineexplicit |
References d(), Slic3r::client::expr::Data::d, and m_data.
Here is the call graph for this function:
|
inlineexplicit |
References m_data, s(), and Slic3r::client::expr::Data::s.
Here is the call graph for this function:
|
inlineexplicit |
References m_data, s(), and Slic3r::client::expr::Data::s.
Here is the call graph for this function:
|
inlineexplicit |
References m_data, s(), and Slic3r::client::expr::Data::s.
Here is the call graph for this function:
|
inlineexplicit |
References m_data, s(), and Slic3r::client::expr::Data::s.
Here is the call graph for this function:
|
inlineexplicit |
References m_data, Slic3r::client::expr::Data::set(), and TYPE_EMPTY.
Here is the call graph for this function:
|
inline |
|
inline |
References d(), i(), type(), and TYPE_DOUBLE.
Referenced by compare_op(), digits(), Slic3r::client::InterpolateTableContext::evaluate(), function_2params(), operator%=(), operator*=(), operator+=(), operator-=(), operator/=(), random(), Slic3r::client::MyContext::scalar_variable_assign_scalar(), Slic3r::client::MyContext::vector_variable_assign_expr_with_count(), and Slic3r::client::MyContext::vector_variable_element_assign_scalar().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References d(), i(), type(), and TYPE_INT.
Referenced by digits(), function_2params(), random(), Slic3r::client::MyContext::scalar_variable_assign_scalar(), Slic3r::client::MyContext::vector_variable_assign_expr_with_count(), and Slic3r::client::MyContext::vector_variable_element_assign_scalar().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
|
inline |
References Slic3r::client::expr::Data::b, and m_data.
Referenced by expr(), expr(), compare_op(), evaluate_boolean(), evaluate_boolean_to_string(), logical_op(), one_of_test(), one_of_test_regex(), Slic3r::client::operator<<(), Slic3r::client::MyContext::scalar_variable_assign_scalar(), Slic3r::client::MyContext::scalar_variable_new_from_scalar_expression(), to_string(), unary_not(), Slic3r::client::MyContext::vector_variable_assign_expr_with_count(), Slic3r::client::MyContext::vector_variable_element_assign_scalar(), and Slic3r::client::MyContext::vector_variable_new_from_array().
Here is the caller graph for this function:
|
inline |
References Slic3r::client::expr::Data::b, and m_data.
|
inlinestatic |
References as_d(), b(), i(), it_range, numeric_type(), reset(), set_b_lite(), to_string(), type(), TYPE_BOOL, TYPE_DOUBLE, TYPE_EMPTY, and TYPE_STRING.
Referenced by equal(), geq(), greater(), leq(), lower(), and not_equal().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References Slic3r::client::expr::Data::d, and m_data.
Referenced by expr(), expr(), as_d(), as_i(), as_i_rounded(), function_2params(), operator%=(), operator/=(), Slic3r::client::operator<<(), round(), Slic3r::client::MyContext::scalar_variable_new_from_scalar_expression(), to_string(), unary_integer(), unary_minus(), and Slic3r::client::MyContext::vector_variable_new_from_array().
Here is the caller graph for this function:
|
inline |
References Slic3r::client::expr::Data::d, and m_data.
|
inlinestatic |
References as_d(), as_i(), as_i_rounded(), set_s(), throw_exception(), throw_if_not_numeric(), type(), TYPE_EMPTY, and TYPE_INT.
Here is the call graph for this function:References compare_op().
Referenced by Slic3r::client::macro_processor::macro_processor().
Here is the call graph for this function:
Here is the caller graph for this function:References b(), throw_exception(), type(), TYPE_BOOL, and TYPE_EMPTY.
Referenced by Slic3r::client::macro_processor::macro_processor().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestatic |
References b(), throw_exception(), type(), TYPE_BOOL, and TYPE_EMPTY.
Referenced by Slic3r::client::macro_processor::macro_processor().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestatic |
References as_d(), as_i(), d(), FUNCTION_MAX, FUNCTION_MIN, i(), set_d_lite(), set_i_lite(), throw_exception(), throw_if_not_numeric(), type(), TYPE_DOUBLE, and TYPE_EMPTY.
Referenced by max(), and min().
Here is the call graph for this function:
Here is the caller graph for this function:References compare_op().
Referenced by Slic3r::client::macro_processor::macro_processor().
Here is the call graph for this function:
Here is the caller graph for this function:References compare_op().
Referenced by Slic3r::client::macro_processor::macro_processor().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References Slic3r::client::expr::Data::i, and m_data.
Referenced by expr(), expr(), as_d(), as_i(), as_i_rounded(), compare_op(), Slic3r::client::MyContext::evaluate_count(), Slic3r::client::MyContext::evaluate_index(), function_2params(), operator%=(), operator*=(), operator+=(), operator-=(), operator/=(), Slic3r::client::operator<<(), round(), Slic3r::client::MyContext::scalar_variable_new_from_scalar_expression(), to_string(), unary_integer(), unary_minus(), and Slic3r::client::MyContext::vector_variable_new_from_array().
Here is the caller graph for this function:
|
inline |
References Slic3r::client::expr::Data::i, and m_data.
References compare_op().
Referenced by Slic3r::client::macro_processor::macro_processor().
Here is the call graph for this function:
Here is the caller graph for this function:References logical_op().
Referenced by Slic3r::client::macro_processor::macro_processor().
Here is the call graph for this function:
Here is the caller graph for this function:References b(), it_range, set_b_lite(), type(), TYPE_BOOL, and TYPE_EMPTY.
Referenced by logical_and(), and logical_or().
Here is the call graph for this function:
Here is the caller graph for this function:References logical_op().
Referenced by Slic3r::client::macro_processor::macro_processor().
Here is the call graph for this function:
Here is the caller graph for this function:References compare_op().
Referenced by Slic3r::client::macro_processor::macro_processor().
Here is the call graph for this function:
Here is the caller graph for this function:References function_2params(), and FUNCTION_MAX.
Referenced by Slic3r::client::macro_processor::macro_processor().
Here is the call graph for this function:
Here is the caller graph for this function:References function_2params(), and FUNCTION_MIN.
Referenced by Slic3r::client::macro_processor::macro_processor().
Here is the call graph for this function:
Here is the caller graph for this function:References compare_op().
Referenced by Slic3r::client::macro_processor::macro_processor().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References m_type, TYPE_DOUBLE, and TYPE_INT.
Referenced by Slic3r::client::MyContext::check_numeric(), compare_op(), and throw_if_not_numeric().
Here is the caller graph for this function:
|
inlinestatic |
References b(), reset(), s(), set_b(), throw_exception(), type(), TYPE_EMPTY, and TYPE_STRING.
Here is the call graph for this function:References set_b().
Referenced by Slic3r::client::macro_processor::macro_processor().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestatic |
References b(), regex_op(), reset(), throw_exception(), type(), TYPE_EMPTY, and TYPE_STRING.
Referenced by Slic3r::client::macro_processor::macro_processor().
Here is the call graph for this function:
Here is the caller graph for this function:References as_d(), d(), i(), Slic3r::client::expr::Data::i, it_range, m_data, reset(), set_d_lite(), throw_exception(), throw_if_not_numeric(), type(), TYPE_DOUBLE, TYPE_EMPTY, and TYPE_INT.
Here is the call graph for this function:References as_d(), i(), Slic3r::client::expr::Data::i, it_range, m_data, reset(), set_d_lite(), throw_if_not_numeric(), type(), TYPE_DOUBLE, and TYPE_EMPTY.
Here is the call graph for this function:References as_d(), i(), Slic3r::client::expr::Data::i, it_range, m_data, s(), Slic3r::client::expr::Data::s, set_d_lite(), set_s(), throw_if_not_numeric(), to_string(), type(), TYPE_DOUBLE, TYPE_EMPTY, and TYPE_STRING.
Here is the call graph for this function:References as_d(), i(), Slic3r::client::expr::Data::i, it_range, m_data, reset(), set_d_lite(), throw_if_not_numeric(), type(), TYPE_DOUBLE, and TYPE_EMPTY.
Here is the call graph for this function:References as_d(), d(), i(), Slic3r::client::expr::Data::i, it_range, m_data, reset(), set_d_lite(), throw_exception(), throw_if_not_numeric(), type(), TYPE_DOUBLE, TYPE_EMPTY, and TYPE_INT.
Here is the call graph for this function:References it_range, m_data, m_type, reset(), Slic3r::client::expr::Data::set(), and TYPE_EMPTY.
Here is the call graph for this function:
|
inlinestatic |
References as_d(), as_i(), set_d_lite(), set_i_lite(), throw_if_not_numeric(), type(), TYPE_DOUBLE, and TYPE_EMPTY.
Referenced by Slic3r::client::MyContext::random().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestatic |
References regex_op().
Referenced by Slic3r::client::macro_processor::macro_processor().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestatic |
References regex_op().
Referenced by Slic3r::client::macro_processor::macro_processor().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestatic |
References s(), set_b(), throw_exception(), type(), TYPE_EMPTY, and TYPE_STRING.
Referenced by one_of_test_regex(), regex_doesnt_match(), and regex_matches().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References m_data, m_type, Slic3r::client::expr::Data::s, type(), TYPE_EMPTY, and TYPE_STRING.
Referenced by ~expr(), Slic3r::client::FactorActions::bool_(), compare_op(), Slic3r::client::FactorActions::double_(), Slic3r::client::FactorActions::int_(), Slic3r::client::FactorActions::noexpr(), one_of_test(), one_of_test_regex(), operator%=(), operator*=(), operator-=(), operator/=(), operator=(), set_b(), set_d(), set_i(), and Slic3r::client::FactorActions::string_().
Here is the call graph for this function:
Here is the caller graph for this function:References expr(), d(), i(), throw_exception(), type(), TYPE_DOUBLE, TYPE_EMPTY, and TYPE_INT.
Referenced by Slic3r::client::FactorActions::round().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References m_data, and Slic3r::client::expr::Data::s.
Referenced by expr(), expr(), expr(), expr(), one_of_test(), operator+=(), Slic3r::client::operator<<(), operator=(), regex_op(), Slic3r::client::MyContext::scalar_variable_new_from_scalar_expression(), set_s(), set_s(), set_s(), set_s_take_ownership(), to_string(), and Slic3r::client::MyContext::vector_variable_new_from_array().
Here is the caller graph for this function:
|
inline |
References m_data, and Slic3r::client::expr::Data::s.
|
inline |
References reset(), and set_b_lite().
Referenced by Slic3r::client::MyContext::is_nil_test(), Slic3r::client::MyContext::is_vector_empty(), one_of_test(), one_of_test_init(), regex_op(), Slic3r::client::MyContext::scalar_variable_to_expr(), and Slic3r::client::MyContext::vector_element_to_expr().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References Slic3r::client::expr::Data::b, m_data, m_type, Slic3r::client::expr::Data::set(), type(), TYPE_BOOL, and TYPE_STRING.
Referenced by compare_op(), logical_op(), and set_b().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References reset(), and set_d_lite().
Referenced by Slic3r::client::InterpolateTableContext::evaluate(), Slic3r::client::MyContext::scalar_variable_to_expr(), and Slic3r::client::MyContext::vector_element_to_expr().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References Slic3r::client::expr::Data::d, m_data, m_type, Slic3r::client::expr::Data::set(), type(), TYPE_DOUBLE, and TYPE_STRING.
Referenced by function_2params(), operator%=(), operator*=(), operator+=(), operator-=(), operator/=(), random(), and set_d().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References reset(), and set_i_lite().
Referenced by Slic3r::client::MyContext::scalar_variable_to_expr(), Slic3r::client::MyContext::vector_element_to_expr(), and Slic3r::client::MyContext::vector_size().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References Slic3r::client::expr::Data::i, m_data, m_type, Slic3r::client::expr::Data::set(), type(), TYPE_INT, and TYPE_STRING.
Referenced by function_2params(), random(), and set_i().
Here is the call graph for this function:
Here is the caller graph for this function:References m_data, s(), Slic3r::client::expr::Data::s, set_s_take_ownership(), type(), and TYPE_STRING.
Here is the call graph for this function:References m_data, s(), Slic3r::client::expr::Data::s, set_s_take_ownership(), type(), and TYPE_STRING.
Referenced by digits(), operator+=(), operator=(), Slic3r::client::MyContext::scalar_variable_to_expr(), and Slic3r::client::MyContext::vector_element_to_expr().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References m_data, s(), Slic3r::client::expr::Data::s, set_s_take_ownership(), type(), and TYPE_STRING.
Here is the call graph for this function:
|
inlineprivate |
References m_data, m_type, s(), Slic3r::client::expr::Data::s, Slic3r::client::expr::Data::set(), type(), and TYPE_STRING.
Referenced by set_s(), set_s(), and set_s().
Here is the call graph for this function:
Here is the caller graph for this function:Referenced by Slic3r::client::MyContext::check_numeric(), digits(), Slic3r::client::InterpolateTableContext::evaluate(), evaluate_boolean(), evaluate_boolean_to_string(), Slic3r::client::MyContext::evaluate_count(), Slic3r::client::MyContext::evaluate_index(), function_2params(), one_of_test(), one_of_test_regex(), operator%=(), operator/=(), regex_op(), round(), Slic3r::client::MyContext::scalar_variable_new_from_scalar_expression(), throw_if_not_numeric(), unary_integer(), unary_minus(), unary_not(), Slic3r::client::MyContext::vector_variable_assign_array(), Slic3r::client::MyContext::vector_variable_assign_expr_with_count(), and Slic3r::client::MyContext::vector_variable_new_from_array().
Here is the caller graph for this function:References numeric_type(), and throw_exception().
Here is the call graph for this function:References throw_if_not_numeric().
Referenced by digits(), function_2params(), operator%=(), operator*=(), operator+=(), operator-=(), operator/=(), random(), and throw_if_not_numeric().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References b(), d(), i(), s(), type(), TYPE_BOOL, TYPE_DOUBLE, TYPE_EMPTY, TYPE_INT, and TYPE_STRING.
Referenced by compare_op(), operator+=(), Slic3r::client::MyContext::scalar_variable_assign_scalar(), to_string2(), Slic3r::client::MyContext::vector_variable_assign_expr_with_count(), and Slic3r::client::MyContext::vector_variable_element_assign_scalar().
Here is the call graph for this function:
Here is the caller graph for this function:References to_string(), type(), and TYPE_EMPTY.
Referenced by Slic3r::client::macro_processor::macro_processor().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References m_type.
Referenced by expr(), as_d(), as_i(), as_i_rounded(), compare_op(), digits(), Slic3r::client::InterpolateTableContext::evaluate(), evaluate_boolean(), evaluate_boolean_to_string(), Slic3r::client::MyContext::evaluate_count(), Slic3r::client::MyContext::evaluate_index(), function_2params(), Slic3r::client::MyContext::initializer_list_append(), logical_op(), one_of_test(), one_of_test_regex(), operator%=(), operator*=(), operator+=(), operator-=(), operator/=(), Slic3r::client::operator<<(), operator=(), random(), regex_op(), reset(), round(), Slic3r::client::MyContext::scalar_variable_assign_scalar(), Slic3r::client::MyContext::scalar_variable_new_from_scalar_expression(), set_b_lite(), set_d_lite(), set_i_lite(), set_s(), set_s(), set_s(), set_s_take_ownership(), to_string(), to_string2(), unary_integer(), unary_minus(), unary_not(), Slic3r::client::MyContext::vector_variable_assign_expr_with_count(), Slic3r::client::MyContext::vector_variable_element_assign_scalar(), and Slic3r::client::MyContext::vector_variable_new_from_array().
Here is the caller graph for this function:References expr(), d(), i(), throw_exception(), type(), TYPE_DOUBLE, TYPE_EMPTY, and TYPE_INT.
Referenced by Slic3r::client::FactorActions::to_int().
Here is the call graph for this function:
Here is the caller graph for this function:References expr(), d(), i(), throw_exception(), type(), TYPE_DOUBLE, TYPE_EMPTY, and TYPE_INT.
Referenced by Slic3r::client::FactorActions::minus_().
Here is the call graph for this function:
Here is the caller graph for this function:References expr(), b(), throw_exception(), type(), TYPE_BOOL, and TYPE_EMPTY.
Referenced by Slic3r::client::FactorActions::not_().
Here is the call graph for this function:
Here is the caller graph for this function:| IteratorRange Slic3r::client::expr::it_range |
Referenced by Slic3r::client::FactorActions::bool_(), compare_op(), Slic3r::client::FactorActions::double_(), Slic3r::client::FactorActions::expr_(), Slic3r::client::FactorActions::int_(), Slic3r::client::MyContext::is_nil_test(), Slic3r::client::MyContext::is_vector_empty(), logical_op(), Slic3r::client::FactorActions::minus_(), Slic3r::client::FactorActions::not_(), operator%=(), operator*=(), operator+=(), operator-=(), operator/=(), Slic3r::client::operator<<(), operator=(), operator=(), Slic3r::client::MyContext::random(), Slic3r::client::FactorActions::round(), Slic3r::client::MyContext::scalar_variable_assign_scalar(), Slic3r::client::FactorActions::set_start_pos(), Slic3r::client::FactorActions::string_(), Slic3r::client::FactorActions::to_int(), Slic3r::client::MyContext::variable_value(), Slic3r::client::MyContext::vector_size(), and Slic3r::client::MyContext::vector_variable_element_assign_scalar().
|
private |
Referenced by expr(), expr(), expr(), expr(), expr(), expr(), expr(), expr(), expr(), expr(), expr(), expr(), b(), b(), d(), d(), i(), i(), operator%=(), operator*=(), operator+=(), operator-=(), operator/=(), operator=(), operator=(), reset(), s(), s(), set_b_lite(), set_d_lite(), set_i_lite(), set_s(), set_s(), set_s(), and set_s_take_ownership().
|
private |
Referenced by numeric_type(), operator=(), operator=(), reset(), set_b_lite(), set_d_lite(), set_i_lite(), set_s_take_ownership(), and type().