18 #ifndef sitkMemberFunctionFactory_h
19 #define sitkMemberFunctionFactory_h
54 template <
typename TMemberFunctionPo
inter>
65 typedef typename ::detail::FunctionTraits<MemberFunctionType>::ClassType
ObjectType;
77 template<
typename TImageType >
78 void Register( MemberFunctionType pfunc, TImageType* );
115 template <
typename TPixelIDTypeList,
116 unsigned int VImageDimension,
117 typename TAddressor >
119 template <
typename TPixelIDTypeList,
unsigned int VImageDimension >
123 this->RegisterMemberFunctions< TPixelIDTypeList, VImageDimension, AddressorType >();
163 #include "sitkMemberFunctionFactory.hxx"
165 #endif // sitkMemberFunctionFactory_h
ObjectType * m_ObjectPointer
::detail::FunctionTraits< MemberFunctionType >::ClassType ObjectType
A class used to instantiate and generate function object to templated member functions.
TMemberFunctionPointer MemberFunctionType
void RegisterMemberFunctions(void)
Registers all member functions in TPixelIDTypeList and simple::InstantiatedPixelIDTypeList over itk::...
void RegisterMemberFunctions(void)
Registers all member functions in TPixelIDTypeList and simple::InstantiatedPixelIDTypeList over itk::...
Superclass::FunctionObjectType FunctionObjectType
MemberFunctionFactory Self
void Register(MemberFunctionType pfunc, TImageType *)
Registers a specific member function.
MemberFunctionFactory(ObjectType *pObject)
Constructor which permanently binds the constructed object to pObject.
FunctionObjectType GetMemberFunction(PixelIDValueType pixelID, unsigned int imageDimension)
Returns a function object for the PixelIndex, and image dimension.
MemberFunctionFactoryBase< TMemberFunctionPointer, int > Superclass
A base class for the MemberFunctionFactory.
bool HasMemberFunction(PixelIDValueType pixelID, unsigned int imageDimension) const
Query to determine if an member function has been registered for pixelID and imageDimension.