[ VIGRA Homepage | Function Index | Class Index | Namespaces | File List | Main Page ]
FunctorTraits< T > Class Template Reference |
Export associated information for a functor. More...
#include <vigra/functortraits.hxx>
Inherits FunctorTraitsBase< T >.
Export associated information for a functor.
The FunctorTraits class contains the following fields:
where the dots are either VigraTrueType
or VigraFalseType
depending on whether the functor supports the respective functionality or not. Note that these traits are automatically defined correctly when your functor is derived from the appropriate functor tag classes:
If a functor f
is a model of these categories, it supports the following calls (v
is a variable such that the result type of the functor calls can be converted into v
's type, and a1, a2, a3
are variables convertible into the functor's argument types):
v = f()
(used with initImageWithFunctor()) v = f(a1)
(used with transformImage()) v = f(a1, a2)
(used with combineTwoImages()) v = f(a1, a2, a3)
(used with combineThreeImages()) f(a1)
(return type void
, used with inspectImage()) f(a1, a2)
(return type void
, used with inspectTwoImages()) f(a1, a2, a3)
(return type void
) It should be noted that the functor's argument and result types are not contained in the traits class: Since the function calls are often member template functions in VIGRA, many functors do not have fixed argument types. Neither are the result types fixed in this case because they are computed (via a template meta-program) from the argument types.
#include <vigra/functortraits.hxx>
Namespace: vigra
© Ullrich Köthe (ullrich.koethe@iwr.uni-heidelberg.de) |
html generated using doxygen and Python
|