GNU Octave  4.0.0
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=std::string(), int l=-1, int c=-1)
 
 ~tree_classdef (void)
 
void accept (tree_walker &tw)
 
tree_classdef_attribute_listattribute_list (void)
 
tree_classdef_bodybody (void)
 
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 (void) const
 
octave_comment_listleading_comment (void)
 
virtual int line (void) const
 
void line (int l)
 
octave_functionmake_meta_class (bool is_at_folder=false)
 
const std::string & package_name (void) const
 
virtual void set_breakpoint (void)
 
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 587 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 = std::string (),
int  l = -1,
int  c = -1 
)
inline

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

tree_classdef::~tree_classdef ( void  )
inline

Definition at line 601 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 256 of file pt-classdef.cc.

References tree_walker::visit_classdef().

tree_classdef_attribute_list* tree_classdef::attribute_list ( void  )
inline

Definition at line 611 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 617 of file pt-classdef.h.

References element_list.

Referenced by cdef_class::make_meta_class().

virtual int tree::column ( void  ) const
inlinevirtualinherited
void tree::column ( int  c)
inlineinherited

Definition at line 51 of file pt.h.

virtual void tree::delete_breakpoint ( void  )
inlinevirtualinherited

Reimplemented in tree_statement.

Definition at line 61 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 248 of file pt-classdef.cc.

tree_identifier* tree_classdef::ident ( void  )
inline

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

References id.

Referenced by cdef_class::make_meta_class().

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

Definition at line 619 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 45 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(), tree_evaluator::visit_if_command_list(), tree_breakpoint::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_evaluator::visit_simple_for_command(), tree_breakpoint::visit_simple_for_command(), tree_breakpoint::visit_switch_case_list(), tree_evaluator::visit_switch_command(), tree_breakpoint::visit_switch_command(), tree_checker::visit_try_catch_command(), and tree_breakpoint::visit_while_command().

void tree::line ( int  l)
inlineinherited

Definition at line 49 of file pt.h.

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

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

References pack_name.

Referenced by cdef_class::make_meta_class().

virtual void tree::set_breakpoint ( void  )
inlinevirtualinherited

Reimplemented in tree_statement.

Definition at line 59 of file pt.h.

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

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

Definition at line 53 of file pt.h.

Referenced by tree_statement::set_location().

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

Definition at line 39 of file pt.cc.

References tree::accept().

Referenced by jit_info::compile(), and tree_argument_list::get_arg_names().

tree_classdef_superclass_list* tree_classdef::superclass_list ( void  )
inline

Definition at line 615 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 620 of file pt-classdef.h.

References trail_comm.

Member Data Documentation

tree_classdef_attribute_list* tree_classdef::attr_list
private

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

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

tree_classdef_body* tree_classdef::element_list
private

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

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

tree_identifier* tree_classdef::id
private

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

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

octave_comment_list* tree_classdef::lead_comm
private

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

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

std::string tree_classdef::pack_name
private

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

Referenced by package_name().

tree_classdef_superclass_list* tree_classdef::supclass_list
private

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

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

octave_comment_list* tree_classdef::trail_comm
private

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

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


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