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

#include "base-list.h"

Collaboration diagram for octave::base_list< elt_type >:

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

Protected Attributes

std::list< elt_type > m_lst
 

Detailed Description

template<typename elt_type>
class octave::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 octave::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 octave::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 octave::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 octave::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 >
octave::base_list< elt_type >::base_list ( void  )
default

◆ base_list() [2/3]

template<typename elt_type >
octave::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 >
octave::base_list< elt_type >::base_list ( const base_list< elt_type > &  bl)
default

◆ ~base_list()

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

Member Function Documentation

◆ append()

◆ back() [1/2]

◆ back() [2/2]

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

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

◆ begin() [1/2]

◆ begin() [2/2]

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

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

◆ clear()

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

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

◆ empty()

◆ end() [1/2]

◆ end() [2/2]

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

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

◆ erase()

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

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

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

◆ front() [1/2]

◆ front() [2/2]

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

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

◆ length()

◆ operator=()

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

◆ pop_back()

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

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

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

◆ pop_front()

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

◆ push_back()

template<typename elt_type >
void octave::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 octave::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 octave::base_list< elt_type >::rbegin ( void  )
inline

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

Referenced by octave_user_function::maybe_relocate_end_internal().

◆ rbegin() [2/2]

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

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

◆ remove_if()

template<typename elt_type >
template<typename P >
void octave::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 octave::base_list< elt_type >::rend ( void  )
inline

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

Referenced by octave_user_function::maybe_relocate_end_internal().

◆ rend() [2/2]

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

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

◆ size()

Member Data Documentation

◆ m_lst

template<typename elt_type >
std::list<elt_type> octave::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: