|
STK++ 1.0
|
Templated Base class for the Cell in a list . More...
#include <STK_Cell.h>

Public Member Functions | |
| 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 |
| give a reference to the data for const. | |
| TYPE & | data () |
| give a reference to the data. | |
| void | setData (TYPE const &data) |
| Set the data. | |
Protected Attributes | |
| TYPE | data_ |
| Data contained by the Cell. | |
Templated Base class for the Cell in a list .
The class TYPE should have surdefined the operator = if necessary.
Definition at line 47 of file STK_Cell.h.
| STK::CellBase< TYPE >::CellBase | ( | ) | [inline] |
| STK::CellBase< TYPE >::CellBase | ( | TYPE const & | data | ) | [inline] |
constructor with a reference to the data.
Definition at line 58 of file STK_Cell.h.
| STK::CellBase< TYPE >::CellBase | ( | const CellBase< TYPE > & | C | ) | [inline] |
| virtual STK::CellBase< TYPE >::~CellBase | ( | ) | [inline, virtual] |
| CellBase<TYPE>& STK::CellBase< TYPE >::operator= | ( | const CellBase< TYPE > & | C | ) | [inline] |
Operator = : overwrite the Cell with C.
Definition at line 71 of file STK_Cell.h.
{ data_ = C.data_;}
| CellBase<TYPE>& STK::CellBase< TYPE >::operator= | ( | TYPE const & | v | ) | [inline] |
Operator = : write a value on the cell.
Reimplemented in STK::CellVe< TYPE >, STK::CellHo< TYPE >, STK::Cell2D< TYPE >, STK::CellHo< Tool >, and STK::CellHo< IVariable * >.
Definition at line 75 of file STK_Cell.h.
{ data_ = v;}
| TYPE const& STK::CellBase< TYPE >::data | ( | ) | const [inline] |
give a reference to the data for const.
Definition at line 79 of file STK_Cell.h.
Referenced by STK::List1D< IVariable * >::List1D(), STK::CellBase< IVariable * >::setData(), and STK::List1D< IVariable * >::swap().
{ return data_;}
| TYPE& STK::CellBase< TYPE >::data | ( | ) | [inline] |
| void STK::CellBase< TYPE >::setData | ( | TYPE const & | data | ) | [inline] |
Set the data.
Definition at line 85 of file STK_Cell.h.
Referenced by STK::List1D< IVariable * >::operator=().
TYPE STK::CellBase< TYPE >::data_ [protected] |
Data contained by the Cell.
Definition at line 50 of file STK_Cell.h.
Referenced by STK::Cell2D< TYPE >::Cell2D(), STK::CellVe< TYPE >::CellVe(), STK::CellBase< IVariable * >::data(), STK::Cell2D< TYPE >::operator=(), STK::CellVe< TYPE >::operator=(), STK::CellHo< IVariable * >::operator=(), STK::CellBase< IVariable * >::operator=(), and STK::CellBase< IVariable * >::setData().