Type-safe enumeration of axis dimensions. More...

#include <nav.hpp>

Inheritance diagram for Dim2D:
Inheritance graph

Public Member Functions

 Dim2D (const Dim2D &rhs)
 
bool operator== (const Dim2D &rhs) const
 
Dim2D orthogonal () const
 Orthogonal dimension to this one. More...
 

Public Attributes

const int val
 

Static Public Attributes

static const Dim2D X
 
static const Dim2D Y
 
static const int COUNT = 2
 

Protected Member Functions

 Dim2D (int i)
 

Friends

struct Side< Dim2D >
 
std::ostream & operator<< (std::ostream &os, const Dim2D &d)
 

Detailed Description

Type-safe enumeration of axis dimensions.

Constructor & Destructor Documentation

◆ Dim2D() [1/2]

Dim2D::Dim2D ( const Dim2D rhs)
inline

Referenced by orthogonal().

◆ Dim2D() [2/2]

Dim2D::Dim2D ( int  i)
inlineprotected

Member Function Documentation

◆ operator==()

bool Dim2D::operator== ( const Dim2D rhs) const
inline

References val.

◆ orthogonal()

Dim2D Dim2D::orthogonal ( ) const
inline

Orthogonal dimension to this one.

References Dim2D(), and val.

Friends And Related Function Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  os,
const Dim2D d 
)
friend

◆ Side< Dim2D >

friend struct Side< Dim2D >
friend

Member Data Documentation

◆ COUNT

const int Dim2D::COUNT = 2
static

◆ val

const int Dim2D::val

◆ X

const Dim2D Dim2D::X
static

Referenced by Cart2D::face_ndx(), and Corn3D::pivot().

◆ Y

const Dim2D Dim2D::Y
static

Referenced by Corn3D::pivot().


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