DGtal  1.4.beta
DGtal::MPolynomialEvaluatorImpl< 1, TRing, TOwner, TAlloc, TX > Class Template Reference

#include <DGtal/math/MPolynomial.h>

Data Structures

class  EvalFun
 

Public Types

typedef TRing Ring
 
typedef TOwner Owner
 
typedef TAlloc Alloc
 
typedef TX X
 

Public Member Functions

 operator X () const
 
X operator() () const
 

Private Member Functions

 MPolynomialEvaluatorImpl (const Owner &owner, const X &evalpoint)
 

Private Attributes

const OwnermyOwner
 The "owner". More...
 
const XmyEvalPoint
 The evaluation point on this level. More...
 

Friends

template<int nn, class TT , class AA , class SS >
class MPolynomialEvaluator
 
template<int nn, class TT , class HLHL , class AA , class SS >
class MPolynomialEvaluatorImpl
 

Detailed Description

template<typename TRing, typename TOwner, typename TAlloc, typename TX>
class DGtal::MPolynomialEvaluatorImpl< 1, TRing, TOwner, TAlloc, TX >

Description of template class 'MPolynomialEvaluatorImpl'

Specialization of MPolynomialEvaluatorImpl for 1 variable.

This class is a backport from Spielwiese.

Definition at line 100 of file MPolynomial.h.

Member Typedef Documentation

◆ Alloc

template<typename TRing , typename TOwner , typename TAlloc , typename TX >
typedef TAlloc DGtal::MPolynomialEvaluatorImpl< 1, TRing, TOwner, TAlloc, TX >::Alloc

Definition at line 105 of file MPolynomial.h.

◆ Owner

template<typename TRing , typename TOwner , typename TAlloc , typename TX >
typedef TOwner DGtal::MPolynomialEvaluatorImpl< 1, TRing, TOwner, TAlloc, TX >::Owner

Definition at line 104 of file MPolynomial.h.

◆ Ring

template<typename TRing , typename TOwner , typename TAlloc , typename TX >
typedef TRing DGtal::MPolynomialEvaluatorImpl< 1, TRing, TOwner, TAlloc, TX >::Ring

Definition at line 103 of file MPolynomial.h.

◆ X

template<typename TRing , typename TOwner , typename TAlloc , typename TX >
typedef TX DGtal::MPolynomialEvaluatorImpl< 1, TRing, TOwner, TAlloc, TX >::X

Definition at line 106 of file MPolynomial.h.

Constructor & Destructor Documentation

◆ MPolynomialEvaluatorImpl()

template<typename TRing , typename TOwner , typename TAlloc , typename TX >
DGtal::MPolynomialEvaluatorImpl< 1, TRing, TOwner, TAlloc, TX >::MPolynomialEvaluatorImpl ( const Owner owner,
const X evalpoint 
)
inlineprivate

Definition at line 118 of file MPolynomial.h.

119  : myOwner(owner), myEvalPoint(evalpoint)
120  {}
const X & myEvalPoint
The evaluation point on this level.
Definition: MPolynomial.h:116

Member Function Documentation

◆ operator X()

template<typename TRing , typename TOwner , typename TAlloc , typename TX >
DGtal::MPolynomialEvaluatorImpl< 1, TRing, TOwner, TAlloc, TX >::operator X ( ) const
inline

Cast operator to type X (the explicit type of the variable).

Definition at line 159 of file MPolynomial.h.

160  {
161  X res = (X) 0;
162  myOwner.evaluate( res, EvalFun( *this ) );
163  return res;
164  }

References DGtal::MPolynomialEvaluatorImpl< n, TRing, TOwner, TAlloc, TX >::myOwner.

◆ operator()()

template<typename TRing , typename TOwner , typename TAlloc , typename TX >
X DGtal::MPolynomialEvaluatorImpl< 1, TRing, TOwner, TAlloc, TX >::operator() ( ) const
inline

Explicit evaluate. Essentially calls operator S().

Definition at line 169 of file MPolynomial.h.

170  {
171  return (X)(*this);
172  }

Friends And Related Function Documentation

◆ MPolynomialEvaluator

template<typename TRing , typename TOwner , typename TAlloc , typename TX >
template<int nn, class TT , class AA , class SS >
friend class MPolynomialEvaluator
friend

Definition at line 109 of file MPolynomial.h.

◆ MPolynomialEvaluatorImpl

template<typename TRing , typename TOwner , typename TAlloc , typename TX >
template<int nn, class TT , class HLHL , class AA , class SS >
friend class MPolynomialEvaluatorImpl
friend

Definition at line 112 of file MPolynomial.h.

Field Documentation

◆ myEvalPoint

template<typename TRing , typename TOwner , typename TAlloc , typename TX >
const X& DGtal::MPolynomialEvaluatorImpl< 1, TRing, TOwner, TAlloc, TX >::myEvalPoint
private

The evaluation point on this level.

Definition at line 116 of file MPolynomial.h.

◆ myOwner

template<typename TRing , typename TOwner , typename TAlloc , typename TX >
const Owner& DGtal::MPolynomialEvaluatorImpl< 1, TRing, TOwner, TAlloc, TX >::myOwner
private

The "owner".

Definition at line 115 of file MPolynomial.h.


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