STK++ 0.9.13
|
template class for the 2 Dimensional Cells. More...
#include <STK_Cell.h>
Public Member Functions | |
Cell2D (const Cell2D< Type > *left=NULL, const Cell2D< Type > *up=NULL, const Cell2D< Type > *right=NULL, const Cell2D< Type > *down=NULL) | |
Default constructor with a pointer on the data. | |
Cell2D (const Cell2D< Type > *left, const Cell2D< Type > *up, const Cell2D< Type > *right, const Cell2D< Type > *down, Type const &data) | |
constructor with a reference to the data. | |
Cell2D (const Cell2D< Type > &C) | |
Copy constructor | |
virtual | ~Cell2D () |
virtual destructor. | |
Cell2D< Type > & | operator= (const Cell2D< Type > &C) |
operator = : overwrite the Cell with C. | |
Cell2D< Type > & | operator= (Type const &v) |
Operator = : write a value on the cell. | |
![]() | |
CellVe (CellVe< Type > *up=0, CellVe< Type > *down=0) | |
Default constructor. | |
CellVe (CellVe< Type > *up, CellVe< Type > *down, Type const &data) | |
constructor with a reference to the data. | |
CellVe (const CellVe< Type > &C) | |
Copy constructor. | |
virtual | ~CellVe () |
Virtual destructor. | |
CellVe< Type > & | operator= (const CellVe< Type > &C) |
Operator = : overwrite the Cell with C. | |
CellVe< Type > & | operator= (Type const &v) |
operator = : write a value on the cell. | |
CellVe< Type > * | getUp () const |
Give the adress of the cell up. | |
CellVe< Type > * | getDown () const |
Give the adress of the cell down. | |
void | setUp (CellVe< Type > *pcell) |
Set the adress of the cell up. | |
void | setDown (CellVe< Type > *pcell) |
Set the adress of the cell down. | |
![]() | |
CellBase () | |
constructor with a pointer on the data. | |
CellBase (Type const &data) | |
constructor with a reference to the data. | |
CellBase (const CellBase< Type > &C) | |
Copy constructor. | |
virtual | ~CellBase () |
virtual destructor. | |
CellBase< Type > & | operator= (const CellBase< Type > &C) |
Operator = : overwrite the Cell with C. | |
CellBase< Type > & | operator= (Type const &v) |
Operator = : write a value on the cell. | |
Type const & | data () const |
Type & | data () |
void | setData (Type const &data) |
Set data. | |
![]() | |
CellHo (CellHo< Type > *left=NULL, CellHo< Type > *right=NULL) | |
Default constructor | |
CellHo (CellHo< Type > *left, CellHo< Type > *right, Type const &data) | |
constructor with a reference to the data. | |
CellHo (const CellHo< Type > &C) | |
Copy constructor | |
virtual | ~CellHo () |
virtual destructor. | |
CellHo< Type > & | operator= (const CellHo< Type > &C) |
Operator = : overwrite the Cell with C. | |
CellHo< Type > & | operator= (Type const &v) |
operator = : write a value on the cell. | |
CellHo< Type > * | getLeft () const |
Give the adress of the cell left. | |
CellHo< Type > * | getRight () const |
Give the adress of the cell right. | |
void | setLeft (CellHo< Type > *left) |
Set the left cell adress. | |
void | setRight (CellHo< Type > *right) |
Set the right cell adress. | |
Additional Inherited Members | |
![]() | |
CellVe< Type > * | up_ |
pointer on the upper cell | |
CellVe< Type > * | down_ |
pointer on the cell down | |
![]() | |
Type | data_ |
Data contained by the Cell. | |
![]() | |
CellHo< Type > * | left_ |
pointer on the left cell | |
CellHo< Type > * | right_ |
pointer on the right cell | |
template class for the 2 Dimensional Cells.
The class Cell2D is not used.
Definition at line 196 of file STK_Cell.h.
STK::Cell2D< Type >::Cell2D | ( | const Cell2D< Type > * | left = NULL , |
const Cell2D< Type > * | up = NULL , |
||
const Cell2D< Type > * | right = NULL , |
||
const Cell2D< Type > * | down = NULL |
||
) |
Default constructor with a pointer on the data.
Definition at line 293 of file STK_Cell.h.
STK::Cell2D< Type >::Cell2D | ( | const Cell2D< Type > * | left, |
const Cell2D< Type > * | up, | ||
const Cell2D< Type > * | right, | ||
const Cell2D< Type > * | down, | ||
Type const & | data | ||
) |
constructor with a reference to the data.
Definition at line 304 of file STK_Cell.h.
STK::Cell2D< Type >::Cell2D | ( | const Cell2D< Type > & | C | ) |
|
virtual |
Cell2D< Type > & STK::Cell2D< Type >::operator= | ( | const Cell2D< Type > & | C | ) |
Cell2D< Type > & STK::Cell2D< Type >::operator= | ( | Type const & | v | ) |