Library of Assembled Shared Sources
lass::prim::XYZ Class Reference

cyclic iterator over xyz indices More...

#include <xyz.h>

Public Member Functions

constexpr XYZ ()
 intializes iterator to x axis.
 
constexpr XYZ (char axis)
 initializes iterator to an axis by character: 'x', 'y' or 'z'.
 
constexpr XYZ (int value)
 initializes iterator to an axis by number.
 
 XYZ (const std::string &axis)
 initializes iterator to an axis by character: "x", "y" or "z".
 
constexpr char axis () const
 return axis by character: 'x', 'y' or 'z'.
 
constexpr operator int () const
 convert axis to integer.
 
constexpr operator size_t () const
 convert axis to integer.
 

Detailed Description

cyclic iterator over xyz indices

Author
Bram de Greve [BdG]

Definition at line 61 of file xyz.h.

Constructor & Destructor Documentation

◆ XYZ()

lass::prim::XYZ::XYZ ( int value)
inlineexplicitconstexpr

initializes iterator to an axis by number.

..., -1 == z, 0 == x, 1 == y, 2 == z, 3 == x, ...

Definition at line 103 of file xyz.h.

Member Function Documentation

◆ operator int()

lass::prim::XYZ::operator int ( ) const
inlineconstexpr

convert axis to integer.

0 == x, 1 == y, 2 == z

Definition at line 128 of file xyz.h.

◆ operator size_t()

lass::prim::XYZ::operator size_t ( ) const
inlineconstexpr

convert axis to integer.

0 == x, 1 == y, 2 == z

Definition at line 129 of file xyz.h.


The documentation for this class was generated from the following file: