STK++ 1.0

STK::Cell2D< TYPE > Class Template Reference

Templated class for the 2 Dimensional Cells. More...

#include <STK_Cell.h>

Inheritance diagram for STK::Cell2D< TYPE >:

List of all members.

Public Member Functions

 Cell2D (const Cell2D< TYPE > *left=NULL, const Cell2D< TYPE > *up=NULL, const Cell2D< TYPE > *right=NULL, const Cell2D< TYPE > *down=NULL)
 Default constructor with a pointer on the data.
 Cell2D (const Cell2D< TYPE > *left, const Cell2D< TYPE > *up, const Cell2D< TYPE > *right, const Cell2D< TYPE > *down, TYPE const &data)
 constructor with a reference to the data.
 Cell2D (const Cell2D< TYPE > &C)
 Copy constructor.
virtual ~Cell2D ()
 virtual destructor.
Cell2D< TYPE > & operator= (const Cell2D< TYPE > &C)
 operator = : overwrite the Cell with C.
Cell2D< TYPE > & operator= (TYPE const &v)
 Operator = : write a value on the cell.

Detailed Description

template<class TYPE>
class STK::Cell2D< TYPE >

Templated class for the 2 Dimensional Cells.

The class Cell2D is not used.

Definition at line 207 of file STK_Cell.h.


Constructor & Destructor Documentation

template<class TYPE >
STK::Cell2D< TYPE >::Cell2D ( const Cell2D< TYPE > *  left = NULL,
const Cell2D< TYPE > *  up = NULL,
const Cell2D< TYPE > *  right = NULL,
const Cell2D< TYPE > *  down = NULL 
)

Default constructor with a pointer on the data.

Definition at line 304 of file STK_Cell.h.

                    : CellBase<TYPE>()
                    , CellHo<TYPE>(left, right)
                    , CellVe<TYPE>(up, down) 
{ ;}
template<class TYPE >
STK::Cell2D< TYPE >::Cell2D ( const Cell2D< TYPE > *  left,
const Cell2D< TYPE > *  up,
const Cell2D< TYPE > *  right,
const Cell2D< TYPE > *  down,
TYPE const &  data 
)

constructor with a reference to the data.

Definition at line 315 of file STK_Cell.h.

                    : CellBase<TYPE>(data)
                    , CellHo<TYPE>(left, right)
                    , CellVe<TYPE>(up, down) 
{ ;}
template<class TYPE >
STK::Cell2D< TYPE >::Cell2D ( const Cell2D< TYPE > &  C)

Copy constructor.

Definition at line 327 of file STK_Cell.h.

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

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

virtual destructor.

Definition at line 337 of file STK_Cell.h.

{ ;}

Member Function Documentation

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

operator = : overwrite the Cell with C.

Definition at line 342 of file STK_Cell.h.

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

{ data_  = C.data_;
  up_    = C.up_;
  down_  = C.down_;
  left_  = C.left_;
  right_ = C.right_;
}
template<class TYPE >
Cell2D< TYPE > & STK::Cell2D< TYPE >::operator= ( TYPE const &  v)

Operator = : write a value on the cell.

Reimplemented from STK::CellVe< TYPE >.

Definition at line 352 of file STK_Cell.h.

{ data_ = v;}

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