Gamedev Framework (gf)  0.10.0
A C++14 framework for 2D games
Classes | Public Member Functions | Public Attributes | List of all members
gf::PositionRange< T > Struct Template Reference

A 2D range. More...

#include <gf/Range.h>

Classes

struct  Iterator
 An iterator for a 2D range. More...
 

Public Member Functions

constexpr Iterator begin () const noexcept
 Get a begin iterator. More...
 
constexpr Iterator end () const noexcept
 Get a end iterator. More...
 

Public Attributes

Range< Tfirst
 The range in the first dimension. More...
 
Range< Tsecond
 The range in the second dimension. More...
 

Detailed Description

template<typename T>
struct gf::PositionRange< T >

A 2D range.

gf::PositionRange represents a range across a 2D area.

Member Function Documentation

◆ begin()

template<typename T>
constexpr Iterator gf::PositionRange< T >::begin ( ) const
inlinenoexcept

Get a begin iterator.

Returns
A begin iterator
See also
end()

◆ end()

template<typename T>
constexpr Iterator gf::PositionRange< T >::end ( ) const
inlinenoexcept

Get a end iterator.

Returns
A end iterator
See also
begin()

Member Data Documentation

◆ first

template<typename T>
Range<T> gf::PositionRange< T >::first

The range in the first dimension.

◆ second

template<typename T>
Range<T> gf::PositionRange< T >::second

The range in the second dimension.