GNU Octave  6.2.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
octave::tree_parameter_list Class Reference

#include "pt-misc.h"

Inheritance diagram for octave::tree_parameter_list:
Collaboration diagram for octave::tree_parameter_list:

Public Types

typedef std::list< tree_decl_elt * >::const_iterator const_iterator
 
typedef std::list< tree_decl_elt * >::const_reverse_iterator const_reverse_iterator
 
enum  in_or_out { in = 1 , out = 2 }
 
typedef std::list< tree_decl_elt * >::iterator iterator
 
typedef std::list< tree_decl_elt * >::reverse_iterator reverse_iterator
 

Public Member Functions

 tree_parameter_list (const tree_parameter_list &)=delete
 
 tree_parameter_list (in_or_out io)
 
 tree_parameter_list (in_or_out io, tree_decl_elt *t)
 
 tree_parameter_list (in_or_out io, tree_identifier *id)
 
 ~tree_parameter_list (void)
 
void accept (tree_walker &tw)
 
void append (const tree_decl_elt * &s)
 
tree_decl_elt * & back (void)
 
const tree_decl_elt * & back (void) const
 
iterator begin (void)
 
const_iterator begin (void) const
 
void clear (void)
 
tree_parameter_listdup (symbol_scope &scope) const
 
bool empty (void) const
 
iterator end (void)
 
const_iterator end (void) const
 
iterator erase (iterator pos)
 
tree_decl_elt * & front (void)
 
const tree_decl_elt * & front (void) const
 
bool is_input_list (void) const
 
bool is_output_list (void) const
 
size_t length (void) const
 
void mark_as_formal_parameters (void)
 
void mark_varargs (void)
 
void mark_varargs_only (void)
 
tree_parameter_listoperator= (const tree_parameter_list &)=delete
 
void pop_back (void)
 
void pop_front (void)
 
void push_back (const tree_decl_elt * &s)
 
void push_front (const tree_decl_elt * &s)
 
reverse_iterator rbegin (void)
 
const_reverse_iterator rbegin (void) const
 
void remove_if (P pred)
 
reverse_iterator rend (void)
 
const_reverse_iterator rend (void) const
 
size_t size (void) const
 
bool takes_varargs (void) const
 
bool varargs_only (void)
 
std::string varargs_symbol_name (void) const
 
std::list< std::string > variable_names (void) const
 

Protected Attributes

std::list< tree_decl_elt * > m_lst
 

Private Attributes

in_or_out m_in_or_out
 
int m_marked_for_varargs
 

Detailed Description

Definition at line 45 of file pt-misc.h.

Member Typedef Documentation

◆ const_iterator

Definition at line 44 of file base-list.h.

◆ const_reverse_iterator

Definition at line 48 of file base-list.h.

◆ iterator

typedef std::list<tree_decl_elt * >::iterator octave::base_list< tree_decl_elt * >::iterator
inherited

Definition at line 43 of file base-list.h.

◆ reverse_iterator

Definition at line 46 of file base-list.h.

Member Enumeration Documentation

◆ in_or_out

Enumerator
in 
out 

Definition at line 49 of file pt-misc.h.

Constructor & Destructor Documentation

◆ tree_parameter_list() [1/4]

octave::tree_parameter_list::tree_parameter_list ( in_or_out  io)
inline

Definition at line 55 of file pt-misc.h.

Referenced by dup().

◆ tree_parameter_list() [2/4]

octave::tree_parameter_list::tree_parameter_list ( in_or_out  io,
tree_decl_elt t 
)
inline

Definition at line 59 of file pt-misc.h.

References octave::base_list< tree_decl_elt * >::append().

◆ tree_parameter_list() [3/4]

octave::tree_parameter_list::tree_parameter_list ( in_or_out  io,
tree_identifier id 
)
inline

Definition at line 65 of file pt-misc.h.

References octave::base_list< tree_decl_elt * >::append().

◆ tree_parameter_list() [4/4]

octave::tree_parameter_list::tree_parameter_list ( const tree_parameter_list )
delete

◆ ~tree_parameter_list()

octave::tree_parameter_list::~tree_parameter_list ( void  )

Member Function Documentation

◆ accept()

◆ append()

void octave::base_list< tree_decl_elt * >::append ( const elt_type &  s)
inlineinherited

Definition at line 92 of file base-list.h.

◆ back() [1/2]

tree_decl_elt * & octave::base_list< tree_decl_elt * >::back ( void  )
inlineinherited

Definition at line 80 of file base-list.h.

◆ back() [2/2]

const tree_decl_elt * & octave::base_list< tree_decl_elt * >::back ( void  ) const
inlineinherited

Definition at line 83 of file base-list.h.

◆ begin() [1/2]

iterator octave::base_list< tree_decl_elt * >::begin ( void  )
inlineinherited

Definition at line 65 of file base-list.h.

◆ begin() [2/2]

const_iterator octave::base_list< tree_decl_elt * >::begin ( void  ) const
inlineinherited

Definition at line 66 of file base-list.h.

◆ clear()

void octave::base_list< tree_decl_elt * >::clear ( void  )
inlineinherited

