18#ifndef sitkDualMemberFunctionFactory_h
19#define sitkDualMemberFunctionFactory_h
59template <
typename TMemberFunctionPo
inter>
70 using ObjectType = typename ::detail::FunctionTraits<MemberFunctionType>::ClassType;
80 template <
typename TImageType1,
typename TImageType2>
121 template <
typename TPixelIDTypeList1,
typename TPixelIDTypeList2,
unsigned int VImageDimension,
typename TAddressor>
124 template <
typename TPixelIDTypeList1,
typename TPixelIDTypeList2,
unsigned int VImageDimension>
132 template <
typename TPixelIDTypeList,
unsigned int VImageDimension,
typename TAddressor>
135 template <
typename TPixelIDTypeList,
unsigned int VImageDimension>
179#include "sitkDualMemberFunctionFactory.hxx"
FunctionObjectType GetMemberFunction(PixelIDValueType pixelID1, PixelIDValueType pixelID2, unsigned int imageDimension)
Returns a function object for the combination of PixelID1 and PixelID2, and image dimension.
void RegisterMemberFunctions()
Registers the member functions for all combinations of TPixelIDTypeList1 and PixelIDTypeList2.
TMemberFunctionPointer MemberFunctionType
DualMemberFunctionFactory(ObjectType *pObject)
Constructor which permanently binds the constructed object to pObject.
void RegisterMemberFunctions()
Registers the member functions for all combinations of TPixelIDTypeList1 and PixelIDTypeList2.
MemberFunctionFactoryBase< TMemberFunctionPointer, std::tuple< unsigned int, int, unsigned int, int > > Superclass
typename ::detail::FunctionTraits< MemberFunctionType >::ClassType ObjectType
typename Superclass::FunctionObjectType FunctionObjectType
void RegisterMemberFunctions()
Registers the member functions for all combinations of TPixelIDTypeList1 and PixelIDTypeList2.
DualMemberFunctionFactory Self
bool HasMemberFunction(PixelIDValueType pixelID1, PixelIDValueType pixelID2, unsigned int imageDimension) const noexcept
Query to determine if an member function has been registered for pixelID1, pixelID2 and imageDimensio...
ObjectType * m_ObjectPointer
void Register(MemberFunctionType pfunc, TImageType1 *, TImageType2 *)
Registers a specific member function.
typename ::detail::FunctionTraits< MemberFunctionType >::FunctionObjectType FunctionObjectType
MemberFunctionFactoryBase()