23 #if ! defined (octave_pt_fcn_handle_h) 24 #define octave_pt_fcn_handle_h 1 26 #include "octave-config.h" 65 void print (std::ostream&
os,
bool pr_as_read_syntax =
false,
66 bool pr_orig_txt =
true);
68 void print_raw (std::ostream&
os,
bool pr_as_read_syntax =
false,
69 bool pr_orig_txt =
true);
101 int l = -1,
int c = -1)
158 #if defined (OCTAVE_USE_DEPRECATED_FUNCTIONS) 160 OCTAVE_DEPRECATED (4.4,
"use 'octave::tree_fcn_handle' instead")
161 typedef
octave::tree_fcn_handle tree_fcn_handle;
163 OCTAVE_DEPRECATED (4.4, "use '
octave::tree_anon_fcn_handle'
instead")
164 typedef
octave::tree_anon_fcn_handle tree_anon_fcn_handle;
For example cd octave end example noindent changes the current working directory to file
symbol_scope m_parent_scope
symbol_scope scope(void) const
tree_expression * dup(symbol_scope &scope) const
virtual void visit_anon_fcn_handle(tree_anon_fcn_handle &)=0
tree_expression * dup(symbol_scope &scope) const
nd example oindent opens the file binary numeric values will be read assuming they are stored in IEEE format with the least significant bit and then converted to the native representation Opening a file that is already open simply opens it again and returns a separate file id It is not an error to open a file several though writing to the same file through several different file ids may produce unexpected results The possible values of text mode reading and writing automatically converts linefeeds to the appropriate line end character for the you may append a you must also open the file in binary mode The parameter conversions are currently only supported for and permissions will be set to and then everything is written in a single operation This is very efficient and improves performance c
std::string file_name(void) const
bool has_magic_end(void) const
bool rvalue_ok(void) const
tree_anon_fcn_handle & operator=(const tree_anon_fcn_handle &)=delete
void stash_file_name(const std::string &file)
tree_parameter_list * parameter_list(void) const
bool is_valid(void) const
void print_raw(std::ostream &os, bool pr_as_read_syntax=false, bool pr_orig_txt=true)
bool rvalue_ok(void) const
tree_anon_fcn_handle(tree_parameter_list *pl, tree_expression *ex, const symbol_scope &scope, const symbol_scope &parent_scope, int l=-1, int c=-1)
tree_parameter_list * m_parameter_list
~tree_anon_fcn_handle(void)
tree_expression * m_expression
void accept(tree_walker &tw)
void accept(tree_walker &tw)
bool has_parent_scope(void) const
tree_fcn_handle(const std::string &n, int l=-1, int c=-1)
std::string name(void) const
tree_expression * expression(void) const
tree_fcn_handle & operator=(const tree_fcn_handle &)=delete
virtual void visit_fcn_handle(tree_fcn_handle &)=0
tree_anon_fcn_handle(int l=-1, int c=-1)
symbol_scope parent_scope(void) const
tree_fcn_handle(int l=-1, int c=-1)
~tree_fcn_handle(void)=default
If this string is the system will ring the terminal sometimes it is useful to be able to print the original representation of the string
void print(std::ostream &os, bool pr_as_read_syntax=false, bool pr_orig_txt=true)
bool has_magic_end(void) const