OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Private Attributes | List of all members
Segment< T > Class Template Reference

#include <Segment.h>

Public Types

using iterator = detail::RangeIterator< T >
 
using value_type = typename iterator::value_type
 
using difference_type = typename iterator::difference_type
 
using size_type = std::size_t
 
using reference = typename iterator::reference
 

Public Member Functions

constexpr Segment ()
 
constexpr Segment (T first, T last)
 
constexpr iterator begin () const
 
constexpr iterator end () const
 
constexpr T front () const
 
constexpr T back () const
 
constexpr T operator[] (size_type index) const
 
constexpr bool contains (T value) const
 
constexpr size_type size () const
 

Private Attributes

_first = T(1)
 
_last = T(0)
 

Member Typedef Documentation

◆ difference_type

template<class T >
using Segment< T >::difference_type = typename iterator::difference_type

◆ iterator

template<class T >
using Segment< T >::iterator = detail::RangeIterator<T>

◆ reference

template<class T >
using Segment< T >::reference = typename iterator::reference

◆ size_type

template<class T >
using Segment< T >::size_type = std::size_t

◆ value_type

template<class T >
using Segment< T >::value_type = typename iterator::value_type

Constructor & Destructor Documentation

◆ Segment() [1/2]

template<class T >
constexpr Segment< T >::Segment ( )
inlineconstexpr

◆ Segment() [2/2]

template<class T >
constexpr Segment< T >::Segment ( first,
last 
)
inlineconstexpr

Member Function Documentation

◆ back()

template<class T >
constexpr T Segment< T >::back ( ) const
inlineconstexpr

◆ begin()

template<class T >
constexpr iterator Segment< T >::begin ( ) const
inlineconstexpr

◆ contains()

template<class T >
constexpr bool Segment< T >::contains ( value) const
inlineconstexpr

◆ end()

template<class T >
constexpr iterator Segment< T >::end ( ) const
inlineconstexpr

◆ front()

template<class T >
constexpr T Segment< T >::front ( ) const
inlineconstexpr

◆ operator[]()

template<class T >
constexpr T Segment< T >::operator[] ( size_type  index) const
inlineconstexpr

◆ size()

template<class T >
constexpr size_type Segment< T >::size ( ) const
inlineconstexpr

Member Data Documentation

◆ _first

template<class T >
T Segment< T >::_first = T(1)
private

◆ _last

template<class T >
T Segment< T >::_last = T(0)
private

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