#include "comment-list.h"
Public Types | |
typedef std::list < octave_comment_elt > ::const_iterator | const_iterator |
typedef std::list < octave_comment_elt > ::iterator | iterator |
Public Member Functions | |
octave_comment_list (void) | |
void | append (const octave_comment_elt &elt) |
void | append (const std::string &s, octave_comment_elt::comment_type t=octave_comment_elt::unknown) |
octave_comment_elt & | back (void) |
const octave_comment_elt & | back (void) const |
iterator | begin (void) |
const_iterator | begin (void) const |
void | clear (void) |
octave_comment_list * | dup (void) const |
bool | empty (void) const |
iterator | end (void) |
const_iterator | end (void) const |
iterator | erase (iterator pos) |
const octave_comment_elt & | front (void) const |
octave_comment_elt & | front (void) |
size_t | length (void) const |
void | pop_back (void) |
void | pop_front (void) |
void | push_back (const octave_comment_elt &s) |
void | push_front (const octave_comment_elt &s) |
void | remove_if (P pred) |
size_t | size (void) const |
Definition at line 83 of file comment-list.h.
typedef std::list<octave_comment_elt >::const_iterator octave_base_list< octave_comment_elt >::const_iterator [inherited] |
Definition at line 35 of file base-list.h.
typedef std::list<octave_comment_elt >::iterator octave_base_list< octave_comment_elt >::iterator [inherited] |
Definition at line 34 of file base-list.h.
octave_comment_list::octave_comment_list | ( | void | ) | [inline] |
Definition at line 88 of file comment-list.h.
Referenced by dup().
void octave_comment_list::append | ( | const octave_comment_elt & | elt | ) | [inline] |
Reimplemented from octave_base_list< octave_comment_elt >.
Definition at line 90 of file comment-list.h.
References octave_base_list< elt_type >::append().
Referenced by octave_comment_buffer::do_append(), and dup().
void octave_comment_list::append | ( | const std::string & | s, | |
octave_comment_elt::comment_type | t = octave_comment_elt::unknown | |||
) | [inline] |
octave_comment_elt & octave_base_list< octave_comment_elt >::back | ( | void | ) | [inline, inherited] |
Definition at line 76 of file base-list.h.
const octave_comment_elt & octave_base_list< octave_comment_elt >::back | ( | void | ) | const [inline, inherited] |
Definition at line 79 of file base-list.h.
iterator octave_base_list< octave_comment_elt >::begin | ( | void | ) | [inline, inherited] |
Definition at line 69 of file base-list.h.
Referenced by dup().
const_iterator octave_base_list< octave_comment_elt >::begin | ( | void | ) | const [inline, inherited] |
Definition at line 70 of file base-list.h.
void octave_base_list< octave_comment_elt >::clear | ( | void | ) | [inline, inherited] |
Definition at line 67 of file base-list.h.
octave_comment_list * octave_comment_list::dup | ( | void | ) | const |
Definition at line 36 of file comment-list.cc.
References append(), octave_base_list< octave_comment_elt >::begin(), octave_base_list< octave_comment_elt >::end(), and octave_comment_list().
Referenced by tree_statement::dup(), tree_switch_command::dup(), tree_switch_case::dup(), tree_if_command::dup(), tree_if_clause::dup(), tree_complex_for_command::dup(), tree_simple_for_command::dup(), tree_do_until_command::dup(), tree_while_command::dup(), tree_unwind_protect_command::dup(), and tree_try_catch_command::dup().
bool octave_base_list< octave_comment_elt >::empty | ( | void | ) | const [inline, inherited] |
Definition at line 37 of file base-list.h.
iterator octave_base_list< octave_comment_elt >::end | ( | void | ) | [inline, inherited] |
Definition at line 72 of file base-list.h.
Referenced by dup().
const_iterator octave_base_list< octave_comment_elt >::end | ( | void | ) | const [inline, inherited] |
Definition at line 73 of file base-list.h.
iterator octave_base_list< octave_comment_elt >::erase | ( | iterator | pos | ) | [inline, inherited] |
Definition at line 42 of file base-list.h.
octave_comment_elt & octave_base_list< octave_comment_elt >::front | ( | void | ) | [inline, inherited] |
Definition at line 75 of file base-list.h.
const octave_comment_elt & octave_base_list< octave_comment_elt >::front | ( | void | ) | const [inline, inherited] |
Definition at line 78 of file base-list.h.
size_t octave_base_list< octave_comment_elt >::length | ( | void | ) | const [inline, inherited] |
Definition at line 40 of file base-list.h.
void octave_base_list< octave_comment_elt >::pop_back | ( | void | ) | [inline, inherited] |
Definition at line 85 of file base-list.h.
void octave_base_list< octave_comment_elt >::pop_front | ( | void | ) | [inline, inherited] |
Definition at line 84 of file base-list.h.
void octave_base_list< octave_comment_elt >::push_back | ( | const octave_comment_elt & | s | ) | [inline, inherited] |
Definition at line 82 of file base-list.h.
void octave_base_list< octave_comment_elt >::push_front | ( | const octave_comment_elt & | s | ) | [inline, inherited] |
Definition at line 81 of file base-list.h.
void octave_base_list< octave_comment_elt >::remove_if | ( | P | pred | ) | [inline, inherited] |
Definition at line 45 of file base-list.h.
size_t octave_base_list< octave_comment_elt >::size | ( | void | ) | const [inline, inherited] |
Definition at line 39 of file base-list.h.