CONZEPT 16 C++ API
C16::Series< Element > Class Template Reference

Series of elements. More...

#include "C16/Series.hpp"

Inheritance diagram for C16::Series< Element >:
C16::SeriesGeneric C16::Array< Element > C16::ArrayGeneric C16::ArrayGeneric

Detailed Description

template<typename Element>
class C16::Series< Element >

Series of elements.

Template Parameters
ElementType of the elements of the series

Public Member Functions

const Element & get (size_type number) const
 Gets an element of the series by meants if its number. More...
 
Element & get (size_type number)
 Gets an element of the series by meants if its number. More...
 
- Public Member Functions inherited from C16::ArrayGeneric
virtual size_type size () const =0
 Gets the size of the array. More...
 
virtual bool empty () const
 Gets if the array is empty. More...
 
- Public Member Functions inherited from C16::Array< Element >
const_reference operator[] (size_type index) const
 Gets an element of the array by means of its index. More...
 
reference operator[] (size_type index)
 Gets an element of the array by means of its index. More...
 
const_reference at (size_type index) const
 Gets an element of the array by means of its index. More...
 
reference at (size_type index)
 Gets an element of the array by means of its index. More...
 
const_reference front () const
 Gets the first element of the array. More...
 
reference front ()
 Gets the first element of the array. More...
 
const_reference back () const
 Gets the last element of the array. More...
 
reference back ()
 Gets the last element of the array. More...
 
IteratorConst begin () const noexcept
 Gets a const-iterator of the first element of the array. More...
 
Iterator begin () noexcept
 Gets an iterator of the first element of the array. More...
 
IteratorConst cbegin () const noexcept
 Gets a const-iterator of the first element of the array. More...
 
IteratorConst end () const noexcept
 Gets a const-iterator of the element following the last element of the array. More...
 
Iterator end () noexcept
 Gets an iterator of the element following the last element of the array. More...
 
IteratorConst cend () const noexcept
 Gets a const-iterator of the element following the last element of the array. More...
 
IteratorConst rbegin () const noexcept
 Gets a const-iterator of the last element of the array. More...
 
Iterator rbegin () noexcept
 Gets an iterator of the last element of the array. More...
 
IteratorConst crbegin () const noexcept
 Gets a const-iterator of the last element of the array. More...
 
IteratorConst rend () const noexcept
 Gets a const-iterator of the element preceding the first element of the array. More...
 
Iterator rend () noexcept
 Gets an iterator of the element preceding the first element of the array. More...
 
IteratorConst crend () const noexcept
 Gets a const-iterator of the element preceding the first element of the array. More...
 

Additional Inherited Members

- Public Types inherited from C16::ArrayGeneric
using size_type = std::size_t
 Type of the size of the array. More...
 
- Public Types inherited from C16::Array< Element >
using value_type = Element
 Type of the elements of the array. More...
 
using const_reference = const Element &
 Type of a constant reference to an element of the array. More...
 
using reference = Element &
 Type of a reference to an element of the array. More...
 

Member Function Documentation

◆ get() [1/2]

template<typename Element >
const Element& C16::Series< Element >::get ( size_type  number) const

Gets an element of the series by meants if its number.

Parameters
numberNumber of the element (1 to size())
Returns
Element
Exceptions
Exception::InvalidityNumber invalid.

◆ get() [2/2]

template<typename Element >
Element& C16::Series< Element >::get ( size_type  number)

Gets an element of the series by meants if its number.

Parameters
numberNumber of the element (1 to size())
Returns
Element
Exceptions
Exception::InvalidityNumber invalid.