Go to the documentation of this file. 1 #ifndef OGLPLUS_TEXGEN_NEWTON_NODE_HPP
9 #define OGLPLUS_TEXGEN_NEWTON_NODE_HPP
13 namespace eagine::oglp::texgen {
15 enum class newton_function { xe3minus1, xe4minus1 };
17 class newton_output :
public base_output {
19 friend class newton_node;
21 newton_function _function;
26 newton_output(node_intf& parent, newton_function);
28 newton_output(node_intf& parent)
29 : newton_output(parent, newton_function::xe3minus1) {}
35 std::ostream& definitions(std::ostream& out, compile_context& ctxt)
override;
38 class newton_node :
public single_output_node<newton_output> {
40 newton_node& set_function(newton_function
function) {
41 _output._function =
function;
48 #if !OGLPLUS_LINK_LIBRARY || defined(OGLPLUS_IMPLEMENTING_LIBRARY)
49 #include <oglplus/texgen/newton_node.inl>
52 #endif // OGLPLUS_TEXGEN_NEWTON_NODE_HPP
value_type
Value tree value element data type enumeration.
Definition: interface.hpp:27
basic_string_span< const char > string_view
Alias for const string views.
Definition: string_span.hpp:116
static auto type_name(const T &) noexcept -> std::string
Returns the demangled name for type T.
Definition: type_name.hpp:24