DGtal 1.3.0
Loading...
Searching...
No Matches
Data Structures | Public Types | Public Member Functions | Private Member Functions | Private Attributes | Friends
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 90 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 95 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 94 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 93 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 96 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 108 of file MPolynomial.h.

109 : myOwner(owner), myEvalPoint(evalpoint)
110 {}
const X & myEvalPoint
The evaluation point on this level.
Definition: MPolynomial.h:106

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 149 of file MPolynomial.h.

150 {
151 X res = (X) 0;
152 myOwner.evaluate( res, EvalFun( *this ) );
153 return res;
154 }

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 159 of file MPolynomial.h.

160 {
161 return (X)(*this);
162 }

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 99 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 102 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 106 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 105 of file MPolynomial.h.


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