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

#include "comment-list.h"

Inheritance diagram for octave::comment_list:
Collaboration diagram for octave::comment_list:

Public Types

typedef std::list< comment_elt >::const_iterator const_iterator
 
typedef std::list< comment_elt >::const_reverse_iterator const_reverse_iterator
 
typedef std::list< comment_elt >::iterator iterator
 
typedef std::list< comment_elt >::reverse_iterator reverse_iterator
 

Public Member Functions

 comment_list (void)
 
void append (const comment_elt &elt)
 
void append (const std::string &s, comment_elt::comment_type t=comment_elt::unknown)
 
comment_eltback (void)
 
const comment_eltback (void) const
 
iterator begin (void)
 
const_iterator begin (void) const
 
void clear (void)
 
comment_listdup (void) const
 
bool empty (void) const
 
iterator end (void)
 
const_iterator end (void) const
 
iterator erase (iterator pos)
 
comment_eltfront (void)
 
const comment_eltfront (void) const
 
size_t length (void) const
 
void pop_back (void)
 
void pop_front (void)
 
void push_back (const comment_elt &s)
 
void push_front (const comment_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
 

Protected Attributes

std::list< comment_eltm_lst
 

Detailed Description

Definition at line 96 of file comment-list.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<comment_elt >::iterator octave::base_list< comment_elt >::iterator
inherited

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

◆ reverse_iterator

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

Constructor & Destructor Documentation

◆ comment_list()

octave::comment_list::comment_list ( void  )
inline

Definition at line 101 of file comment-list.h.

Referenced by dup().

Member Function Documentation

◆ append() [1/2]

void octave::comment_list::append ( const comment_elt elt)
inline

Definition at line 103 of file comment-list.h.

References octave::base_list< elt_type >::append().

Referenced by dup().

◆ append() [2/2]

void octave::comment_list::append ( const std::string &  s,
comment_elt::comment_type  t = comment_elt::unknown 
)
inline

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

◆ back() [1/2]

comment_elt & octave::base_list< comment_elt >::back ( void  )
inlineinherited

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

◆ back() [2/2]

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

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

◆ begin() [1/2]

iterator octave::base_list< comment_elt >::begin ( void  )
inlineinherited

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

◆ begin() [2/2]

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

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

◆ clear()

void octave::base_list< comment_elt >::clear ( void  )
inlineinherited

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

◆ dup()

comment_list * octave::comment_list::dup ( void  ) const

Definition at line 38 of file comment-list.cc.

References comment_list(), and append().

◆ empty()

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

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

◆ end() [1/2]

iterator octave::base_list< comment_elt >::end ( void  )
inlineinherited

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

◆ end() [2/2]

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

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

◆ erase()

iterator octave::base_list< comment_elt >::erase ( iterator  pos)
inlineinherited

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

◆ front() [1/2]

comment_elt & octave::base_list< comment_elt >::front ( void  )
inlineinherited

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

◆ front() [2/2]

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

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

◆ length()

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

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

◆ pop_back()

void octave::base_list< comment_elt >::pop_back ( void  )
inlineinherited

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

◆ pop_front()

void octave::base_list< comment_elt >::pop_front ( void  )
inlineinherited

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

◆ push_back()

void octave::base_list< comment_elt >::push_back ( const comment_elt s)
inlineinherited

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

◆ push_front()

void octave::base_list< comment_elt >::push_front ( const comment_elt s)
inlineinherited

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

◆ rbegin() [1/2]

reverse_iterator octave::base_list< comment_elt >::rbegin ( void  )
inlineinherited

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

◆ rbegin() [2/2]

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

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

◆ remove_if()

void octave::base_list< comment_elt >::remove_if ( pred)
inlineinherited

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

◆ rend() [1/2]

reverse_iterator octave::base_list< comment_elt >::rend ( void  )
inlineinherited

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

◆ rend() [2/2]

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

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

◆ size()

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

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

Member Data Documentation

◆ m_lst

std::list<comment_elt > octave::base_list< comment_elt >::m_lst
protectedinherited

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


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