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

Public Member Functions | |
Generic (uint width=0, uint height=0) | |
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 |
TQValueVector< Type > | _vector |
Detailed Description
template<class Type>
class KGrid2D::Generic< 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
Constructor & Destructor Documentation
◆ Generic()
template<class Type >
|
inline |
◆ ~Generic()
template<class Type >
|
inlinevirtual |
Member Function Documentation
◆ at() [1/4]
template<class Type >
|
inline |
◆ at() [2/4]
template<class Type >
|
inline |
◆ at() [3/4]
template<class Type >
|
inline |
◆ at() [4/4]
template<class Type >
|
inline |
◆ bound()
template<class Type >
|
inline |
◆ coord()
template<class Type >
|
inline |
◆ fill()
template<class Type >
|
inline |
◆ height()
template<class Type >
|
inline |
◆ index()
template<class Type >
|
inline |
◆ inside()
template<class Type >
|
inline |
◆ operator[]() [1/4]
template<class Type >
|
inline |
◆ operator[]() [2/4]
template<class Type >
|
inline |
◆ operator[]() [3/4]
template<class Type >
|
inline |
◆ operator[]() [4/4]
template<class Type >
|
inline |
◆ resize()
template<class Type >
|
inline |
◆ size()
template<class Type >
|
inline |
◆ width()
template<class Type >
|
inline |
Member Data Documentation
◆ _height
template<class Type >
|
protected |
◆ _vector
template<class Type >
|
protected |
◆ _width
template<class Type >
|
protected |
The documentation for this class was generated from the following file: