GNU Octave  4.2.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
tree_classdef Class Reference

#include "pt-classdef.h"

Inheritance diagram for tree_classdef:
Inheritance graph
[legend]
Collaboration diagram for tree_classdef:
Collaboration graph
[legend]

Public Member Functions

 tree_classdef (tree_classdef_attribute_list *a, tree_identifier *i, tree_classdef_superclass_list *sc, tree_classdef_body *b, octave_comment_list *lc, octave_comment_list *tc, const std::string &pn="", int l=-1, int c=-1)
 
 ~tree_classdef (void)
 
void accept (tree_walker &tw)
 
tree_classdef_attribute_listattribute_list (void)
 
tree_classdef_bodybody (void)
 
const std::string bp_cond (void) const
 
virtual int column (void) const
 
void column (int c)
 
virtual void delete_breakpoint (void)
 
tree_classdefdup (symbol_table::scope_id scope, symbol_table::context_id context) const
 
tree_identifierident (void)
 
bool is_breakpoint (bool check_active=false) const
 
octave_comment_listleading_comment (void)
 
virtual int line (void) const
 
void line (int l)
 
octave_functionmake_meta_class (bool is_at_folder=false)
 
bool meets_bp_condition (void) const
 
const std::stringpackage_name (void) const
 
virtual void set_breakpoint (const std::string &condition)
 
void set_location (int l, int c)
 
std::string str_print_code (void)
 
tree_classdef_superclass_listsuperclass_list (void)
 
octave_comment_listtrailing_comment (void)
 

Private Member Functions

 tree_classdef (const tree_classdef &)
 
tree_classdefoperator= (const tree_classdef &)
 

Private Attributes

tree_classdef_attribute_listattr_list
 
tree_classdef_bodyelement_list
 
tree_identifierid
 
octave_comment_listlead_comm
 
std::string pack_name
 
tree_classdef_superclass_listsupclass_list
 
octave_comment_listtrail_comm
 

Detailed Description

Definition at line 589 of file pt-classdef.h.

Constructor & Destructor Documentation

tree_classdef::tree_classdef ( tree_classdef_attribute_list a,
tree_identifier i,
tree_classdef_superclass_list sc,
tree_classdef_body b,
octave_comment_list lc,
octave_comment_list tc,
const std::string pn = "",
int  l = -1,
int  c = -1 
)
inline

Definition at line 593 of file pt-classdef.h.

tree_classdef::~tree_classdef ( void  )
inline

Definition at line 603 of file pt-classdef.h.

References attr_list, element_list, id, lead_comm, supclass_list, and trail_comm.

tree_classdef::tree_classdef ( const tree_classdef )
private

Member Function Documentation

void tree_classdef::accept ( tree_walker tw)
virtual

Implements tree.

Definition at line 255 of file pt-classdef.cc.

References tree_walker::visit_classdef().

tree_classdef_attribute_list* tree_classdef::attribute_list ( void  )
inline

Definition at line 613 of file pt-classdef.h.

References attr_list.

Referenced by cdef_class::make_meta_class().

tree_classdef_body* tree_classdef::body ( void  )
inline

Definition at line 619 of file pt-classdef.h.

References element_list.

Referenced by cdef_class::make_meta_class().

const std::string tree::bp_cond ( void  ) const
inlineinherited

Definition at line 80 of file pt.h.

References string.

Referenced by tree_statement::bp_cond(), and tree_breakpoint::take_action().

virtual int tree::column ( void  ) const
inlinevirtualinherited

Reimplemented in tree_colon_expression, and tree_statement.

Definition at line 51 of file pt.h.

Referenced by tree_statement::column(), tree_colon_expression::column(), tree_break_command::dup(), tree_cell::dup(), tree_funcall::dup(), tree_try_catch_command::dup(), tree_continue_command::dup(), tree_fcn_handle::dup(), tree_no_op_command::dup(), tree_constant::dup(), tree_while_command::dup(), tree_index_expression::dup(), tree_binary_expression::dup(), tree_return_command::dup(), tree_prefix_expression::dup(), tree_function_def::dup(), tree_identifier::dup(), tree_unwind_protect_command::dup(), tree_anon_fcn_handle::dup(), tree_if_command::dup(), tree_postfix_expression::dup(), tree_do_until_command::dup(), tree_boolean_expression::dup(), tree_global_command::dup(), tree_simple_for_command::dup(), tree_persistent_command::dup(), tree_switch_command::dup(), tree_complex_for_command::dup(), tree_identifier::eval_undefined_error(), octave::base_parser::finish_array_list(), octave::base_parser::finish_colon_expression(), octave::base_parser::finish_if_command(), octave::base_parser::finish_switch_command(), octave::base_parser::make_index_expression(), octave::base_parser::make_indirect_ref(), octave::base_parser::maybe_warn_assign_as_truth_value(), octave::base_parser::maybe_warn_variable_switch_label(), tree_anon_fcn_handle::rvalue1(), octave::tree_evaluator::visit_do_until_command(), octave::tree_evaluator::visit_if_command_list(), octave::tree_evaluator::visit_simple_for_command(), and octave::tree_evaluator::visit_switch_command().

void tree::column ( int  c)
inlineinherited

Definition at line 55 of file pt.h.

References c.

virtual void tree::delete_breakpoint ( void  )
inlinevirtualinherited

Reimplemented in tree_statement.

Definition at line 71 of file pt.h.

