cuda::experimental::stf::pos4#

class pos4#

pos4 class defining a position within a multidimensional object (default value 0 in each axis)

Public Functions

constexpr pos4() = default#
template<typename IntegralX, typename IntegralY = ssize_t, typename IntegralZ = ssize_t, typename IntegralT = ssize_t>
inline explicit constexpr pos4(
IntegralX x,
IntegralY y = 0,
IntegralZ z = 0,
IntegralT t = 0,
)#

Create a pos4 from its coordinates.

inline constexpr ssize_t get(size_t axis_id) const#

Get the position along a specific axis.

inline constexpr ssize_t operator()(int axis_id) const#

Get the position along a specific axis.

inline constexpr bool operator<(const pos4 &rhs) const#

Comparison of two pos4 in lexicographical order.

inline constexpr bool operator==(const pos4 &rhs) const#

Equality test between two pos4.

inline ::std::string to_string() const#

Convert the pos4 to a string.

Public Members

ssize_t x = 0#
ssize_t y = 0#
ssize_t z = 0#
ssize_t t = 0#