DGtal  0.9.3beta
Public Member Functions | Data Fields
DGtal::MPolynomialReader< n, TRing, TAlloc, TIterator >::ExprNodeMaker Struct Reference
Inheritance diagram for DGtal::MPolynomialReader< n, TRing, TAlloc, TIterator >::ExprNodeMaker:
[legend]
Collaboration diagram for DGtal::MPolynomialReader< n, TRing, TAlloc, TIterator >::ExprNodeMaker:
[legend]

Public Member Functions

 ExprNodeMaker (MPolynomialReader &reader)
 
void operator() (const detail::monomial_node &mnode)
 
void operator() (const detail::top_node &topnode)
 

Data Fields

Polynomial myP
 
MPolynomialReadermyPR
 

Detailed Description

template<int n, typename TRing, typename TAlloc = std::allocator<TRing>, typename TIterator = std::string::const_iterator>
struct DGtal::MPolynomialReader< n, TRing, TAlloc, TIterator >::ExprNodeMaker

Intermediate structure to define a functor to choose between two possible node types: either a monomial_node or a top_node.

See also
make( const detail::top_node & )

Definition at line 346 of file MPolynomialReader.h.

Constructor & Destructor Documentation

template<int n, typename TRing, typename TAlloc = std::allocator<TRing>, typename TIterator = std::string::const_iterator>
DGtal::MPolynomialReader< n, TRing, TAlloc, TIterator >::ExprNodeMaker::ExprNodeMaker ( MPolynomialReader reader)
inline

Definition at line 349 of file MPolynomialReader.h.

350  : myPR( reader )
351  {}

Member Function Documentation

template<int n, typename TRing, typename TAlloc = std::allocator<TRing>, typename TIterator = std::string::const_iterator>
void DGtal::MPolynomialReader< n, TRing, TAlloc, TIterator >::ExprNodeMaker::operator() ( const detail::monomial_node mnode)
inline

Definition at line 352 of file MPolynomialReader.h.

References DGtal::MPolynomialReader< n, TRing, TAlloc, TIterator >::make().

353  {
354  myP = myPR.make( mnode );
355  }
Polynomial make(const detail::power_node &pnode)
template<int n, typename TRing, typename TAlloc = std::allocator<TRing>, typename TIterator = std::string::const_iterator>
void DGtal::MPolynomialReader< n, TRing, TAlloc, TIterator >::ExprNodeMaker::operator() ( const detail::top_node topnode)
inline

Definition at line 356 of file MPolynomialReader.h.

References DGtal::MPolynomialReader< n, TRing, TAlloc, TIterator >::make().

357  {
358  myP = myPR.make( topnode );
359  }
Polynomial make(const detail::power_node &pnode)

Field Documentation

template<int n, typename TRing, typename TAlloc = std::allocator<TRing>, typename TIterator = std::string::const_iterator>
Polynomial DGtal::MPolynomialReader< n, TRing, TAlloc, TIterator >::ExprNodeMaker::myP
template<int n, typename TRing, typename TAlloc = std::allocator<TRing>, typename TIterator = std::string::const_iterator>
MPolynomialReader& DGtal::MPolynomialReader< n, TRing, TAlloc, TIterator >::ExprNodeMaker::myPR

Definition at line 348 of file MPolynomialReader.h.


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