STK++ 0.9.13
|
template 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. | |
![]() | |
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. | |
Protected Attributes | |
CellHo< Type > * | left_ |
pointer on the left cell | |
CellHo< Type > * | right_ |
pointer on the right cell | |
![]() | |
Type | data_ |
Data contained by the Cell. | |
template class for the Horizontal Cell of a Horizontal List.
The class CellHo is used by the class List1D.
Definition at line 131 of file STK_Cell.h.
|
inline |
Default constructor
Definition at line 142 of file STK_Cell.h.
References STK::CellHo< Type >::left_, and STK::CellHo< Type >::right_.
|
inline |
constructor with a reference to the data.
Definition at line 146 of file STK_Cell.h.
References STK::CellHo< Type >::left_, and STK::CellHo< Type >::right_.
|
inline |
Copy constructor
Definition at line 151 of file STK_Cell.h.
|
inlinevirtual |
|
inline |
Give the adress of the cell left.
Definition at line 175 of file STK_Cell.h.
References STK::CellHo< Type >::left_.
|
inline |
Give the adress of the cell right.
Definition at line 179 of file STK_Cell.h.
References STK::CellHo< Type >::right_.
|
inline |
Operator = : overwrite the Cell with C.
Definition at line 161 of file STK_Cell.h.
References STK::CellBase< Type >::data_, STK::CellHo< Type >::left_, and STK::CellHo< Type >::right_.
|
inline |
operator = : write a value on the cell.
Definition at line 169 of file STK_Cell.h.
References STK::CellBase< Type >::data_.
|
inline |
Set the left cell adress.
Definition at line 183 of file STK_Cell.h.
References STK::CellHo< Type >::left_.
|
inline |
Set the right cell adress.
Definition at line 187 of file STK_Cell.h.
References STK::CellHo< Type >::right_.
|
protected |
pointer on the left cell
Definition at line 137 of file STK_Cell.h.
Referenced by STK::CellHo< Type >::CellHo(), STK::CellHo< Type >::CellHo(), STK::CellHo< Type >::getLeft(), STK::CellHo< Type >::operator=(), and STK::CellHo< Type >::setLeft().
|
protected |
pointer on the right cell
Definition at line 138 of file STK_Cell.h.
Referenced by STK::CellHo< Type >::CellHo(), STK::CellHo< Type >::CellHo(), STK::CellHo< Type >::getRight(), STK::CellHo< Type >::operator=(), and STK::CellHo< Type >::setRight().