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

#include "pt-decl.h"

Inheritance diagram for tree_decl_command:
tree_command tree

Public Member Functions

 tree_decl_command (const std::string &n, const token &tok, tree_decl_init_list *t)
 
 ~tree_decl_command ()
 
void accept (tree_walker &tw)
 
filepos beg_pos () const
 
filepos end_pos () const
 
tree_decl_init_listinitializer_list ()
 
void mark_global ()
 
void mark_persistent ()
 
std::string name () const
 
- Public Member Functions inherited from tree_command
 tree_command ()=default
 
virtual ~tree_command ()=default
 
virtual void update_end_pos (const filepos &)
 
- 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 ()
 

Detailed Description

Definition at line 183 of file pt-decl.h.

Constructor & Destructor Documentation

◆ tree_decl_command()

tree_decl_command::tree_decl_command ( const std::string &  n,
const token tok,
tree_decl_init_list t 
)

Definition at line 71 of file pt-decl.cc.

References error(), mark_global(), and mark_persistent().

◆ ~tree_decl_command()

tree_decl_command::~tree_decl_command ( )

Definition at line 86 of file pt-decl.cc.

Member Function Documentation

◆ accept()

void tree_decl_command::accept ( tree_walker tw)
inlinevirtual

Implements tree.

Definition at line 212 of file pt-decl.h.

References tree_walker::visit_decl_command().

◆ beg_pos()

filepos tree_decl_command::beg_pos ( ) const
inlinevirtual

Implements tree.

Definition at line 193 of file pt-decl.h.

References token::beg_pos().

◆ end_pos()

filepos tree_decl_command::end_pos ( ) const
inlinevirtual

Implements tree.

Definition at line 194 of file pt-decl.h.

References tree_decl_init_list::end_pos().

◆ initializer_list()

tree_decl_init_list * tree_decl_command::initializer_list ( )
inline

◆ mark_global()

void tree_decl_command::mark_global ( )
inline

Definition at line 196 of file pt-decl.h.

References tree_decl_init_list::mark_global().

Referenced by tree_decl_command(), and base_parser::make_decl_command().

◆ mark_persistent()

void tree_decl_command::mark_persistent ( )
inline

◆ name()

std::string tree_decl_command::name ( ) const
inline

Definition at line 210 of file pt-decl.h.

Referenced by tree_print_code::visit_decl_command().


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