STK++ 1.0

STK::CellVe< TYPE > Class Template Reference

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

#include <STK_Cell.h>

Inheritance diagram for STK::CellVe< TYPE >:

List of all members.

Public Member Functions

 CellVe (CellVe< TYPE > *up=NULL, CellVe< TYPE > *down=NULL)
 Default constructor.
 CellVe (CellVe< TYPE > *up, CellVe< TYPE > *down, TYPE const &data)
 constructor with a reference to the data.
 CellVe (const CellVe< TYPE > &C)
 Copy constructor.
virtual ~CellVe ()
 Virtual destructor.
CellVe< TYPE > & operator= (const CellVe< TYPE > &C)
 Operator = : overwrite the Cell with C.
CellVe< TYPE > & operator= (TYPE const &v)
 operator = : write a value on the cell.
CellVe< TYPE > * getUp () const
 Give the adress of the cell up.
CellVe< TYPE > * getDown () const
 Give the adress of the cell down.
void setUp (CellVe< TYPE > *pcell)
 Set the adress of the cell up.
void setDown (CellVe< TYPE > *pcell)
 Set the adress of the cell down.

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 >

Templated class for the Vertical Cell of a Vertical List.

The class CellVe is used by the class ListVe.

Definition at line 94 of file STK_Cell.h.


Constructor & Destructor Documentation

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

Default constructor.

Definition at line 245 of file STK_Cell.h.

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

                        : CellBase<TYPE>()
{ up_ = up; down_ = down;}
template<class TYPE >
STK::CellVe< TYPE >::CellVe ( CellVe< TYPE > *  up,
CellVe< TYPE > *  down,
TYPE const &  data 
)

constructor with a reference to the data.

Definition at line 252 of file STK_Cell.h.

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

                        : CellBase<TYPE>(data)
{ up_ = up; down_ = down; }
template<class TYPE >
STK::CellVe< TYPE >::CellVe ( const CellVe< TYPE > &  C)

Copy constructor.

Definition at line 260 of file STK_Cell.h.

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

{ data_ = C.data_;  up_   = C.up_; down_ = C.down_; }
template<class TYPE >
STK::CellVe< TYPE >::~CellVe ( ) [virtual]

Virtual destructor.

Definition at line 265 of file STK_Cell.h.

{ ;}

Member Function Documentation

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

Operator = : overwrite the Cell with C.

Definition at line 270 of file STK_Cell.h.

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

{ data_ = C.data_;  up_ = C.up_; down_ = C.down_;
  return *this;
}
template<class TYPE >
CellVe< TYPE > & STK::CellVe< TYPE >::operator= ( TYPE const &  v)

operator = : write a value on the cell.

Reimplemented from STK::CellBase< TYPE >.

Reimplemented in STK::Cell2D< TYPE >.

Definition at line 277 of file STK_Cell.h.

{ data_ = v;
  return *this;
}
template<class TYPE >
CellVe< TYPE > * STK::CellVe< TYPE >::getUp ( ) const

Give the adress of the cell up.

Definition at line 284 of file STK_Cell.h.

{ return up_;}
template<class TYPE >
CellVe< TYPE > * STK::CellVe< TYPE >::getDown ( ) const

Give the adress of the cell down.

Definition at line 289 of file STK_Cell.h.

{ return down_;}
template<class TYPE >
void STK::CellVe< TYPE >::setUp ( CellVe< TYPE > *  pcell)

Set the adress of the cell up.

Definition at line 294 of file STK_Cell.h.

{ up_ = up;}
template<class TYPE >
void STK::CellVe< TYPE >::setDown ( CellVe< TYPE > *  pcell)

Set the adress of the cell down.

Definition at line 299 of file STK_Cell.h.

{ down_ = down;}

Member Data Documentation

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

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