Referenced by tree_statement::delete_breakpoint(), and tree_breakpoint::take_action().

tree_classdef * tree_classdef::dup ( symbol_table::scope_id  scope,
symbol_table::context_id  context 
) const
virtual

Implements tree_command.

Definition at line 247 of file pt-classdef.cc.

tree_identifier* tree_classdef::ident ( void  )
inline

Definition at line 615 of file pt-classdef.h.

References id.

Referenced by cdef_class::make_meta_class().

bool tree::is_breakpoint ( bool  check_active = false) const
inlineinherited
octave_comment_list* tree_classdef::leading_comment ( void  )
inline

Definition at line 621 of file pt-classdef.h.

References lead_comm.

virtual int tree::line ( void  ) const
inlinevirtualinherited

Reimplemented in tree_colon_expression, and tree_statement.

Definition at line 49 of file pt.h.

Referenced by tree_breakpoint::do_decl_command(), tree_try_catch_command::dup(), tree_while_command::dup(), tree_binary_expression::dup(), tree_prefix_expression::dup(), tree_unwind_protect_command::dup(), tree_anon_fcn_handle::dup(), tree_if_command::dup(), tree_postfix_expression::dup(), tree_do_until_command::dup(), tree_boolean_expression::dup(), tree_global_command::dup(), tree_simple_for_command::dup(), tree_persistent_command::dup(), tree_switch_command::dup(), tree_complex_for_command::dup(), tree_identifier::eval_undefined_error(), octave::base_parser::finish_array_list(), octave::base_parser::finish_colon_expression(), octave::base_parser::finish_if_command(), octave::base_parser::finish_switch_command(), tree_statement::line(), tree_colon_expression::line(), octave::base_parser::make_index_expression(), octave::base_parser::make_indirect_ref(), octave::base_parser::maybe_warn_assign_as_truth_value(), octave::base_parser::maybe_warn_variable_switch_label(), tree_breakpoint::take_action(), tree_checker::visit_argument_list(), tree_breakpoint::visit_break_command(), tree_checker::visit_complex_for_command(), tree_breakpoint::visit_complex_for_command(), tree_breakpoint::visit_continue_command(), tree_breakpoint::visit_do_until_command(), octave::tree_evaluator::visit_do_until_command(), tree_breakpoint::visit_if_command_list(), octave::tree_evaluator::visit_if_command_list(), tree_breakpoint::visit_no_op_command(), tree_breakpoint::visit_return_command(), tree_checker::visit_simple_assignment(), tree_checker::visit_simple_for_command(), tree_breakpoint::visit_simple_for_command(), octave::tree_evaluator::visit_simple_for_command(), tree_breakpoint::visit_switch_case_list(), tree_breakpoint::visit_switch_command(), octave::tree_evaluator::visit_switch_command(), tree_checker::visit_try_catch_command(), and tree_breakpoint::visit_while_command().

void tree::line ( int  l)
inlineinherited

Definition at line 53 of file pt.h.

octave_function * tree_classdef::make_meta_class ( bool  is_at_folder = false)
bool tree::meets_bp_condition ( void  ) const
inherited
tree_classdef& tree_classdef::operator= ( const tree_classdef )
private
const std::string& tree_classdef::package_name ( void  ) const
inline

Definition at line 624 of file pt-classdef.h.

References pack_name.

Referenced by cdef_class::make_meta_class().

virtual void tree::set_breakpoint ( const std::string condition)
inlinevirtualinherited

Reimplemented in tree_statement.

Definition at line 63 of file pt.h.

References string.

Referenced by tree_statement::set_breakpoint(), and tree_breakpoint::take_action().

void tree::set_location ( int  l,
int  c 
)
inlineinherited

Definition at line 57 of file pt.h.

References c.

Referenced by tree_statement::set_location().

std::string tree::str_print_code ( void  )
inherited

Definition at line 40 of file pt.cc.

References tree::accept(), retval, and string.

Referenced by jit_info::compile().

tree_classdef_superclass_list* tree_classdef::superclass_list ( void  )
inline

Definition at line 617 of file pt-classdef.h.

References supclass_list.

Referenced by cdef_class::make_meta_class().

octave_comment_list* tree_classdef::trailing_comment ( void  )
inline

Definition at line 622 of file pt-classdef.h.

References trail_comm.

Member Data Documentation

tree_classdef_attribute_list* tree_classdef::attr_list
private

Definition at line 635 of file pt-classdef.h.

Referenced by attribute_list(), and ~tree_classdef().

tree_classdef_body* tree_classdef::element_list
private

Definition at line 641 of file pt-classdef.h.

Referenced by body(), and ~tree_classdef().

tree_identifier* tree_classdef::id
private

Definition at line 637 of file pt-classdef.h.

Referenced by ident(), and ~tree_classdef().

octave_comment_list* tree_classdef::lead_comm
private

Definition at line 643 of file pt-classdef.h.

Referenced by leading_comment(), and ~tree_classdef().

std::string tree_classdef::pack_name
private

Definition at line 646 of file pt-classdef.h.

Referenced by package_name().

tree_classdef_superclass_list* tree_classdef::supclass_list
private

Definition at line 639 of file pt-classdef.h.

Referenced by superclass_list(), and ~tree_classdef().

octave_comment_list* tree_classdef::trail_comm
private

Definition at line 644 of file pt-classdef.h.

Referenced by trailing_comment(), and ~tree_classdef().


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