SimpleITK  
Public Types | Protected Types | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
itk::simple::detail::MemberFunctionFactoryBase< TMemberFunctionPointer, TKey > Class Template Reference

#include <sitkMemberFunctionFactoryBase.h>

+ Inheritance diagram for itk::simple::detail::MemberFunctionFactoryBase< TMemberFunctionPointer, TKey >:
+ Collaboration diagram for itk::simple::detail::MemberFunctionFactoryBase< TMemberFunctionPointer, TKey >:

Detailed Description

template<typename TMemberFunctionPointer, typename TKey>
class itk::simple::detail::MemberFunctionFactoryBase< TMemberFunctionPointer, TKey >

Definition at line 86 of file sitkMemberFunctionFactoryBase.h.

Public Types

using FunctionObjectType = typename ::detail::FunctionTraits< MemberFunctionType >::FunctionObjectType
 

Protected Types

using FunctionMapType = std::unordered_map< TKey, FunctionObjectType, hash< TKey > >
 
using KeyType = TKey
 
using MemberFunctionResultType = typename ::detail::FunctionTraits< MemberFunctionType >::ResultType
 
using MemberFunctionType = TMemberFunctionPointer
 
using ObjectType = typename ::detail::FunctionTraits< MemberFunctionType >::ClassType
 

Protected Member Functions

 MemberFunctionFactoryBase ()
 

Static Protected Member Functions

template<typename... Args>
static FunctionObjectType BindObject (MemberFunctionResultType(ObjectType ::*pfunc)(Args...), ObjectType *objectPointer)
 

Protected Attributes

FunctionMapType m_PFunction
 

Member Typedef Documentation

◆ FunctionMapType

template<typename TMemberFunctionPointer , typename TKey >
using itk::simple::detail::MemberFunctionFactoryBase< TMemberFunctionPointer, TKey >::FunctionMapType = std::unordered_map<TKey, FunctionObjectType, hash<TKey> >
protected

Definition at line 121 of file sitkMemberFunctionFactoryBase.h.

◆ FunctionObjectType

template<typename TMemberFunctionPointer , typename TKey >
using itk::simple::detail::MemberFunctionFactoryBase< TMemberFunctionPointer, TKey >::FunctionObjectType = typename ::detail::FunctionTraits<MemberFunctionType>::FunctionObjectType

the pointer MemberFunctionType redefined as a std::function object

Definition at line 101 of file sitkMemberFunctionFactoryBase.h.

◆ KeyType

template<typename TMemberFunctionPointer , typename TKey >
using itk::simple::detail::MemberFunctionFactoryBase< TMemberFunctionPointer, TKey >::KeyType = TKey
protected

Definition at line 104 of file sitkMemberFunctionFactoryBase.h.

◆ MemberFunctionResultType

template<typename TMemberFunctionPointer , typename TKey >
using itk::simple::detail::MemberFunctionFactoryBase< TMemberFunctionPointer, TKey >::MemberFunctionResultType = typename ::detail::FunctionTraits<MemberFunctionType>::ResultType
protected

Definition at line 91 of file sitkMemberFunctionFactoryBase.h.

◆ MemberFunctionType

template<typename TMemberFunctionPointer , typename TKey >
using itk::simple::detail::MemberFunctionFactoryBase< TMemberFunctionPointer, TKey >::MemberFunctionType = TMemberFunctionPointer
protected

Definition at line 89 of file sitkMemberFunctionFactoryBase.h.

◆ ObjectType

template<typename TMemberFunctionPointer , typename TKey >
using itk::simple::detail::MemberFunctionFactoryBase< TMemberFunctionPointer, TKey >::ObjectType = typename ::detail::FunctionTraits<MemberFunctionType>::ClassType
protected

Definition at line 90 of file sitkMemberFunctionFactoryBase.h.

Constructor & Destructor Documentation

◆ MemberFunctionFactoryBase()

template<typename TMemberFunctionPointer , typename TKey >
itk::simple::detail::MemberFunctionFactoryBase< TMemberFunctionPointer, TKey >::MemberFunctionFactoryBase ( )
inlineprotected

Definition at line 94 of file sitkMemberFunctionFactoryBase.h.

Member Function Documentation

◆ BindObject()

template<typename TMemberFunctionPointer , typename TKey >
template<typename... Args>
static FunctionObjectType itk::simple::detail::MemberFunctionFactoryBase< TMemberFunctionPointer, TKey >::BindObject ( MemberFunctionResultType(ObjectType ::*)(Args...)  pfunc,
ObjectType objectPointer 
)
inlinestaticprotected

A function which binds the objectPointer to the calling object argument in the member function pointer, and returns a function object

Definition at line 112 of file sitkMemberFunctionFactoryBase.h.

Member Data Documentation

◆ m_PFunction

template<typename TMemberFunctionPointer , typename TKey >
FunctionMapType itk::simple::detail::MemberFunctionFactoryBase< TMemberFunctionPointer, TKey >::m_PFunction
protected

Definition at line 124 of file sitkMemberFunctionFactoryBase.h.


The documentation for this class was generated from the following file: