26#if ! defined (octave_pt_unop_h)
27#define octave_pt_unop_h 1
29#include "octave-config.h"
52 : m_op (nullptr), m_etype (t) { }
55 : m_op_tok (op_tok), m_op (e), m_etype (t)
71 std::
string oper ()
const {
return op_str (); }
73 std::string
op_str ()
const;
117 return ovl (evaluate (tw, nargout));
156 return ovl (evaluate (tw, nargout));
167OCTAVE_END_NAMESPACE(octave)
virtual octave_value evaluate(tree_evaluator &tw, int nargout=1)=0
virtual std::string op_str() const
virtual tree_expression * dup(symbol_scope &scope) const =0
comment_list leading_comments() const
~tree_postfix_expression()=default
comment_list trailing_comments() const
void accept(tree_walker &tw)
tree_postfix_expression(tree_expression *e, const token &op_tok, octave_value::unary_op t=octave_value::unknown_unary_op)
std::string profiler_name() const
octave_value_list evaluate_n(tree_evaluator &tw, int nargout=1)
comment_list leading_comments() const
std::string profiler_name() const
void accept(tree_walker &tw)
octave_value_list evaluate_n(tree_evaluator &tw, int nargout=1)
tree_prefix_expression(const token &op_tok, tree_expression *e, octave_value::unary_op t=octave_value::unknown_unary_op)
~tree_prefix_expression()=default
comment_list trailing_comments() const
tree_expression * operand()
octave_value::unary_op m_etype
octave_value::unary_op op_type() const
bool is_unary_expression() const
tree_unary_expression(octave_value::unary_op t=octave_value::unknown_unary_op)
tree_unary_expression(const token &op_tok, tree_expression *e, octave_value::unary_op t=octave_value::unknown_unary_op)
virtual void visit_postfix_expression(tree_postfix_expression &)
virtual void visit_prefix_expression(tree_prefix_expression &)
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn
OCTAVE_DEPRECATED(11, "") typedef bool(*b_d_Mapper)(double)
octave_value_list ovl(const OV_Args &... args)
Construct an octave_value_list with less typing.