SyTen
syten::GridImpl::Coord Struct Reference

Use two integers as coordinates into the grid. More...

#include <grid.h>

+ Inheritance diagram for syten::GridImpl::Coord:
+ Collaboration diagram for syten::GridImpl::Coord:

Public Member Functions

Coord a (Coord const &a)
 Adds one coordinate to another, element-wise. More...
 
Coord a (int x, int y)
 Adds an x- and y-offset to a coordinate. More...
 
Coord add (Coord const &a)
 Adds one coordinate to another, element-wise. More...
 
Coord add (int x, int y)
 Adds an x- and y-offset to a coordinate. More...
 
 Array (std::array< T, Sz > const &other)
 Copy ctor from an array. More...
 
 Array (std::initializer_list< T > list)
 Ctor from an initializer list. More...
 
Coord operator+ (Coord const &b)
 Adds one coordinate to another, element-wise. More...
 
- Public Member Functions inherited from syten::ArrayImpl::Array< T, Sz >
MemoryUsage::MemorySize allocSize () const
 MemorySize support. More...
 
 Array (std::array< T, Sz > const &other)
 Copy ctor from an array. More...
 
 Array (std::initializer_list< T > list)
 Ctor from an initializer list. More...
 
ConstSpan< T > cs () const
 Creates a ConstSpan over this array. More...
 
MutSpan< T > ms ()
 Creates a MutSpan over this array. More...
 
T & operator() (long long int v)
 Access the element at position restrict(v, this->size()), allowing for wrap-arounds and negative indices. More...
 
T const & operator() (long long int v) const
 Access the element at position restrict(v, this->size()), allowing for wrap-arounds and negative indices. More...
 
template<typename Archive >
void serialize (Archive &ar, const unsigned int)
 Boost serialisation. More...
 
- Public Member Functions inherited from std::array< T, Sz >
at (T... args)
 
back (T... args)
 
begin (T... args)
 
cbegin (T... args)
 
cend (T... args)
 
crbegin (T... args)
 
crend (T... args)
 
data (T... args)
 
empty (T... args)
 
end (T... args)
 
fill (T... args)
 
front (T... args)
 
max_size (T... args)
 
operator[] (T... args)
 
rbegin (T... args)
 
rend (T... args)
 
size (T... args)
 
swap (T... args)
 

Additional Inherited Members

- Public Attributes inherited from std::array< T, Sz >
elements
 STL member. More...
 

Detailed Description

Use two integers as coordinates into the grid.


The documentation for this struct was generated from the following files: