KGrid2D::Generic< Type > Class Template Reference
#include <kgrid2d.h>
Inheritance diagram for KGrid2D::Generic< Type >:

Detailed Description
template<class Type>
class KGrid2D::Generic< Type >
This template class represents a generic bidimensionnal grid.
Each node contains an element of the template type.
- Since:
- 3.2
Definition at line 96 of file kgrid2d.h.
Public Member Functions | |
Generic (uint width=0, uint height=0) | |
virtual | ~Generic () |
void | resize (uint width, uint height) |
void | fill (const Type &value) |
uint | width () const |
uint | height () const |
uint | size () const |
uint | index (const Coord &c) const |
Coord | coord (uint index) const |
const Type & | at (const Coord &c) const |
Type & | at (const Coord &c) |
const Type & | operator[] (const Coord &c) const |
Type & | operator[] (const Coord &c) |
const Type & | at (uint index) const |
Type & | at (uint index) |
const Type & | operator[] (uint index) const |
Type & | operator[] (uint index) |
bool | inside (const Coord &c) const |
void | bound (Coord &c) const |
Protected Attributes | |
uint | _width |
uint | _height |
QValueVector< Type > | _vector |
Constructor & Destructor Documentation
template<class Type>
KGrid2D::Generic< Type >::Generic | ( | uint | width = 0 , |
|
uint | height = 0 | |||
) | [inline] |
Member Function Documentation
template<class Type>
void KGrid2D::Generic< Type >::resize | ( | uint | width, | |
uint | height | |||
) | [inline] |
template<class Type>
void KGrid2D::Generic< Type >::fill | ( | const Type & | value | ) | [inline] |
template<class Type>
uint KGrid2D::Generic< Type >::width | ( | ) | const [inline] |
template<class Type>
uint KGrid2D::Generic< Type >::height | ( | ) | const [inline] |
template<class Type>
uint KGrid2D::Generic< Type >::size | ( | ) | const [inline] |
template<class Type>
uint KGrid2D::Generic< Type >::index | ( | const Coord & | c | ) | const [inline] |
template<class Type>
Coord KGrid2D::Generic< Type >::coord | ( | uint | index | ) | const [inline] |
template<class Type>
const Type& KGrid2D::Generic< Type >::at | ( | const Coord & | c | ) | const [inline] |
template<class Type>
Type& KGrid2D::Generic< Type >::at | ( | const Coord & | c | ) | [inline] |
template<class Type>
const Type& KGrid2D::Generic< Type >::operator[] | ( | const Coord & | c | ) | const [inline] |
template<class Type>
Type& KGrid2D::Generic< Type >::operator[] | ( | const Coord & | c | ) | [inline] |
template<class Type>
const Type& KGrid2D::Generic< Type >::at | ( | uint | index | ) | const [inline] |
template<class Type>
Type& KGrid2D::Generic< Type >::at | ( | uint | index | ) | [inline] |
template<class Type>
const Type& KGrid2D::Generic< Type >::operator[] | ( | uint | index | ) | const [inline] |
template<class Type>
Type& KGrid2D::Generic< Type >::operator[] | ( | uint | index | ) | [inline] |
template<class Type>
bool KGrid2D::Generic< Type >::inside | ( | const Coord & | c | ) | const [inline] |
template<class Type>
void KGrid2D::Generic< Type >::bound | ( | Coord & | c | ) | const [inline] |
The documentation for this class was generated from the following file: