aimstil  5.0.5
til::Dyn< Functor, TReturn > Class Template Reference

Functor wrapper for dynamic type images. More...

#include <til/DynImage.h>

Inheritance diagram for til::Dyn< Functor, TReturn >:
Collaboration diagram for til::Dyn< Functor, TReturn >:

Public Member Functions

 Dyn (const Functor &functor)
 
template<template< typename > class TImage>
TReturn operator() (DynImage< TImage > *dynim)
 

Detailed Description

template<typename Functor, typename TReturn = void>
class til::Dyn< Functor, TReturn >

Functor wrapper for dynamic type images.

This functor helps reusing functors that were written for static-type images with dynamic type images. Whenever Functor was used before, simply use Dyn<Functor>. If you expect a return value, use Dyn<Functor, TReturn>. The constraint on the Functor class here is that a call to its operator() is enough to call all parts of the functor that need to process the image (e.g. there is not Functor::init(im)). If not, you will have to create your own functor wrapper.

Definition at line 131 of file DynImage.h.

Constructor & Destructor Documentation

◆ Dyn()

template<typename Functor , typename TReturn = void>
til::Dyn< Functor, TReturn >::Dyn ( const Functor &  functor)
inline

Definition at line 135 of file DynImage.h.

Member Function Documentation

◆ operator()()

template<typename Functor , typename TReturn = void>
template<template< typename > class TImage>
TReturn til::Dyn< Functor, TReturn >::operator() ( DynImage< TImage > *  dynim)
inline

Definition at line 140 of file DynImage.h.

References TIL_DYNIM_BLOCKS.


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