STK::CellBase< TYPE > Class Template Reference
[Subproject STKernel::Tcontainer]

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

#include <STK_Cell.h>

List of all members.

Public Member Functions

 CellBase ()
 CellBase (const TYPE &data)
 CellBase (const CellBase< TYPE > &C)
virtual ~CellBase ()
CellBase< TYPE > & operator= (const CellBase< TYPE > &C)
CellBase< TYPE > & operator= (const TYPE &v)
const TYPE & getData () const
TYPE & getData ()
void setData (const TYPE &data)

Protected Attributes

TYPE data_
 Data contained by the Cell.


Detailed Description

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

The class TYPE should have surdefined the operator = if necessary.

Definition at line 98 of file STK_Cell.h.


Constructor & Destructor Documentation

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

Ctor with a pointer on the data.

Definition at line 107 of file STK_Cell.h.

00107     { ;}
00108 

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

Ctor with a reference to the data.

Definition at line 111 of file STK_Cell.h.

00111             : data_(data)
00112     { ;}
00113     

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

Copy Ctor.

Definition at line 116 of file STK_Cell.h.

00116             : data_(C.data_)
00117     { ;}
00118 

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

virtual destructor.

Definition at line 122 of file STK_Cell.h.

00124 : overwrite the Cell with C.                         */


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 126 of file STK_Cell.h.

00126     { data_ = C.data_;}
00127 

template<class TYPE>
CellBase<TYPE>& STK::CellBase< TYPE >::operator= ( const TYPE &  v  )  [inline]

Operator = : write a value on the cell.

Reimplemented in STK::CellVe< TYPE >, STK::CellHo< TYPE >, STK::Cell2D< TYPE >, STK::CellVe< TYPE >, STK::CellHo< TYPE >, and STK::CellHo< IVariable * >.

Definition at line 131 of file STK_Cell.h.

00131     { data_ = v;}
00132 

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

give a reference to the data for const.

Definition at line 137 of file STK_Cell.h.

Referenced by STK::List1D< IVariable * >::getElt(), STK::List1D< IVariable * >::List1D(), STK::List1D< IVariable * >::operator=(), and STK::List1D< IVariable * >::swapElts().

00141 { return data_;}

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

give a reference to the data.

Definition at line 142 of file STK_Cell.h.

00144 { data_ = data;}

template<class TYPE>
void STK::CellBase< TYPE >::setData ( const TYPE &  data  )  [inline]

Set the data.

Definition at line 145 of file STK_Cell.h.

Referenced by STK::List1D< IVariable * >::operator=().

00155 : virtual public CellBase<TYPE>


Member Data Documentation

template<class TYPE>
TYPE STK::CellBase< TYPE >::data_ [protected]


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

Generated on Fri Sep 25 10:31:01 2009 for STK++ by  doxygen 1.5.8