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

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

#include <STK_Cell.h>

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

Public Member Functions

 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.
 

Protected Attributes

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.
 

Detailed Description

template<class Type>
class STK::CellVe< Type >

template class for the Vertical Cell of a Vertical List.

The class CellVe is used by the class ListVe.

Definition at line 83 of file STK_Cell.h.

Constructor & Destructor Documentation

◆ CellVe() [1/3]

template<class Type >
STK::CellVe< Type >::CellVe ( CellVe< Type > *  up = 0,
CellVe< Type > *  down = 0 
)

Default constructor.

Definition at line 234 of file STK_Cell.h.

236 : CellBase<Type>()
237{ up_ = up; down_ = down;}
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

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

◆ CellVe() [2/3]

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

244 : CellBase<Type>(data)
245{ up_ = up; down_ = down; }
Type const & data() const
Definition STK_Cell.h:70

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

◆ CellVe() [3/3]

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

Copy constructor.

Definition at line 249 of file STK_Cell.h.

250{ data_ = C.data_; up_ = C.up_; down_ = C.down_; }
Type data_
Data contained by the Cell.
Definition STK_Cell.h:50

◆ ~CellVe()

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

Virtual destructor.


Definition at line 254 of file STK_Cell.h.

254{ ;}

Member Function Documentation

◆ getDown()

template<class Type >
CellVe< Type > * STK::CellVe< Type >::getDown ( ) const

Give the adress of the cell down.


Definition at line 278 of file STK_Cell.h.

279{ return down_;}

◆ getUp()

template<class Type >
CellVe< Type > * STK::CellVe< Type >::getUp ( ) const

Give the adress of the cell up.


Definition at line 273 of file STK_Cell.h.

274{ return up_;}

◆ operator=() [1/2]

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

Operator = : overwrite the Cell with C.


Definition at line 259 of file STK_Cell.h.

260{ data_ = C.data_; up_ = C.up_; down_ = C.down_;
261 return *this;
262}

◆ operator=() [2/2]

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

operator = : write a value on the cell.


Definition at line 266 of file STK_Cell.h.

267{ data_ = v;
268 return *this;
269}

◆ setDown()

template<class Type >
void STK::CellVe< Type >::setDown ( CellVe< Type > *  pcell)

Set the adress of the cell down.


Definition at line 288 of file STK_Cell.h.

289{ down_ = down;}

◆ setUp()

template<class Type >
void STK::CellVe< Type >::setUp ( CellVe< Type > *  pcell)

Set the adress of the cell up.


Definition at line 283 of file STK_Cell.h.

284{ up_ = up;}

Member Data Documentation

◆ down_

template<class Type >
CellVe<Type>* STK::CellVe< Type >::down_
protected

pointer on the cell down

Definition at line 89 of file STK_Cell.h.

Referenced by STK::CellVe< Type >::CellVe(), and STK::CellVe< Type >::CellVe().

◆ up_

template<class Type >
CellVe<Type>* STK::CellVe< Type >::up_
protected

pointer on the upper cell

Definition at line 88 of file STK_Cell.h.

Referenced by STK::CellVe< Type >::CellVe(), and STK::CellVe< Type >::CellVe().


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