GNU Octave  9.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
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, int l=-1, int c=-1)
 
 tree_decl_command (const std::string &n, tree_decl_init_list *t, int l=-1, int c=-1)
 
 ~tree_decl_command ()
 
void accept (tree_walker &tw)
 
tree_decl_init_listinitializer_list ()
 
void mark_global ()
 
void mark_persistent ()
 
std::string name () const
 
- Public Member Functions inherited from tree_command
 tree_command (int l=-1, int c=-1)
 
virtual ~tree_command ()=default
 
- Public Member Functions inherited from tree
 tree (int l=-1, int c=-1)
 
virtual ~tree ()=default
 
const std::string bp_cond () const
 
virtual int column () const
 
void column (int c)
 
virtual void delete_breakpoint ()
 
bool is_active_breakpoint (tree_evaluator &tw) const
 
bool is_breakpoint () const
 
virtual int line () const
 
void line (int l)
 
bool meets_bp_condition (tree_evaluator &tw) const
 
virtual void set_breakpoint (const std::string &condition)
 
void set_location (int l, int c)
 
std::string str_print_code ()
 

Detailed Description

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

Constructor & Destructor Documentation

◆ tree_decl_command() [1/2]

tree_decl_command::tree_decl_command ( const std::string &  n,
int  l = -1,
int  c = -1 
)
inline

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

◆ tree_decl_command() [2/2]

tree_decl_command::tree_decl_command ( const std::string &  n,
tree_decl_init_list t,
int  l = -1,
int  c = -1 
)

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 87 of file pt-decl.cc.

Member Function Documentation

◆ accept()

void tree_decl_command::accept ( tree_walker tw)
inlinevirtual

Implements tree.

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

References tree_walker::visit_decl_command().

◆ initializer_list()

tree_decl_init_list* tree_decl_command::initializer_list ( )
inline

◆ mark_global()

void tree_decl_command::mark_global ( )
inline

Definition at line 177 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 191 of file pt-decl.h.

Referenced by tree_print_code::visit_decl_command().


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