GNU Octave  9.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
base_list< elt_type > Class Template Reference

#include "base-list.h"

Public Types

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

Public Member Functions

 base_list ()=default
 
 base_list (const base_list &bl)=default
 
 base_list (const std::list< elt_type > &l)
 
virtual ~base_list ()=default
 
void append (const elt_type &s)
 
elt_type & back ()
 
const elt_type & back () const
 
iterator begin ()
 
const_iterator begin () const
 
void clear ()
 
bool empty () const
 
iterator end ()
 
const_iterator end () const
 
iterator erase (iterator pos)
 
elt_type & front ()
 
const elt_type & front () const
 
std::size_t length () const
 
base_listoperator= (const base_list &bl)=default
 
void pop_back ()
 
void pop_front ()
 
void push_back (const elt_type &s)
 
void push_front (const elt_type &s)
 
reverse_iterator rbegin ()
 
const_reverse_iterator rbegin () const
 
template<typename P >
void remove_if (P pred)
 
reverse_iterator rend ()
 
const_reverse_iterator rend () const
 
std::size_t size () const
 

Protected Attributes

std::list< elt_type > m_lst
 

Detailed Description

template<typename elt_type>
class base_list< elt_type >

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

Member Typedef Documentation

◆ const_iterator

template<typename elt_type >
typedef std::list<elt_type>::const_iterator base_list< elt_type >::const_iterator

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

◆ const_reverse_iterator

template<typename elt_type >
typedef std::list<elt_type>::const_reverse_iterator base_list< elt_type >::const_reverse_iterator

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

◆ iterator

template<typename elt_type >
typedef std::list<elt_type>::iterator base_list< elt_type >::iterator

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

◆ reverse_iterator

template<typename elt_type >
typedef std::list<elt_type>::reverse_iterator base_list< elt_type >::reverse_iterator

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

Constructor & Destructor Documentation

◆ base_list() [1/3]

template<typename elt_type >
base_list< elt_type >::base_list ( )
default

◆ base_list() [2/3]

template<typename elt_type >
base_list< elt_type >::base_list ( const std::list< elt_type > &  l)
inline

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

◆ base_list() [3/3]

template<typename elt_type >
base_list< elt_type >::base_list ( const base_list< elt_type > &  bl)
default

◆ ~base_list()

template<typename elt_type >
virtual base_list< elt_type >::~base_list ( )
virtualdefault

Member Function Documentation

◆ append()

template<typename elt_type >
void base_list< elt_type >::append ( const elt_type &  s)
inline

◆ back() [1/2]

template<typename elt_type >
elt_type& base_list< elt_type >::back ( )
inline

◆ back() [2/2]

template<typename elt_type >
const elt_type& base_list< elt_type >::back ( ) const
inline

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

◆ begin() [1/2]

◆ begin() [2/2]

template<typename elt_type >
const_iterator base_list< elt_type >::begin ( ) const
inline

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

◆ clear()

template<typename elt_type >
void base_list< elt_type >::clear ( )
inline

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

◆ empty()

template<typename elt_type >
bool base_list< elt_type >::empty ( ) const
inline

◆ end() [1/2]

◆ end() [2/2]

template<typename elt_type >
const_iterator base_list< elt_type >::end ( ) const
inline

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

◆ erase()

template<typename elt_type >
iterator base_list< elt_type >::erase ( iterator  pos)
inline

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

Referenced by base_parser::validate_param_list().

◆ front() [1/2]

◆ front() [2/2]

template<typename elt_type >
const elt_type& base_list< elt_type >::front ( ) const
inline

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

◆ length()

◆ operator=()

template<typename elt_type >
base_list& base_list< elt_type >::operator= ( const base_list< elt_type > &  bl)
default

◆ pop_back()

template<typename elt_type >
void base_list< elt_type >::pop_back ( )
inline

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

Referenced by base_parser::set_stmt_print_flag().

◆ pop_front()

template<typename elt_type >
void base_list< elt_type >::pop_front ( )
inline

◆ push_back()

template<typename elt_type >
void base_list< elt_type >::push_back ( const elt_type &  s)
inline

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

◆ push_front()

template<typename elt_type >
void base_list< elt_type >::push_front ( const elt_type &  s)
inline

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

◆ rbegin() [1/2]

template<typename elt_type >
reverse_iterator base_list< elt_type >::rbegin ( )
inline

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

◆ rbegin() [2/2]

template<typename elt_type >
const_reverse_iterator base_list< elt_type >::rbegin ( ) const
inline

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

◆ remove_if()

template<typename elt_type >
template<typename P >
void base_list< elt_type >::remove_if ( pred)
inline

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

◆ rend() [1/2]

template<typename elt_type >
reverse_iterator base_list< elt_type >::rend ( )
inline

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

◆ rend() [2/2]

template<typename elt_type >
const_reverse_iterator base_list< elt_type >::rend ( ) const
inline

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

◆ size()

template<typename elt_type >
std::size_t base_list< elt_type >::size ( ) const
inline

Member Data Documentation

◆ m_lst

template<typename elt_type >
std::list<elt_type> base_list< elt_type >::m_lst
protected

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


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