18#ifndef sitkMemberFunctionFactory_h
19#define sitkMemberFunctionFactory_h
50template <
typename TMemberFunctionPo
inter>
59 using ObjectType = typename ::detail::FunctionTraits<MemberFunctionType>::ClassType;
71 template <
typename TImageType>
115 template <
typename TPixelIDTypeList,
unsigned int VImageDimension,
typename TAddressor>
118 template <
typename TPixelIDTypeList,
unsigned int VImageDimension>
126 template <
typename TPixelIDTypeList,
unsigned int VImageDimension,
unsigned int VImageDimensionStop>
133 template <
typename TPixelIDTypeList,
134 unsigned int VImageDimension,
135 unsigned int VImageDimensionStop,
141 if constexpr (VImageDimensionStop > VImageDimension)
182#include "sitkMemberFunctionFactory.hxx"
typename ::detail::FunctionTraits< MemberFunctionType >::FunctionObjectType FunctionObjectType
MemberFunctionFactoryBase()
typename ::detail::FunctionTraits< MemberFunctionType >::ClassType ObjectType
ObjectType * m_ObjectPointer
MemberFunctionFactory(ObjectType *pObject)
Constructor which permanently binds the constructed object to pObject.
typename Superclass::FunctionObjectType FunctionObjectType
FunctionObjectType GetMemberFunction(PixelIDValueType pixelID, unsigned int imageDimension)
Returns a function object for the PixelIndex, and image dimension.
void Register(MemberFunctionType pfunc, TImageType *)
Registers a specific member function.
TMemberFunctionPointer MemberFunctionType
MemberFunctionFactory Self
void RegisterMemberFunctions()
Registers all member functions in TPixelIDTypeList and simple::InstantiatedPixelIDTypeList over itk::...
MemberFunctionFactoryBase< TMemberFunctionPointer, std::pair< unsigned int, int > > Superclass
void RegisterMemberFunctions()
Registers all member functions in TPixelIDTypeList and simple::InstantiatedPixelIDTypeList over itk::...
void RegisterMemberFunctions()
Registers all member functions in TPixelIDTypeList and simple::InstantiatedPixelIDTypeList over itk::...
bool HasMemberFunction(PixelIDValueType pixelID, unsigned int imageDimension) const noexcept
Query to determine if an member function has been registered for pixelID and imageDimension.