GNU Octave 10.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 
Loading...
Searching...
No Matches
tree_anon_fcn_handle Class Reference

#include "pt-fcn-handle.h"

Inheritance diagram for tree_anon_fcn_handle:
tree_expression tree

Public Member Functions

 tree_anon_fcn_handle (const token &at_tok, tree_parameter_list *pl, tree_expression *ex, const symbol_scope &scope, const symbol_scope &parent_scope)
 
 ~tree_anon_fcn_handle ()
 
void accept (tree_walker &tw)
 
filepos beg_pos () const
 
tree_expressiondup (symbol_scope &scope) const
 
filepos end_pos () const
 
octave_value evaluate (tree_evaluator &tw, int nargout=1)
 
octave_value_list evaluate_n (tree_evaluator &tw, int nargout=1)
 
tree_expressionexpression () const
 
std::string file_name () const
 
bool has_parent_scope () const
 
tree_parameter_listparameter_list () const
 
symbol_scope parent_scope () const
 
bool rvalue_ok () const
 
symbol_scope scope () const
 
void stash_file_name (const std::string &file)
 
- Public Member Functions inherited from tree_expression
 tree_expression ()
 
virtual ~tree_expression ()=default
 
virtual void copy_base (const tree_expression &e)
 
size_t delim_count () const
 
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 is_unary_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_delims (const token &open_delim, const token &close_delim)
 
virtual std::string name () const
 
virtual std::string oper () const
 
virtual std::string original_text () const
 
char postfix_index () const
 
bool print_result () const
 
tree_expressionset_postfix_index (char type)
 
tree_expressionset_print_flag (bool print)
 
- Public Member Functions inherited from tree
 tree ()
 
virtual ~tree ()=default
 
const std::string bp_cond () const
 
virtual int column () const
 
virtual void delete_breakpoint ()
 
bool is_active_breakpoint (tree_evaluator &tw) const
 
bool is_breakpoint () const
 
virtual comment_list leading_comments () const
 
virtual int line () const
 
bool meets_bp_condition (tree_evaluator &tw) const
 
virtual void set_breakpoint (const std::string &condition)
 
std::string str_print_code ()
 

Additional Inherited Members

- Protected Attributes inherited from tree_expression
tree_delimiter_list m_delims
 
bool m_for_cmd_expr
 
char m_postfix_index_type
 
bool m_print_flag
 

Detailed Description

Definition at line 93 of file pt-fcn-handle.h.

Constructor & Destructor Documentation

◆ tree_anon_fcn_handle()

tree_anon_fcn_handle::tree_anon_fcn_handle ( const token at_tok,
tree_parameter_list pl,
tree_expression ex,
const symbol_scope scope,
const symbol_scope parent_scope 
)
inline

Definition at line 97 of file pt-fcn-handle.h.

◆ ~tree_anon_fcn_handle()

tree_anon_fcn_handle::~tree_anon_fcn_handle ( )

Definition at line 69 of file pt-fcn-handle.cc.

Member Function Documentation

◆ accept()

void tree_anon_fcn_handle::accept ( tree_walker tw)
inlinevirtual

Implements tree.

Definition at line 132 of file pt-fcn-handle.h.

References tree_walker::visit_anon_fcn_handle().

Referenced by base_parser::make_anon_fcn_handle().

◆ beg_pos()

filepos tree_anon_fcn_handle::beg_pos ( ) const
inlinevirtual

Implements tree.

Definition at line 105 of file pt-fcn-handle.h.

References token::beg_pos().

◆ dup()

◆ end_pos()

filepos tree_anon_fcn_handle::end_pos ( ) const
inlinevirtual

Implements tree.

Definition at line 106 of file pt-fcn-handle.h.

References tree::end_pos().

◆ evaluate()

octave_value tree_anon_fcn_handle::evaluate ( tree_evaluator tw,
int  nargout = 1 
)
virtual

Implements tree_expression.

Definition at line 99 of file pt-fcn-handle.cc.

References tree_evaluator::evaluate_anon_fcn_handle().

Referenced by evaluate_n().

◆ evaluate_n()

octave_value_list tree_anon_fcn_handle::evaluate_n ( tree_evaluator tw,
int  nargout = 1 
)
inlinevirtual

Implements tree_expression.

Definition at line 127 of file pt-fcn-handle.h.

References evaluate(), and ovl().

◆ expression()

tree_expression * tree_anon_fcn_handle::expression ( ) const
inline

◆ file_name()

std::string tree_anon_fcn_handle::file_name ( ) const
inline

Definition at line 136 of file pt-fcn-handle.h.

◆ has_parent_scope()

bool tree_anon_fcn_handle::has_parent_scope ( ) const
inline

Definition at line 121 of file pt-fcn-handle.h.

References symbol_scope::is_valid().

◆ parameter_list()

tree_parameter_list * tree_anon_fcn_handle::parameter_list ( ) const
inline

◆ parent_scope()

symbol_scope tree_anon_fcn_handle::parent_scope ( ) const
inline

Definition at line 119 of file pt-fcn-handle.h.

◆ rvalue_ok()

bool tree_anon_fcn_handle::rvalue_ok ( ) const
inlinevirtual

Reimplemented from tree_expression.

Definition at line 108 of file pt-fcn-handle.h.

◆ scope()

symbol_scope tree_anon_fcn_handle::scope ( ) const
inline

Definition at line 117 of file pt-fcn-handle.h.

Referenced by tree_evaluator::evaluate_anon_fcn_handle().

◆ stash_file_name()

void tree_anon_fcn_handle::stash_file_name ( const std::string &  file)
inline

Definition at line 134 of file pt-fcn-handle.h.


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