Go to the documentation of this file.
18 #ifndef sitkDualMemberFunctionFactory_h
19 #define sitkDualMemberFunctionFactory_h
64 template <
typename TMemberFunctionPo
inter>
75 typedef typename ::detail::FunctionTraits<MemberFunctionType>::ClassType
ObjectType;
85 template<
typename TImageType1,
typename TImageType2 >
125 template <
typename TPixelIDTypeList1,
126 typename TPixelIDTypeList2,
127 unsigned int VImageDimension,
128 typename TAddressor >
130 template <
typename TPixelIDTypeList1,
131 typename TPixelIDTypeList2,
132 unsigned int VImageDimension >
136 this->RegisterMemberFunctions< TPixelIDTypeList1, TPixelIDTypeList2, VImageDimension, AddressorType>();
179 #include "sitkDualMemberFunctionFactory.hxx"
181 #endif // sitkDualMemberFunctionFactory_h
Superclass::FunctionObjectType FunctionObjectType
void Register(MemberFunctionType pfunc, TImageType1 *, TImageType2 *)
Registers a specific member function.
A class used to instantiate and generate function objects of templated member functions with two temp...
::detail::FunctionTraits< MemberFunctionType >::ClassType ObjectType
bool HasMemberFunction(PixelIDValueType pixelID1, PixelIDValueType pixelID2, unsigned int imageDimension) const SITK_NOEXCEPT
Query to determine if an member function has been registered for pixelID1, pixelID2 and imageDimensio...
FunctionObjectType GetMemberFunction(PixelIDValueType pixelID1, PixelIDValueType pixelID2, unsigned int imageDimension)
Returns a function object for the combination of PixelID1 and PixelID2, and image dimension.
ObjectType * m_ObjectPointer
void RegisterMemberFunctions(void)
Registers the member functions for all combinations of TPixelIDTypeList1 and PixelIDTypeList2.
MemberFunctionFactoryBase< TMemberFunctionPointer, std::pair< int, int > > Superclass
DualMemberFunctionFactory Self
DualMemberFunctionFactory(ObjectType *pObject)
Constructor which permanently binds the constructed object to pObject.
TMemberFunctionPointer MemberFunctionType
void RegisterMemberFunctions(void)
Registers the member functions for all combinations of TPixelIDTypeList1 and PixelIDTypeList2.
A base class for the MemberFunctionFactory.