vigra_ext::ReadFunctorAccessor< Functor, Accessor > Class Template Reference

This class can be used to apply a function when reading the input image. More...

#include <FunctorAccessor.h>

List of all members.

Public Types

typedef Functor::result_type value_type

Public Member Functions

 ReadFunctorAccessor (Functor f, Accessor a)
template<typename ITERATOR_, typename DIFFERENCE_>
Functor::result_type operator() (ITERATOR_ const &i, DIFFERENCE_ d) const
 Get functor result template <class A, class B> void function(A a, B b) { };.
template<class ITERATOR>
Functor::result_type operator() (ITERATOR const &i) const
 Get functor result.

Protected Attributes

Functor m_f
Accessor m_a


Detailed Description

template<class Functor, class Accessor>
class vigra_ext::ReadFunctorAccessor< Functor, Accessor >

This class can be used to apply a function when reading the input image.

Can be used to apply point operations temporarily, like scaling, gamma correction etc.

This is a read only accessor, writing is not supported.

Definition at line 41 of file FunctorAccessor.h.


Member Typedef Documentation

template<class Functor, class Accessor>
typedef Functor::result_type vigra_ext::ReadFunctorAccessor< Functor, Accessor >::value_type
 

Definition at line 44 of file FunctorAccessor.h.


Constructor & Destructor Documentation

template<class Functor, class Accessor>
vigra_ext::ReadFunctorAccessor< Functor, Accessor >::ReadFunctorAccessor Functor  f,
Accessor  a
[inline]
 

Definition at line 45 of file FunctorAccessor.h.


Member Function Documentation

template<class Functor, class Accessor>
template<class ITERATOR>
Functor::result_type vigra_ext::ReadFunctorAccessor< Functor, Accessor >::operator() ITERATOR const &  i  )  const [inline]
 

Get functor result.

Definition at line 66 of file FunctorAccessor.h.

template<class Functor, class Accessor>
template<typename ITERATOR_, typename DIFFERENCE_>
Functor::result_type vigra_ext::ReadFunctorAccessor< Functor, Accessor >::operator() ITERATOR_ const &  i,
DIFFERENCE_  d
const [inline]
 

Get functor result template <class A, class B> void function(A a, B b) { };.

Definition at line 58 of file FunctorAccessor.h.


Member Data Documentation

template<class Functor, class Accessor>
Accessor vigra_ext::ReadFunctorAccessor< Functor, Accessor >::m_a [protected]
 

Definition at line 72 of file FunctorAccessor.h.

template<class Functor, class Accessor>
Functor vigra_ext::ReadFunctorAccessor< Functor, Accessor >::m_f [protected]
 

Definition at line 71 of file FunctorAccessor.h.


The documentation for this class was generated from the following file:
Generated on Wed Apr 16 01:25:54 2014 for Hugintrunk by  doxygen 1.3.9.1