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

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

#include <STK_Cell.h>

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

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.
 
- 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

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

Detailed Description

template<class Type>
class STK::CellHo< Type >

template class for the Horizontal Cell of a Horizontal List.

The class CellHo is used by the class List1D.

Definition at line 131 of file STK_Cell.h.

Constructor & Destructor Documentation

◆ CellHo() [1/3]

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

Default constructor

Definition at line 142 of file STK_Cell.h.

143 { left_ = left; right_ = right;}
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

References STK::CellHo< Type >::left_, and STK::CellHo< Type >::right_.

◆ CellHo() [2/3]

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

147 : CellBase<Type>(data)
148 { left_ = left; right_ = right; }
Type const & data() const
Definition STK_Cell.h:70

References STK::CellHo< Type >::left_, and STK::CellHo< Type >::right_.

◆ CellHo() [3/3]

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

Copy constructor

Definition at line 151 of file STK_Cell.h.

152 : CellBase<Type>(C)
153 , left_(C.left_)
154 , right_(C.right_)
155 { ;}

◆ ~CellHo()

template<class Type >
virtual STK::CellHo< Type >::~CellHo ( )
inlinevirtual

virtual destructor.


Definition at line 158 of file STK_Cell.h.

158{ ;}

Member Function Documentation

◆ getLeft()

template<class Type >
CellHo< Type > * STK::CellHo< Type >::getLeft ( ) const
inline

Give the adress of the cell left.


Definition at line 175 of file STK_Cell.h.

176 { return left_;}

References STK::CellHo< Type >::left_.

◆ getRight()

template<class Type >
CellHo< Type > * STK::CellHo< Type >::getRight ( ) const
inline

Give the adress of the cell right.


Definition at line 179 of file STK_Cell.h.

180 { return right_;}

References STK::CellHo< Type >::right_.

◆ operator=() [1/2]

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

Operator = : overwrite the Cell with C.


Definition at line 161 of file STK_Cell.h.

162 { data_ = C.data_;
163 left_ = C.left_;
164 right_ = C.right_;
165 return *this;
166 }
Type data_
Data contained by the Cell.
Definition STK_Cell.h:50

References STK::CellBase< Type >::data_, STK::CellHo< Type >::left_, and STK::CellHo< Type >::right_.

◆ operator=() [2/2]

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

operator = : write a value on the cell.


Definition at line 169 of file STK_Cell.h.

170 { data_ = v;
171 return *this;
172 }

References STK::CellBase< Type >::data_.

◆ setLeft()

template<class Type >
void STK::CellHo< Type >::setLeft ( CellHo< Type > *  left)
inline

Set the left cell adress.


Definition at line 183 of file STK_Cell.h.

184 { left_ = left;}

References STK::CellHo< Type >::left_.

◆ setRight()

template<class Type >
void STK::CellHo< Type >::setRight ( CellHo< Type > *  right)
inline

Set the right cell adress.


Definition at line 187 of file STK_Cell.h.

188 { right_ = right;}

References STK::CellHo< Type >::right_.

Member Data Documentation

◆ left_

template<class Type >
CellHo<Type>* STK::CellHo< Type >::left_
protected

◆ right_

template<class Type >
CellHo<Type>* STK::CellHo< Type >::right_
protected

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