GNU Octave  9.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
tree_unary_expression Class Reference

#include "pt-unop.h"

Inheritance diagram for tree_unary_expression:
tree_expression tree tree_postfix_expression tree_prefix_expression

Public Member Functions

 ~tree_unary_expression ()
 
bool is_unary_expression () const
 
octave_value::unary_op op_type () const
 
std::string oper () const
 
tree_expressionoperand ()
 
- Public Member Functions inherited from tree_expression
 tree_expression (int l=-1, int c=-1)
 
virtual ~tree_expression ()=default
 
virtual void copy_base (const tree_expression &e)
 
virtual tree_expressiondup (symbol_scope &scope) const =0
 
virtual octave_value evaluate (tree_evaluator &tw, int nargout=1)=0
 
virtual octave_value_list evaluate_n (tree_evaluator &tw, int nargout=1)=0
 
virtual bool is_assignment_expression () const
 
virtual bool is_binary_expression () const
 
virtual bool is_boolean_expression () const
 
virtual bool is_colon_expression () const
 
virtual bool is_constant () const
 
bool is_for_cmd_expr () const
 
virtual bool is_identifier () const
 
virtual bool is_index_expression () const
 
virtual bool is_matrix () const
 
bool is_postfix_indexed () const
 
virtual bool is_prefix_expression () const
 
virtual bool iscell () const
 
virtual octave_lvalue lvalue (tree_evaluator &)
 
virtual bool lvalue_ok () const
 
void mark_as_for_cmd_expr ()
 
tree_expressionmark_in_parens ()
 
virtual std::string name () const
 
virtual std::string original_text () const
 
int paren_count () const
 
char postfix_index () const
 
bool print_result () const
 
virtual bool rvalue_ok () const
 
tree_expressionset_postfix_index (char type)
 
tree_expressionset_print_flag (bool print)
 
- Public Member Functions inherited from tree
 tree (int l=-1, int c=-1)
 
virtual ~tree ()=default
 
virtual void accept (tree_walker &tw)=0
 
const std::string bp_cond () const
 
virtual int column () const
 
void column (int c)
 
virtual void delete_breakpoint ()
 
bool is_active_breakpoint (tree_evaluator &tw) const
 
bool is_breakpoint () const
 
virtual int line () const
 
void line (int l)
 
bool meets_bp_condition (tree_evaluator &tw) const
 
virtual void set_breakpoint (const std::string &condition)
 
void set_location (int l, int c)
 
std::string str_print_code ()
 

Protected Member Functions

 tree_unary_expression (int l=-1, int c=-1, octave_value::unary_op t=octave_value::unknown_unary_op)
 
 tree_unary_expression (tree_expression *e, int l=-1, int c=-1, octave_value::unary_op t=octave_value::unknown_unary_op)
 

Protected Attributes

octave_value::unary_op m_etype
 
tree_expressionm_op
 
- Protected Attributes inherited from tree_expression
bool m_for_cmd_expr
 
int m_num_parens
 
char m_postfix_index_type
 
bool m_print_flag
 

Detailed Description

Definition at line 46 of file pt-unop.h.

Constructor & Destructor Documentation

◆ tree_unary_expression() [1/2]

tree_unary_expression::tree_unary_expression ( int  l = -1,
int  c = -1,
octave_value::unary_op  t = octave_value::unknown_unary_op 
)
inlineprotected

Definition at line 50 of file pt-unop.h.

◆ tree_unary_expression() [2/2]

tree_unary_expression::tree_unary_expression ( tree_expression e,
int  l = -1,
int  c = -1,
octave_value::unary_op  t = octave_value::unknown_unary_op 
)
inlineprotected

Definition at line 55 of file pt-unop.h.

◆ ~tree_unary_expression()

tree_unary_expression::~tree_unary_expression ( )
inline

Definition at line 64 of file pt-unop.h.

References m_op.

Member Function Documentation

◆ is_unary_expression()

bool tree_unary_expression::is_unary_expression ( ) const
inlinevirtual

Reimplemented from tree_expression.

Definition at line 66 of file pt-unop.h.

◆ op_type()

octave_value::unary_op tree_unary_expression::op_type ( ) const
inline

◆ oper()

std::string tree_unary_expression::oper ( ) const
virtual

◆ operand()

Member Data Documentation

◆ m_etype

◆ m_op


The documentation for this class was generated from the following files: