|
STK++ 1.0
|
Interface base class for Series. More...
#include <STK_ISerie.h>
Public Member Functions | |
| virtual | ~ISerie () |
| Virtual destructor. | |
| Serie & | asLeaf () |
| static cast : return a reference of this with a cast to the derived class. | |
| const Serie & | asLeaf () const |
| static cast : return a const reference of this with a cast to the derived class. | |
| Real | first () const |
| return the first coefficient | |
| Real | next () const |
| return the next coefficient: first() have to be called before any use of next() | |
Protected Member Functions | |
| ISerie () | |
| Default Constructor. | |
Interface base class for Series.
The ISerie class is the templated base class for all Series.
ISerie takes a Serie template parameter. This parameter is the type of the class which derives from it. For exemple
class Serie : public ISerie<Serie> {...}
The pseudo virtual function defined in this interface have the following definition:
// return the first coefficient inline Real first() const; // return the next coefficient: first() have to be called before // any use of next() inline Real next() const;
Definition at line 67 of file STK_ISerie.h.
| STK::ISerie< Serie >::ISerie | ( | ) | [inline, protected] |
| virtual STK::ISerie< Serie >::~ISerie | ( | ) | [inline, virtual] |
| Serie& STK::ISerie< Serie >::asLeaf | ( | ) | [inline] |
static cast : return a reference of this with a cast to the derived class.
This allow to delegate public methods to derived classes.
Definition at line 83 of file STK_ISerie.h.
Referenced by STK::ISerie< SeriePi >::first(), and STK::ISerie< SeriePi >::next().
{ return static_cast<Serie&>(*this); }
| const Serie& STK::ISerie< Serie >::asLeaf | ( | ) | const [inline] |
static cast : return a const reference of this with a cast to the derived class.
This allow to delegate public method to derived classes.
Definition at line 90 of file STK_ISerie.h.
{ return static_cast<Serie const &>(*this); }
| Real STK::ISerie< Serie >::first | ( | ) | const [inline] |
return the first coefficient
Definition at line 95 of file STK_ISerie.h.
Referenced by STK::continuedFraction().
{ return asLeaf().first();}
| Real STK::ISerie< Serie >::next | ( | ) | const [inline] |
return the next coefficient: first() have to be called before any use of next()
Definition at line 101 of file STK_ISerie.h.
Referenced by STK::continuedFraction().
{ return asLeaf().next();}