Version: 9.16.0
_Indexer Struct Reference

Converter of a pair of integers to a sole index. More...

Public Member Functions

 _Indexer (int xSize, int ySize)
 
int size () const
 
int operator() (const int x, const int y) const
 

Data Fields

int _xSize
 
int _ySize
 

Detailed Description

Converter of a pair of integers to a sole index.

Constructor & Destructor Documentation

◆ _Indexer()

_Indexer::_Indexer ( int  xSize,
int  ySize 
)

Member Function Documentation

◆ operator()()

int _Indexer::operator() ( const int  x,
const int  y 
) const

References _xSize.

◆ size()

int _Indexer::size ( ) const

References _xSize, and _ySize.

Field Documentation

◆ _xSize

int _Indexer::_xSize

Referenced by operator()(), and size().

◆ _ySize

int _Indexer::_ySize

Referenced by size().