|
OpenStructure
|
#include <size.hh>
Public Member Functions | |
| Size () | |
| Size (const Size &s) | |
| Size (unsigned int w) | |
| Size (unsigned int w, unsigned int h) | |
| Size (unsigned int w, unsigned int h, unsigned int d) | |
| Size (const Point &p1, const Point &p2) | |
| Point | GetHalf () const |
| unsigned int | GetWidth () const |
| unsigned int | GetHeight () const |
| unsigned int | GetDepth () const |
| unsigned int | GetSlab () const |
| unsigned int | GetVol () const |
| unsigned int | GetVolume () const |
| unsigned int | GetDim () const |
| Size & | operator= (const Size &s) |
| unsigned int | operator[] (unsigned int index) const |
| unsigned int & | operator[] (unsigned int index) |
| bool | operator== (const Size &s) const |
| bool | operator!= (const Size &s) const |
| Size & | operator+= (const Size &s) |
| Size & | operator-= (const Size &s) |
| Size | ( | ) |
|
explicit |
1D constructor
|
explicit |
2D constructor
|
explicit |
3D constructor
| unsigned int GetDepth | ( | ) | const |
get depth component (convenience to index 2)
| unsigned int GetDim | ( | ) | const |
return dimensionality (1-3)
| Point GetHalf | ( | ) | const |
return the point at half the size
for even dimension, its N/2-1, for odd dimension its (N-1)/2
| unsigned int GetHeight | ( | ) | const |
get height component (convenience to index 1)
| unsigned int GetSlab | ( | ) | const |
get area (width * height)
| unsigned int GetVol | ( | ) | const |
get volume (depcrecated, use GetVolume() instead)
| unsigned int GetVolume | ( | ) | const |
get volume
| unsigned int GetWidth | ( | ) | const |
get width component (convenience to index 0)
| bool operator!= | ( | const Size & | s | ) | const |
| bool operator== | ( | const Size & | s | ) | const |
| unsigned int operator[] | ( | unsigned int | index | ) | const |
| unsigned int& operator[] | ( | unsigned int | index | ) |
1.8.1.1