neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
neolib::list< T > Class Template Reference

#include <list.hpp>

Inheritance diagram for neolib::list< T >:
neolib::reference_counted< i_list< abstract_t< T > > > neolib::i_list< abstract_t< T > > neolib::i_sequence_container< T, ConstIteratorType, IteratorType > neolib::i_container< T, ConstIteratorType, IteratorType > neolib::i_reference_counted

Public Types

typedef i_list< abstract_t< T > > abstract_type
 
typedef T value_type
 
typedef abstract_t< Tabstract_value_type
 
typedef std::list< value_typestd_type
 
- Public Types inherited from neolib::i_list< abstract_t< T > >
typedef self_type abstract_type
 
typedef base_type::size_type size_type
 
- Public Types inherited from neolib::i_sequence_container< T, ConstIteratorType, IteratorType >
typedef self_type abstract_type
 
typedef T value_type
 
typedef size_t size_type
 
typedef abstract_const_iterator::iterator_wrapper const_iterator
 
typedef abstract_iterator::iterator_wrapper iterator
 
typedef ConstIteratorType abstract_const_iterator
 
typedef IteratorType abstract_iterator
 
- Public Types inherited from neolib::i_container< T, ConstIteratorType, IteratorType >
typedef T value_type
 
typedef size_t size_type
 
typedef ConstIteratorType abstract_const_iterator
 
typedef IteratorType abstract_iterator
 
typedef abstract_const_iterator::iterator_wrapper const_iterator
 
typedef abstract_iterator::iterator_wrapper iterator
 
typedef std::reverse_iterator< const_iteratorconst_reverse_iterator
 
typedef std::reverse_iterator< iteratorreverse_iterator
 

Public Member Functions

 list ()
 
 list (const list &aOther)
 
 list (list &&aOther)
 
 list (const i_list< T > &aOther)
 
listoperator= (const list &aOther)
 
listoperator= (list &&aOther)
 
listoperator= (const i_list< T > &aOther)
 
const std_typeas_std_list () const
 
std_typeas_std_list ()
 
std_type to_std_list () const
 
constexpr bool operator== (const self_type &that) const noexcept
 
constexpr std::partial_ordering operator<=> (const self_type &that) const noexcept
 
size_type size () const noexcept final
 
size_type max_size () const noexcept final
 
void clear () final
 
void assign (const generic_container_type &aOther) final
 
size_type capacity () const final
 
void reserve (size_type aCapacity) final
 
void resize (size_type aSize) final
 
void resize (size_type aSize, const abstract_value_type &aValue) final
 
void push_back (const abstract_value_type &aValue) final
 
void pop_back () final
 
const abstract_value_typeback () const final
 
abstract_value_typeback () final
 
void push_front (const abstract_value_type &aValue) final
 
void pop_front () final
 
const abstract_value_typefront () const final
 
abstract_value_typefront () final
 
- Public Member Functions inherited from neolib::reference_counted< i_list< abstract_t< T > > >
 reference_counted () noexcept
 
 reference_counted (const reference_counted &aOther) noexcept
 
 ~reference_counted ()
 
reference_countedoperator= (const reference_counted &)
 
void add_ref () const noexcept override
 
void release () const override
 
int32_t use_count () const noexcept override
 
const base_typerelease_and_take_ownership () const override
 
base_typerelease_and_take_ownership () override
 
void pin () const noexcept override
 
void unpin () const override
 
i_ref_control_blockcontrol_block () override
 
- Public Member Functions inherited from neolib::i_list< abstract_t< T > >
virtual void push_front (const abstract_t< T > &aValue)=0
 
- Public Member Functions inherited from neolib::i_sequence_container< T, ConstIteratorType, IteratorType >
virtual void resize (size_type aSize, const value_type &aValue)=0
 
iterator insert (const abstract_iterator &aPosition, const value_type &aValue)
 
iterator insert (const abstract_const_iterator &aPosition, const value_type &aValue)
 
virtual void push_back (const value_type &aValue)=0
 
- Public Member Functions inherited from neolib::i_container< T, ConstIteratorType, IteratorType >
bool empty () const noexcept
 
const_iterator cbegin () const
 
const_iterator begin () const
 
iterator begin ()
 
const_iterator cend () const
 
const_iterator end () const
 
iterator end ()
 
const_reverse_iterator crbegin () const
 
const_reverse_iterator rbegin () const
 
reverse_iterator rbegin ()
 
const_reverse_iterator crend () const
 
const_reverse_iterator rend () const
 
reverse_iterator rend ()
 
iterator erase (const abstract_iterator &aPosition)
 
iterator erase (const abstract_const_iterator &aPosition)
 
iterator erase (const abstract_iterator &aFirst, const abstract_iterator &aLast)
 
iterator erase (const abstract_const_iterator &aFirst, const abstract_const_iterator &aLast)
 
i_containeroperator= (const i_container &aRhs)
 
- Public Member Functions inherited from neolib::i_reference_counted
virtual ~i_reference_counted ()=default
 

Protected Types

typedef container::const_iterator< T, typename std_type::const_iterator > container_const_iterator
 
typedef container::iterator< T, typename std_type::iterator, typename std_type::const_iterator > container_iterator
 
- Protected Types inherited from neolib::i_container< T, ConstIteratorType, IteratorType >
typedef i_container< T, ConstIteratorType, IteratorTypegeneric_container_type
 

Detailed Description

template<typename T>
class neolib::list< T >

Definition at line 47 of file list.hpp.

Member Typedef Documentation

◆ abstract_type

template<typename T >
typedef i_list<abstract_t<T> > neolib::list< T >::abstract_type

Definition at line 53 of file list.hpp.

◆ abstract_value_type

template<typename T >
typedef abstract_t<T> neolib::list< T >::abstract_value_type

Definition at line 55 of file list.hpp.

◆ container_const_iterator

template<typename T >
typedef container::const_iterator<T, typename std_type::const_iterator> neolib::list< T >::container_const_iterator
protected

Definition at line 65 of file list.hpp.

◆ container_iterator

template<typename T >
typedef container::iterator<T, typename std_type::iterator, typename std_type::const_iterator> neolib::list< T >::container_iterator
protected

Definition at line 66 of file list.hpp.

◆ std_type

template<typename T >
typedef std::list<value_type> neolib::list< T >::std_type

Definition at line 56 of file list.hpp.

◆ value_type

template<typename T >
typedef T neolib::list< T >::value_type

Definition at line 54 of file list.hpp.

Constructor & Destructor Documentation

◆ list() [1/4]

template<typename T >
neolib::list< T >::list ( )
inline

Definition at line 69 of file list.hpp.

◆ list() [2/4]

template<typename T >
neolib::list< T >::list ( const list< T > &  aOther)
inline

Definition at line 70 of file list.hpp.

◆ list() [3/4]

template<typename T >
neolib::list< T >::list ( list< T > &&  aOther)
inline

Definition at line 72 of file list.hpp.

◆ list() [4/4]

template<typename T >
neolib::list< T >::list ( const i_list< T > &  aOther)
inline

Definition at line 74 of file list.hpp.

Member Function Documentation

◆ as_std_list() [1/2]

template<typename T >
std_type & neolib::list< T >::as_std_list ( )
inline

Definition at line 97 of file list.hpp.

◆ as_std_list() [2/2]

template<typename T >
const std_type & neolib::list< T >::as_std_list ( ) const
inline

Definition at line 93 of file list.hpp.

◆ assign()

template<typename T >
void neolib::list< T >::assign ( const generic_container_type aOther)
inlinefinalvirtual

◆ back() [1/2]

template<typename T >
const abstract_value_type & neolib::list< T >::back ( ) const
inlinefinalvirtual

◆ back() [2/2]

template<typename T >
abstract_value_type & neolib::list< T >::back ( )
inlinefinalvirtual

◆ capacity()

template<typename T >
size_type neolib::list< T >::capacity ( ) const
inlinefinalvirtual

◆ clear()

template<typename T >
void neolib::list< T >::clear ( )
inlinefinalvirtual

◆ front() [1/2]

template<typename T >
const abstract_value_type & neolib::list< T >::front ( ) const
inlinefinalvirtual

Implements neolib::i_list< abstract_t< T > >.

Definition at line 208 of file list.hpp.

◆ front() [2/2]

template<typename T >
abstract_value_type & neolib::list< T >::front ( )
inlinefinalvirtual

Implements neolib::i_list< abstract_t< T > >.

Definition at line 209 of file list.hpp.

◆ max_size()

template<typename T >
size_type neolib::list< T >::max_size ( ) const
inlinefinalvirtualnoexcept

◆ operator<=>()

template<typename T >
constexpr std::partial_ordering neolib::list< T >::operator<=> ( const self_type &  that) const
inlineconstexprnoexcept

Definition at line 111 of file list.hpp.

◆ operator=() [1/3]

template<typename T >
list & neolib::list< T >::operator= ( const i_list< T > &  aOther)
inline

Definition at line 86 of file list.hpp.

◆ operator=() [2/3]

template<typename T >
list & neolib::list< T >::operator= ( const list< T > &  aOther)
inline

Definition at line 76 of file list.hpp.

◆ operator=() [3/3]

template<typename T >
list & neolib::list< T >::operator= ( list< T > &&  aOther)
inline

Definition at line 81 of file list.hpp.

◆ operator==()

template<typename T >
constexpr bool neolib::list< T >::operator== ( const self_type &  that) const
inlineconstexprnoexcept

Definition at line 107 of file list.hpp.

◆ pop_back()

template<typename T >
void neolib::list< T >::pop_back ( )
inlinefinalvirtual

◆ pop_front()

template<typename T >
void neolib::list< T >::pop_front ( )
inlinefinalvirtual

Implements neolib::i_list< abstract_t< T > >.

Definition at line 207 of file list.hpp.

◆ push_back()

template<typename T >
void neolib::list< T >::push_back ( const abstract_value_type aValue)
inlinefinal

Definition at line 185 of file list.hpp.

◆ push_front()

template<typename T >
void neolib::list< T >::push_front ( const abstract_value_type aValue)
inlinefinal

Definition at line 206 of file list.hpp.

◆ reserve()

template<typename T >
void neolib::list< T >::reserve ( size_type  aCapacity)
inlinefinalvirtual

◆ resize() [1/2]

template<typename T >
void neolib::list< T >::resize ( size_type  aSize)
inlinefinalvirtual

◆ resize() [2/2]

template<typename T >
void neolib::list< T >::resize ( size_type  aSize,
const abstract_value_type aValue 
)
inlinefinal

Definition at line 181 of file list.hpp.

◆ size()

template<typename T >
size_type neolib::list< T >::size ( ) const
inlinefinalvirtualnoexcept

◆ to_std_list()

template<typename T >
std_type neolib::list< T >::to_std_list ( ) const
inline

Definition at line 101 of file list.hpp.


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