A toolkit for working with phylogenetic data.
v0.18.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
IndexedList< T > Class Template Reference

#include <genesis/utils/core/indexed_list.hpp>

Detailed Description

template<typename T>
class genesis::utils::IndexedList< T >

http://www.boost.org/doc/libs/1_59_0/doc/html/container/non_standard_containers.html

Definition at line 59 of file indexed_list.hpp.

Public Member Functions

 IndexedList ()=default
 Default constructor. More...
 
 IndexedList (size_type n)
 Fill constructor with default initialization of the values. More...
 
 IndexedList (size_type n, value_type const &val)
 Fill constructor, using a certain value to initialize all elements. More...
 
 IndexedList (IndexedList const &other)
 Range constructor, copies all elements in the range [ first, last ). More...
 
 IndexedList (IndexedList &&other)=default
 Move constructor. More...
 
 IndexedList (std::initializer_list< value_type > il)
 Construct from initializer list by copying all elements. More...
 
 ~IndexedList ()=default
 Destructor. More...
 
reference at (size_type n)
 
const_reference at (size_type n) const
 
reference back ()
 
const_reference back () const
 
iterator begin () noexcept
 
const_iterator begin () const noexcept
 
const_iterator cbegin () const noexcept
 
const_iterator cend () const noexcept
 
bool empty () const noexcept
 
iterator end () noexcept
 
const_iterator end () const noexcept
 
reference front ()
 
const_reference front () const
 
IndexedListoperator= (IndexedList other)
 Copy assignment. More...
 
IndexedListoperator= (IndexedList &&other)=default
 Move assignment. More...
 
reference operator[] (size_type n)
 
const_reference operator[] (size_type n) const
 
void push_back (value_type const &value)
 
void push_back (value_type &&value)
 
size_type size () const noexcept
 
void swap (IndexedList &other)
 

Public Types

using const_iterator = IndexedListIterator< const value_type >
 
using const_pointer = const value_type *
 
using const_reference = const value_type &
 
using iterator = IndexedListIterator< value_type >
 
using pointer = value_type *
 
using reference = value_type &
 
using size_type = size_t
 
using value_type = T
 

Constructor & Destructor Documentation

IndexedList ( )
default

Default constructor.

IndexedList ( size_type  n)
inlineexplicit

Fill constructor with default initialization of the values.

Definition at line 91 of file indexed_list.hpp.

IndexedList ( size_type  n,
value_type const &  val 
)
inline

Fill constructor, using a certain value to initialize all elements.

Definition at line 98 of file indexed_list.hpp.

IndexedList ( IndexedList< T > const &  other)
inline

Range constructor, copies all elements in the range [ first, last ).

Copy constructor.

Definition at line 121 of file indexed_list.hpp.

IndexedList ( IndexedList< T > &&  other)
default

Move constructor.

IndexedList ( std::initializer_list< value_type il)
inline

Construct from initializer list by copying all elements.

Definition at line 138 of file indexed_list.hpp.

~IndexedList ( )
default

Destructor.

Member Function Documentation

reference at ( size_type  n)
inline

Definition at line 234 of file indexed_list.hpp.

const_reference at ( size_type  n) const
inline

Definition at line 239 of file indexed_list.hpp.

reference back ( )
inline

Definition at line 254 of file indexed_list.hpp.

const_reference back ( ) const
inline

Definition at line 259 of file indexed_list.hpp.

iterator begin ( )
inlinenoexcept

Definition at line 176 of file indexed_list.hpp.

const_iterator begin ( ) const
inlinenoexcept

Definition at line 181 of file indexed_list.hpp.

const_iterator cbegin ( ) const
inlinenoexcept

Definition at line 196 of file indexed_list.hpp.

const_iterator cend ( ) const
inlinenoexcept

Definition at line 201 of file indexed_list.hpp.

bool empty ( ) const
inlinenoexcept

Definition at line 215 of file indexed_list.hpp.

iterator end ( )
inlinenoexcept

Definition at line 186 of file indexed_list.hpp.

const_iterator end ( ) const
inlinenoexcept

Definition at line 191 of file indexed_list.hpp.

reference front ( )
inline

Definition at line 244 of file indexed_list.hpp.

const_reference front ( ) const
inline

Definition at line 249 of file indexed_list.hpp.

IndexedList& operator= ( IndexedList< T >  other)
inline

Copy assignment.

Definition at line 149 of file indexed_list.hpp.

IndexedList& operator= ( IndexedList< T > &&  other)
default

Move assignment.

reference operator[] ( size_type  n)
inline

Definition at line 224 of file indexed_list.hpp.

const_reference operator[] ( size_type  n) const
inline

Definition at line 229 of file indexed_list.hpp.

void push_back ( value_type const &  value)
inline

Definition at line 268 of file indexed_list.hpp.

void push_back ( value_type &&  value)
inline

Definition at line 273 of file indexed_list.hpp.

size_type size ( ) const
inlinenoexcept

Definition at line 210 of file indexed_list.hpp.

void swap ( IndexedList< T > &  other)
inline

Definition at line 166 of file indexed_list.hpp.

Member Typedef Documentation

Definition at line 75 of file indexed_list.hpp.

using const_pointer = const value_type*

Definition at line 72 of file indexed_list.hpp.

using const_reference = const value_type&

Definition at line 70 of file indexed_list.hpp.

Definition at line 74 of file indexed_list.hpp.

using pointer = value_type*

Definition at line 71 of file indexed_list.hpp.

Definition at line 69 of file indexed_list.hpp.

using size_type = size_t

Definition at line 77 of file indexed_list.hpp.

using value_type = T

Definition at line 67 of file indexed_list.hpp.


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