|
STK++ 1.0
|
Templated class for the Horizontal Cell of a Horizontal List. More...
#include <STK_Cell.h>

Public Member Functions | |
| 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. | |
Protected Attributes | |
| CellHo< TYPE > * | left_ |
| pointer on the left cell | |
| CellHo< TYPE > * | right_ |
| pointer on the right cell | |
Templated class for the Horizontal Cell of a Horizontal List.
The class CellHo is used by the class List1D.
Definition at line 142 of file STK_Cell.h.
| STK::CellHo< TYPE >::CellHo | ( | CellHo< TYPE > * | left = NULL, |
| CellHo< TYPE > * | right = NULL |
||
| ) | [inline] |
| STK::CellHo< TYPE >::CellHo | ( | CellHo< TYPE > * | left, |
| CellHo< TYPE > * | right, | ||
| TYPE const & | data | ||
| ) | [inline] |
constructor with a reference to the data.
Definition at line 157 of file STK_Cell.h.
| STK::CellHo< TYPE >::CellHo | ( | const CellHo< TYPE > & | C | ) | [inline] |
Copy constructor.
Definition at line 162 of file STK_Cell.h.
| virtual STK::CellHo< TYPE >::~CellHo | ( | ) | [inline, virtual] |
| CellHo<TYPE>& STK::CellHo< TYPE >::operator= | ( | const CellHo< TYPE > & | C | ) | [inline] |
Operator = : overwrite the Cell with C.
Definition at line 172 of file STK_Cell.h.
| CellHo<TYPE>& STK::CellHo< TYPE >::operator= | ( | TYPE const & | v | ) | [inline] |
operator = : write a value on the cell.
Reimplemented from STK::CellBase< TYPE >.
Reimplemented in STK::Cell2D< TYPE >.
Definition at line 180 of file STK_Cell.h.
{ data_ = v;
return *this;
}
| CellHo<TYPE>* STK::CellHo< TYPE >::getLeft | ( | ) | const [inline] |
Give the adress of the cell left.
Definition at line 186 of file STK_Cell.h.
Referenced by STK::List1D< IVariable * >::initialize(), STK::List1D< IVariable * >::insertElt(), STK::List1D< IVariable * >::operator=(), and STK::List1D< IVariable * >::pushBack().
{ return left_;}
| CellHo<TYPE>* STK::CellHo< TYPE >::getRight | ( | ) | const [inline] |
Give the adress of the cell right.
Definition at line 190 of file STK_Cell.h.
Referenced by STK::List1D< IVariable * >::erase(), STK::List1D< IVariable * >::freeMem(), STK::List1D< IVariable * >::insertElt(), STK::List1D< IVariable * >::List1D(), and STK::List1D< IVariable * >::operator=().
{ return right_;}
| void STK::CellHo< TYPE >::setLeft | ( | CellHo< TYPE > * | left | ) | [inline] |
Set the left cell adress.
Definition at line 194 of file STK_Cell.h.
Referenced by STK::List1D< IVariable * >::erase(), and STK::List1D< IVariable * >::initialize().
{ left_ = left;}
| void STK::CellHo< TYPE >::setRight | ( | CellHo< TYPE > * | right | ) | [inline] |
Set the right cell adress.
Definition at line 198 of file STK_Cell.h.
Referenced by STK::List1D< IVariable * >::initialize(), STK::List1D< IVariable * >::insertElt(), and STK::List1D< IVariable * >::pushBack().
{ right_ = right;}
CellHo<TYPE>* STK::CellHo< TYPE >::left_ [protected] |
pointer on the left cell
Definition at line 148 of file STK_Cell.h.
Referenced by STK::Cell2D< TYPE >::Cell2D(), STK::CellHo< IVariable * >::CellHo(), STK::CellHo< IVariable * >::getLeft(), STK::Cell2D< TYPE >::operator=(), STK::CellHo< IVariable * >::operator=(), and STK::CellHo< IVariable * >::setLeft().
CellHo<TYPE>* STK::CellHo< TYPE >::right_ [protected] |
pointer on the right cell
Definition at line 149 of file STK_Cell.h.
Referenced by STK::Cell2D< TYPE >::Cell2D(), STK::CellHo< IVariable * >::CellHo(), STK::CellHo< IVariable * >::getRight(), STK::Cell2D< TYPE >::operator=(), STK::CellHo< IVariable * >::operator=(), and STK::CellHo< IVariable * >::setRight().