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 >
T at (T... args)
 
T back (T... args)
 
T begin (T... args)
 
T cbegin (T... args)
 
T cend (T... args)
 
T crbegin (T... args)
 
T crend (T... args)
 
T data (T... args)
 
T empty (T... args)
 
T end (T... args)
 
T fill (T... args)
 
T front (T... args)
 
T max_size (T... args)
 
T operator[] (T... args)
 
T rbegin (T... args)
 
T rend (T... args)
 
T size (T... args)
 
T swap (T... args)
 

Additional Inherited Members

- Public Attributes inherited from std::array< T, Sz >
T 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: