MySQL 9.1.0
Source Code Documentation
gis::Functor< T > Class Template Referenceabstract

The base class of all functors that takes two geometry arguments. More...

#include <functor.h>

Public Member Functions

virtual T operator() (const Geometry *g1, const Geometry *g2) const =0
 
virtual ~Functor ()=default
 

Static Protected Member Functions

template<typename F >
static T apply (F &f, const Geometry *g1, const Geometry *g2)
 

Detailed Description

template<typename T>
class gis::Functor< T >

The base class of all functors that takes two geometry arguments.

Subclasses of this functor base class will implement operator() and call apply() to do type combination dispatching. The actual body of the functor is in the eval() member function, which must be implemented for each different parameter type combination.

The functor may throw exceptions.

Template Parameters
TThe return type of the functor.

Constructor & Destructor Documentation

◆ ~Functor()

template<typename T >
virtual gis::Functor< T >::~Functor ( )
virtualdefault

Member Function Documentation

◆ apply()

template<typename T >
template<typename F >
static T gis::Functor< T >::apply ( F &  f,
const Geometry g1,
const Geometry g2 
)
inlinestaticprotected

◆ operator()()


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