PlayRho  1.1.0
An Interactive Real-Time-Oriented C++ Physics Engine & Library
playrho::SizedRange< IT > Class Template Reference

Template sized range value class. More...

#include <Range.hpp>

Inheritance diagram for playrho::SizedRange< IT >:
[legend]
Collaboration diagram for playrho::SizedRange< IT >:
[legend]

Public Types

using size_type = std::size_t
 Size type.
 
- Public Types inherited from playrho::Range< IT >
using iterator_type = IT
 Iterator type.
 
using value_type = decltype(*std::declval< iterator_type >())
 Value type alias.
 

Public Member Functions

constexpr SizedRange () noexcept=default
 Default constructor.
 
constexpr SizedRange (typename Range< IT >::iterator_type iter_begin, typename Range< IT >::iterator_type iter_end, size_type size) noexcept
 Initializing constructor.
 
constexpr size_type size () const noexcept
 Gets the size of this range.
 
- Public Member Functions inherited from playrho::Range< IT >
constexpr Range () noexcept=default
 Default constructor.
 
constexpr Range (iterator_type iter_begin, iterator_type iter_end) noexcept
 Initializing constructor.
 
constexpr iterator_type begin () const noexcept
 Gets the "begin" index value.
 
constexpr iterator_type end () const noexcept
 Gets the "end" index value.
 
constexpr bool empty () const noexcept
 Whether this range is empty.
 

Private Attributes

size_type m_size {}
 Size in number of elements in the range.
 

Detailed Description

template<typename IT>
class playrho::SizedRange< IT >

Template sized range value class.


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