MySQL 8.3.0
Source Code Documentation
gis::Unary_functor< T > Class Template Referenceabstract

The base class of all functors that take one geometry argument. More...

#include <functor.h>

Public Member Functions

virtual T operator() (const Geometry &) const =0
 
virtual ~Unary_functor ()=default
 

Static Protected Member Functions

template<class F >
static T apply (F &f, const Geometry &g)
 

Detailed Description

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

The base class of all functors that take one geometry argument.

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

◆ ~Unary_functor()

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

Member Function Documentation

◆ apply()

template<typename T >
template<class F >
static T gis::Unary_functor< T >::apply ( F &  f,
const Geometry g 
)
inlinestaticprotected

◆ operator()()

template<typename T >
virtual T gis::Unary_functor< T >::operator() ( const Geometry ) const
pure virtual

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