STK++ 0.9.13
STK::Cell2D< Type > Class Template Reference

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

#include <STK_Cell.h>

Inheritance diagram for STK::Cell2D< Type >:
Inheritance graph

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.
 
- Public Member Functions inherited from STK::CellVe< Type >
 CellVe (CellVe< Type > *up=0, CellVe< Type > *down=0)
 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.
 
- Public Member Functions inherited from STK::CellBase< Type >
 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 constdata () const
 
Type & data ()
 
void setData (Type const &data)
 Set data.
 
- Public Member Functions inherited from STK::CellHo< Type >
 CellHo (CellHo< Type > *left=NULL, CellHo< Type > *right=NULL)
 Default constructor

 
 CellHo (CellHo< Type > *left, CellHo< Type > *right, Type const &data)
 constructor with a reference to the data.
 
 CellHo (const CellHo< Type > &C)
 Copy constructor

 
virtual ~CellHo ()
 virtual destructor.
 
CellHo< Type > & operator= (const CellHo< Type > &C)
 Operator = : overwrite the Cell with C.
 
CellHo< Type > & operator= (Type const &v)
 operator = : write a value on the cell.
 
CellHo< Type > * getLeft () const
 Give the adress of the cell left.
 
CellHo< Type > * getRight () const
 Give the adress of the cell right.
 
void setLeft (CellHo< Type > *left)
 Set the left cell adress.
 
void setRight (CellHo< Type > *right)
 Set the right cell adress.
 

Additional Inherited Members

- Protected Attributes inherited from STK::CellVe< Type >
CellVe< Type > * up_
 pointer on the upper cell
 
CellVe< Type > * down_
 pointer on the cell down
 
- Protected Attributes inherited from STK::CellBase< Type >
Type data_
 Data contained by the Cell.
 
- Protected Attributes inherited from STK::CellHo< Type >
CellHo< Type > * left_
 pointer on the left cell
 
CellHo< Type > * right_
 pointer on the right cell
 

Detailed Description

template<class Type>
class STK::Cell2D< Type >

template class for the 2 Dimensional Cells.

The class Cell2D is not used.

Definition at line 196 of file STK_Cell.h.

Constructor & Destructor Documentation

◆ Cell2D() [1/3]

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

297 : CellBase<Type>()
298 , CellHo<Type>(left, right)
299 , CellVe<Type>(up, down)
300{ ;}

◆ Cell2D() [2/3]

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

309 : CellBase<Type>(data)
310 , CellHo<Type>(left, right)
311 , CellVe<Type>(up, down)
312{ ;}
Type const & data() const
Definition STK_Cell.h:70

◆ Cell2D() [3/3]

template<class Type >
STK::Cell2D< Type >::Cell2D ( const Cell2D< Type > &  C)

Copy constructor

Definition at line 316 of file STK_Cell.h.

317{ data_ = C.data_;
318 up_ = C.up_;
319 down_ = C.down_;
320 left_ = C.left_;
321 right_ = C.right_;
322}
Type data_
Data contained by the Cell.
Definition STK_Cell.h:50
CellHo< Type > * left_
pointer on the left cell
Definition STK_Cell.h:137
CellHo< Type > * right_
pointer on the right cell
Definition STK_Cell.h:138
CellVe< Type > * up_
pointer on the upper cell
Definition STK_Cell.h:88
CellVe< Type > * down_
pointer on the cell down
Definition STK_Cell.h:89

◆ ~Cell2D()

template<class Type >
STK::Cell2D< Type >::~Cell2D ( )
virtual

virtual destructor.


Definition at line 326 of file STK_Cell.h.

326{ ;}

Member Function Documentation

◆ operator=() [1/2]

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

operator = : overwrite the Cell with C.


Definition at line 331 of file STK_Cell.h.

332{ data_ = C.data_;
333 up_ = C.up_;
334 down_ = C.down_;
335 left_ = C.left_;
336 right_ = C.right_;
337}

◆ operator=() [2/2]

template<class Type >
Cell2D< Type > & STK::Cell2D< Type >::operator= ( Type const v)

Operator = : write a value on the cell.


Definition at line 341 of file STK_Cell.h.

342{ data_ = v;}

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