Definition at line 63 of file base-list.h.

◆ dup()

◆ empty()

bool octave::base_list< tree_decl_elt * >::empty ( void  ) const
inlineinherited

Definition at line 50 of file base-list.h.

◆ end() [1/2]

iterator octave::base_list< tree_decl_elt * >::end ( void  )
inlineinherited

Definition at line 68 of file base-list.h.

◆ end() [2/2]

const_iterator octave::base_list< tree_decl_elt * >::end ( void  ) const
inlineinherited

Definition at line 69 of file base-list.h.

◆ erase()

iterator octave::base_list< tree_decl_elt * >::erase ( iterator  pos)
inlineinherited

Definition at line 55 of file base-list.h.

◆ front() [1/2]

tree_decl_elt * & octave::base_list< tree_decl_elt * >::front ( void  )
inlineinherited

Definition at line 79 of file base-list.h.

◆ front() [2/2]

const tree_decl_elt * & octave::base_list< tree_decl_elt * >::front ( void  ) const
inlineinherited

Definition at line 82 of file base-list.h.

◆ is_input_list()

bool octave::tree_parameter_list::is_input_list ( void  ) const
inline

Definition at line 89 of file pt-misc.h.

References in, and m_in_or_out.

Referenced by octave::tree_print_code::visit_parameter_list().

◆ is_output_list()

bool octave::tree_parameter_list::is_output_list ( void  ) const
inline

Definition at line 91 of file pt-misc.h.

References m_in_or_out, and out.

◆ length()

size_t octave::base_list< tree_decl_elt * >::length ( void  ) const
inlineinherited

Definition at line 53 of file base-list.h.

◆ mark_as_formal_parameters()

void octave::tree_parameter_list::mark_as_formal_parameters ( void  )

◆ mark_varargs()

void octave::tree_parameter_list::mark_varargs ( void  )
inline

Definition at line 81 of file pt-misc.h.

References m_marked_for_varargs.

Referenced by octave::base_parser::validate_param_list().

◆ mark_varargs_only()

void octave::tree_parameter_list::mark_varargs_only ( void  )
inline

Definition at line 83 of file pt-misc.h.

References m_marked_for_varargs.

Referenced by octave::base_parser::validate_param_list().

◆ operator=()

tree_parameter_list& octave::tree_parameter_list::operator= ( const tree_parameter_list )
delete

◆ pop_back()

void octave::base_list< tree_decl_elt * >::pop_back ( void  )
inlineinherited

Definition at line 89 of file base-list.h.

◆ pop_front()

void octave::base_list< tree_decl_elt * >::pop_front ( void  )
inlineinherited

Definition at line 88 of file base-list.h.

◆ push_back()

void octave::base_list< tree_decl_elt * >::push_back ( const elt_type &  s)
inlineinherited

Definition at line 86 of file base-list.h.

◆ push_front()

void octave::base_list< tree_decl_elt * >::push_front ( const elt_type &  s)
inlineinherited

Definition at line 85 of file base-list.h.

◆ rbegin() [1/2]

reverse_iterator octave::base_list< tree_decl_elt * >::rbegin ( void  )
inlineinherited

Definition at line 71 of file base-list.h.

◆ rbegin() [2/2]

const_reverse_iterator octave::base_list< tree_decl_elt * >::rbegin ( void  ) const
inlineinherited

Definition at line 72 of file base-list.h.

◆ remove_if()

void octave::base_list< tree_decl_elt * >::remove_if ( pred)
inlineinherited

Definition at line 58 of file base-list.h.

◆ rend() [1/2]

reverse_iterator octave::base_list< tree_decl_elt * >::rend ( void  )
inlineinherited

Definition at line 75 of file base-list.h.

◆ rend() [2/2]

const_reverse_iterator octave::base_list< tree_decl_elt * >::rend ( void  ) const
inlineinherited

Definition at line 76 of file base-list.h.

◆ size()

size_t octave::base_list< tree_decl_elt * >::size ( void  ) const
inlineinherited

Definition at line 52 of file base-list.h.

◆ takes_varargs()

◆ varargs_only()

bool octave::tree_parameter_list::varargs_only ( void  )
inline

◆ varargs_symbol_name()

std::string octave::tree_parameter_list::varargs_symbol_name ( void  ) const
inline

Definition at line 95 of file pt-misc.h.

References in, and m_in_or_out.

Referenced by variable_names(), and octave::tree_print_code::visit_parameter_list().

◆ variable_names()

std::list< std::string > octave::tree_parameter_list::variable_names ( void  ) const

Member Data Documentation

◆ m_in_or_out

in_or_out octave::tree_parameter_list::m_in_or_out
private

Definition at line 109 of file pt-misc.h.

Referenced by dup(), is_input_list(), is_output_list(), and varargs_symbol_name().

◆ m_lst

std::list<tree_decl_elt * > octave::base_list< tree_decl_elt * >::m_lst
protectedinherited

Definition at line 106 of file base-list.h.

◆ m_marked_for_varargs

int octave::tree_parameter_list::m_marked_for_varargs
private

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