STK++ 1.0

STK::CellBase< TYPE > Class Template Reference

Templated Base class for the Cell in a list . More...

#include <STK_Cell.h>

Inheritance diagram for STK::CellBase< TYPE >:

List of all members.

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.

Detailed Description

template<class TYPE>
class STK::CellBase< TYPE >

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.


Constructor & Destructor Documentation

template<class TYPE>
STK::CellBase< TYPE >::CellBase ( ) [inline]

constructor with a pointer on the data.

Definition at line 54 of file STK_Cell.h.

    { ;}
template<class TYPE>
STK::CellBase< TYPE >::CellBase ( TYPE const &  data) [inline]

constructor with a reference to the data.

Definition at line 58 of file STK_Cell.h.

            : data_(data)
    { ;}
template<class TYPE>
STK::CellBase< TYPE >::CellBase ( const CellBase< TYPE > &  C) [inline]

Copy constructor.

Definition at line 63 of file STK_Cell.h.

            : data_(C.data_)
    { ;}
template<class TYPE>
virtual STK::CellBase< TYPE >::~CellBase ( ) [inline, virtual]

virtual destructor.

Definition at line 68 of file STK_Cell.h.

{ ;}

Member Function Documentation

template<class TYPE>
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_;}
template<class TYPE>
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;}
template<class TYPE>
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_;}
template<class TYPE>
TYPE& STK::CellBase< TYPE >::data ( ) [inline]

give a reference to the data.

Definition at line 82 of file STK_Cell.h.

{ return data_;}
template<class TYPE>
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=().

{ data_ = data;}

Member Data Documentation


The documentation for this class was generated from the following file: