#include <coord.h>
Public Types | |
typedef int | ValueType |
Public Member Functions | |
__host__ __device__ | Coord (const int &nx=0, const int &ny=0, const int &nz=0) |
template<int X, int Y, int Z> | |
__host__ __device__ | Coord (FixedCoord< X, Y, Z >) |
__host__ __device__ Coord< 3 > | indexToCoord (int index) const |
converts a linear index to a coordinate in a cuboid of size given by the Coord | |
__host__ __device__ std::size_t | toIndex (const Coord< 3 > &dim) const |
converts the coord to a linear index. | |
__host__ __device__ int & | x () |
__host__ __device__ const int & | x () const |
__host__ __device__ int & | y () |
__host__ __device__ const int & | y () const |
__host__ __device__ int & | z () |
__host__ __device__ const int & | z () const |
__host__ __device__ int & | operator[] (const int &i) |
__host__ __device__ const int & | operator[] (const int &i) const |
__host__ __device__ bool | operator== (const Coord &comp) const |
__host__ __device__ bool | operator!= (const Coord &comp) const |
__host__ __device__ bool | operator< (const Coord &comp) const |
__host__ __device__ Coord | operator+ (const Coord &addend) const |
__host__ __device__ void | operator+= (const Coord &addend) |
__host__ __device__ void | operator-= (const Coord &minuend) |
__host__ __device__ Coord | operator- (const Coord &minuend) const |
__host__ __device__ Coord | operator- () const |
__host__ __device__ Coord | operator* (const int &scale) const |
__host__ __device__ int | operator* (const Coord &multiplier) const |
__host__ __device__ Coord | operator/ (const int &divisor) const |
__host__ __device__ Coord | scale (const Coord< 3 > &scale) const |
__host__ __device__ int | prod () const |
__host__ __device__ int | sum () const |
Coord (max)(const Coord< 3 > &other) const | |
Coord (min)(const Coord< 3 > &other) const | |
boost::detail::multi_array::extent_gen< 3ul > | toExtents () const |
std::string | toString () const |
Static Public Member Functions | |
__host__ static __device__ Coord< 3 > | diagonal (const int &nx) |
Private Attributes | |
int | c [3] |
Friends | |
class | Serialization |
class | Typemaps |
typedef int LibGeoDecomp::Coord< 3 >::ValueType |
__host__ __device__ LibGeoDecomp::Coord< 3 >::Coord | ( | const int & | nx = 0 , |
|
const int & | ny = 0 , |
|||
const int & | nz = 0 | |||
) | [inline, explicit] |
__host__ __device__ LibGeoDecomp::Coord< 3 >::Coord | ( | FixedCoord< X, Y, Z > | ) | [inline, explicit] |
LibGeoDecomp::Coord< 3 >::Coord | ( | max | ) | const [inline] |
LibGeoDecomp::Coord< 3 >::Coord | ( | min | ) | const [inline] |
__host__ static __device__ Coord<3> LibGeoDecomp::Coord< 3 >::diagonal | ( | const int & | nx | ) | [inline, static] |
__host__ __device__ Coord<3> LibGeoDecomp::Coord< 3 >::indexToCoord | ( | int | index | ) | const [inline] |
converts a linear index to a coordinate in a cuboid of size given by the Coord
__host__ __device__ bool LibGeoDecomp::Coord< 3 >::operator!= | ( | const Coord< 3 > & | comp | ) | const [inline] |
__host__ __device__ Coord LibGeoDecomp::Coord< 3 >::operator* | ( | const int & | scale | ) | const [inline] |
__host__ __device__ int LibGeoDecomp::Coord< 3 >::operator* | ( | const Coord< 3 > & | multiplier | ) | const [inline] |
__host__ __device__ Coord LibGeoDecomp::Coord< 3 >::operator+ | ( | const Coord< 3 > & | addend | ) | const [inline] |
__host__ __device__ void LibGeoDecomp::Coord< 3 >::operator+= | ( | const Coord< 3 > & | addend | ) | [inline] |
__host__ __device__ Coord LibGeoDecomp::Coord< 3 >::operator- | ( | const Coord< 3 > & | minuend | ) | const [inline] |
__host__ __device__ Coord LibGeoDecomp::Coord< 3 >::operator- | ( | ) | const [inline] |
__host__ __device__ void LibGeoDecomp::Coord< 3 >::operator-= | ( | const Coord< 3 > & | minuend | ) | [inline] |
__host__ __device__ Coord LibGeoDecomp::Coord< 3 >::operator/ | ( | const int & | divisor | ) | const [inline] |
__host__ __device__ bool LibGeoDecomp::Coord< 3 >::operator< | ( | const Coord< 3 > & | comp | ) | const [inline] |
__host__ __device__ bool LibGeoDecomp::Coord< 3 >::operator== | ( | const Coord< 3 > & | comp | ) | const [inline] |
__host__ __device__ int& LibGeoDecomp::Coord< 3 >::operator[] | ( | const int & | i | ) | [inline] |
__host__ __device__ const int& LibGeoDecomp::Coord< 3 >::operator[] | ( | const int & | i | ) | const [inline] |
__host__ __device__ int LibGeoDecomp::Coord< 3 >::prod | ( | ) | const [inline] |
__host__ __device__ Coord LibGeoDecomp::Coord< 3 >::scale | ( | const Coord< 3 > & | scale | ) | const [inline] |
__host__ __device__ int LibGeoDecomp::Coord< 3 >::sum | ( | ) | const [inline] |
boost::detail::multi_array::extent_gen<3ul> LibGeoDecomp::Coord< 3 >::toExtents | ( | ) | const [inline] |
__host__ __device__ std::size_t LibGeoDecomp::Coord< 3 >::toIndex | ( | const Coord< 3 > & | dim | ) | const [inline] |
std::string LibGeoDecomp::Coord< 3 >::toString | ( | ) | const [inline] |
__host__ __device__ const int& LibGeoDecomp::Coord< 3 >::x | ( | ) | const [inline] |
__host__ __device__ int& LibGeoDecomp::Coord< 3 >::x | ( | ) | [inline] |
Referenced by LibGeoDecomp::SoAGrid< CELL, TOPOLOGY, TOPOLOGICALLY_CORRECT >::delegateGet(), LibGeoDecomp::SoAGrid< CELL, TOPOLOGY, TOPOLOGICALLY_CORRECT >::delegateSet(), LibGeoDecomp::SoAGrid< CELL, TOPOLOGY, TOPOLOGICALLY_CORRECT >::loadRegion(), LibGeoDecomp::CudaSimulator< CELL_TYPE >::nanoStep(), LibGeoDecomp::SoAGridHelpers::GenIndex< DIM_X, DIM_Y, DIM_Z >::operator()(), LibGeoDecomp::SoAGridHelpers::SetContent< CELL, INIT_INTERIOR >::operator()(), LibGeoDecomp::GridHelpers::FillCoordBox< 3 >::operator()(), LibGeoDecomp::TopologiesHelpers::Accessor< 3 >::operator()(), LibGeoDecomp::SoAGrid< CELL, TOPOLOGY, TOPOLOGICALLY_CORRECT >::saveRegion(), scale(), LibGeoDecomp::SoAGrid< CELL, TOPOLOGY, TOPOLOGICALLY_CORRECT >::SoAGrid(), toIndex(), and LibGeoDecomp::SerialBOVWriter< CELL_TYPE >::writeHeader().
__host__ __device__ int& LibGeoDecomp::Coord< 3 >::y | ( | ) | [inline] |
Referenced by LibGeoDecomp::SoAGrid< CELL, TOPOLOGY, TOPOLOGICALLY_CORRECT >::delegateGet(), LibGeoDecomp::SoAGrid< CELL, TOPOLOGY, TOPOLOGICALLY_CORRECT >::delegateSet(), LibGeoDecomp::SoAGrid< CELL, TOPOLOGY, TOPOLOGICALLY_CORRECT >::loadRegion(), LibGeoDecomp::CudaSimulator< CELL_TYPE >::nanoStep(), LibGeoDecomp::SoAGridHelpers::GenIndex< DIM_X, DIM_Y, DIM_Z >::operator()(), LibGeoDecomp::SoAGridHelpers::SetContent< CELL, INIT_INTERIOR >::operator()(), LibGeoDecomp::GridHelpers::FillCoordBox< 3 >::operator()(), LibGeoDecomp::TopologiesHelpers::Accessor< 3 >::operator()(), LibGeoDecomp::SoAGrid< CELL, TOPOLOGY, TOPOLOGICALLY_CORRECT >::saveRegion(), scale(), LibGeoDecomp::SoAGrid< CELL, TOPOLOGY, TOPOLOGICALLY_CORRECT >::SoAGrid(), toIndex(), and LibGeoDecomp::SerialBOVWriter< CELL_TYPE >::writeHeader().
__host__ __device__ const int& LibGeoDecomp::Coord< 3 >::y | ( | ) | const [inline] |
__host__ __device__ const int& LibGeoDecomp::Coord< 3 >::z | ( | ) | const [inline] |
__host__ __device__ int& LibGeoDecomp::Coord< 3 >::z | ( | ) | [inline] |
Referenced by LibGeoDecomp::SoAGrid< CELL, TOPOLOGY, TOPOLOGICALLY_CORRECT >::delegateGet(), LibGeoDecomp::SoAGrid< CELL, TOPOLOGY, TOPOLOGICALLY_CORRECT >::delegateSet(), LibGeoDecomp::SoAGrid< CELL, TOPOLOGY, TOPOLOGICALLY_CORRECT >::loadRegion(), LibGeoDecomp::CudaSimulator< CELL_TYPE >::nanoStep(), LibGeoDecomp::SoAGridHelpers::GenIndex< DIM_X, DIM_Y, DIM_Z >::operator()(), LibGeoDecomp::SoAGridHelpers::SetContent< CELL, INIT_INTERIOR >::operator()(), LibGeoDecomp::GridHelpers::FillCoordBox< 3 >::operator()(), LibGeoDecomp::TopologiesHelpers::Accessor< 3 >::operator()(), LibGeoDecomp::SoAGrid< CELL, TOPOLOGY, TOPOLOGICALLY_CORRECT >::saveRegion(), scale(), LibGeoDecomp::SoAGrid< CELL, TOPOLOGY, TOPOLOGICALLY_CORRECT >::SoAGrid(), and LibGeoDecomp::SerialBOVWriter< CELL_TYPE >::writeHeader().
friend class Serialization [friend] |
friend class Typemaps [friend] |
int LibGeoDecomp::Coord< 3 >::c[3] [private] |