STK++ 1.0

STK::CellHo< TYPE > Class Template Reference

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

#include <STK_Cell.h>

Inheritance diagram for STK::CellHo< TYPE >:

List of all members.

Public Member Functions

 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.

Protected Attributes

CellHo< TYPE > * left_
 pointer on the left cell
CellHo< TYPE > * right_
 pointer on the right cell

Detailed Description

template<class TYPE>
class STK::CellHo< TYPE >

Templated class for the Horizontal Cell of a Horizontal List.

The class CellHo is used by the class List1D.

Definition at line 142 of file STK_Cell.h.


Constructor & Destructor Documentation

template<class TYPE>
STK::CellHo< TYPE >::CellHo ( CellHo< TYPE > *  left = NULL,
CellHo< TYPE > *  right = NULL 
) [inline]

Default constructor.

Definition at line 153 of file STK_Cell.h.

    { left_ = left; right_ = right;}
template<class TYPE>
STK::CellHo< TYPE >::CellHo ( CellHo< TYPE > *  left,
CellHo< TYPE > *  right,
TYPE const &  data 
) [inline]

constructor with a reference to the data.

Definition at line 157 of file STK_Cell.h.

          : CellBase<TYPE>(data)
    { left_ = left; right_ = right; }
template<class TYPE>
STK::CellHo< TYPE >::CellHo ( const CellHo< TYPE > &  C) [inline]

Copy constructor.

Definition at line 162 of file STK_Cell.h.

          : CellBase<TYPE>(C)
          , left_(C.left_)
          , right_(C.right_)
    { ;}
template<class TYPE>
virtual STK::CellHo< TYPE >::~CellHo ( ) [inline, virtual]

virtual destructor.

Definition at line 169 of file STK_Cell.h.

{ ;}

Member Function Documentation

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

Operator = : overwrite the Cell with C.

Definition at line 172 of file STK_Cell.h.

    { data_ = C.data_; 
      left_ = C.left_;
      right_ = C.right_;
      return *this;
    }
template<class TYPE>
CellHo<TYPE>& STK::CellHo< TYPE >::operator= ( TYPE const &  v) [inline]

operator = : write a value on the cell.

Reimplemented from STK::CellBase< TYPE >.

Reimplemented in STK::Cell2D< TYPE >.

Definition at line 180 of file STK_Cell.h.

    { data_ = v;
      return *this;
    }
template<class TYPE>
CellHo<TYPE>* STK::CellHo< TYPE >::getLeft ( ) const [inline]
template<class TYPE>
CellHo<TYPE>* STK::CellHo< TYPE >::getRight ( ) const [inline]
template<class TYPE>
void STK::CellHo< TYPE >::setLeft ( CellHo< TYPE > *  left) [inline]

Set the left cell adress.

Definition at line 194 of file STK_Cell.h.

Referenced by STK::List1D< IVariable * >::erase(), and STK::List1D< IVariable * >::initialize().

    { left_ = left;}
template<class TYPE>
void STK::CellHo< TYPE >::setRight ( CellHo< TYPE > *  right) [inline]

Set the right cell adress.

Definition at line 198 of file STK_Cell.h.

Referenced by STK::List1D< IVariable * >::initialize(), STK::List1D< IVariable * >::insertElt(), and STK::List1D< IVariable * >::pushBack().

    { right_ = right;}

Member Data Documentation


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