Back to index

salome-smesh  6.5.0
Public Member Functions | Public Attributes
_Indexer Struct Reference

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

List of all members.

Public Member Functions

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

Public Attributes

int _xSize
int _ySize

Detailed Description

Convertor of a pair of integers to a sole index.

Definition at line 87 of file StdMeshers_CompositeHexa_3D.cxx.


Constructor & Destructor Documentation

_Indexer::_Indexer ( int  xSize,
int  ySize 
) [inline]

Definition at line 90 of file StdMeshers_CompositeHexa_3D.cxx.

: _xSize(xSize), _ySize(ySize) {}

Member Function Documentation

int _Indexer::operator() ( const int  x,
const int  y 
) const [inline]

Definition at line 92 of file StdMeshers_CompositeHexa_3D.cxx.

{ return y * _xSize + x; }
int _Indexer::size ( ) const [inline]

Definition at line 91 of file StdMeshers_CompositeHexa_3D.cxx.

{ return _xSize * _ySize; }

Member Data Documentation

Definition at line 89 of file StdMeshers_CompositeHexa_3D.cxx.

Definition at line 89 of file StdMeshers_CompositeHexa_3D.cxx.


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