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

Templated class for the Vertical Cell of a Vertical List. More...

#include <STK_Cell.h>

Inherits CellBase< TYPE >.

List of all members.

Public Member Functions

 CellVe (CellVe< TYPE > *up=NULL, CellVe< TYPE > *down=NULL)
 CellVe (CellVe< TYPE > *up, CellVe< TYPE > *down, const TYPE &data)
 CellVe (const CellVe< TYPE > &C)
virtual ~CellVe ()
CellVe< TYPE > & operator= (const CellVe< TYPE > &C)
CellVe< TYPE > & operator= (const TYPE &v)
CellVe< TYPE > * getUp () const
CellVe< TYPE > * getDown () const
void setUp (CellVe< TYPE > *pcell)
void setDown (CellVe< TYPE > *pcell)

Protected Attributes

CellVe< TYPE > * up_
 pointer on the upper cell
CellVe< TYPE > * down_
 pointer on the cell down


Detailed Description

template<class TYPE>
class STK::CellVe< TYPE >

The class CellVe is used by the class ListVe.

Definition at line 156 of file STK_Cell.h.


Constructor & Destructor Documentation

template<class TYPE>
STK::CellVe< TYPE >::CellVe ( CellVe< TYPE > *  up = NULL,
CellVe< TYPE > *  down = NULL 
) [inline]

Default Ctor.

Definition at line 340 of file STK_Cell.h.

References STK::CellVe< TYPE >::down_, and STK::CellVe< TYPE >::up_.

00341                         : CellBase<TYPE>()
00342 { up_ = up; down_ = down;}
00343 

template<class TYPE>
STK::CellVe< TYPE >::CellVe ( CellVe< TYPE > *  up,
CellVe< TYPE > *  down,
const TYPE &  data 
) [inline]

Ctor with a reference to the data.

Definition at line 347 of file STK_Cell.h.

References STK::CellVe< TYPE >::down_, and STK::CellVe< TYPE >::up_.

00349                         : CellBase<TYPE>(data)
00350 { up_ = up; down_ = down; }
00351 

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

Copy Ctor.

Definition at line 355 of file STK_Cell.h.

References STK::CellBase< TYPE >::data_, STK::CellVe< TYPE >::down_, and STK::CellVe< TYPE >::up_.

00355 { data_ = C.data_;  up_   = C.up_; down_ = C.down_; }
00356 

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

Virtual Dtor.

Definition at line 361 of file STK_Cell.h.

00363 : overwrite the Cell with C.                              */


Member Function Documentation

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

Operator = : overwrite the Cell with C.

Definition at line 367 of file STK_Cell.h.

References STK::CellBase< TYPE >::data_, STK::CellVe< TYPE >::down_, and STK::CellVe< TYPE >::up_.

00367 { data_ = C.data_;  up_ = C.up_; down_ = C.down_;
00368   return *this;
00369 }
00370 

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

operator = : write a value on the cell.

Reimplemented from STK::CellBase< TYPE >.

Reimplemented in STK::Cell2D< TYPE >.

Definition at line 375 of file STK_Cell.h.

References STK::CellBase< TYPE >::data_.

00375 { data_ = v;
00376   return *this;
00377 }
00378 

template<class TYPE >
CellVe< TYPE > * STK::CellVe< TYPE >::getUp (  )  const [inline]

Give the adress of the cell up.

Definition at line 383 of file STK_Cell.h.

00383 { return up_;}
00384 

template<class TYPE >
CellVe< TYPE > * STK::CellVe< TYPE >::getDown (  )  const [inline]

Give the adress of the cell down.

Definition at line 388 of file STK_Cell.h.

References STK::CellVe< TYPE >::down_.

00388 { return down_;}
00389 

template<class TYPE>
void STK::CellVe< TYPE >::setUp ( CellVe< TYPE > *  pcell  )  [inline]

Set the adress of the cell up.

Definition at line 395 of file STK_Cell.h.

00395 { up_ = up;}
00396 

template<class TYPE>
void STK::CellVe< TYPE >::setDown ( CellVe< TYPE > *  pcell  )  [inline]

Set the adress of the cell down.

Definition at line 400 of file STK_Cell.h.

References STK::CellVe< TYPE >::down_.

00400 { down_ = down;}
00401 


Member Data Documentation

template<class TYPE>
CellVe<TYPE>* STK::CellVe< TYPE >::up_ [protected]

Definition at line 161 of file STK_Cell.h.

Referenced by STK::CellVe< TYPE >::CellVe(), and STK::CellVe< TYPE >::operator=().

template<class TYPE>
CellVe<TYPE>* STK::CellVe< TYPE >::down_ [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