Skip to content
Snippets Groups Projects
Commit 19da9330 authored by Floris Berendsen's avatar Floris Berendsen
Browse files

DOC: minor, comments

parent de7dc3d9
No related branches found
No related tags found
No related merge requests found
...@@ -83,34 +83,7 @@ struct InterfaceName < itkImageToImageFilterInterface > ...@@ -83,34 +83,7 @@ struct InterfaceName < itkImageToImageFilterInterface >
} }
}; };
/* // InterfaceName<T>::Get() should return "itkImageSourceInterface" no matter over which arguments itkImageSourceInterface is templated
auto name = InterfaceName < itkImageToImageFilterInterface >::Get()
auto name = InterfaceName < itkImageSourceInterface<3,float> >::Get()
auto name = InterfaceName < wrap<itkImageToImageFilterInterface> >::Get()
auto name = InterfaceName < wrap<itkImageSourceInterface<3, float>> >::Get()
*/
//typedef itkImageSourceInterface <D, T>
//itkImageSourceInterface<Dimensionality, PixelType>
//template <itkImageSourceInterface IF, int D, class P>
//template <int D, typename T>
//template <template <int Dname, class Pname> class IF = InterfaceName<int,class>, int D, class TPixel>
//template <template <int, class> class itkImageSourceInterface, int D, class TPixel>
//template <template <typename...> class IF, typename... Rest>
//struct InterfaceName < IF <Rest...> >
/*
template <template <int, class> class IF, int D, class TPixel>
struct InterfaceName < IF <D, TPixel> >
{
static const char* Get()
{
return "itkImageSourceInterface";
}
};
*/
template <int D, class TPixel> template <int D, class TPixel>
struct InterfaceName < itkImageSourceInterface <D, TPixel> > struct InterfaceName < itkImageSourceInterface <D, TPixel> >
{ {
...@@ -139,19 +112,8 @@ struct InterfaceName < SinkInterface > ...@@ -139,19 +112,8 @@ struct InterfaceName < SinkInterface >
} }
}; };
/*
// partial specialization of InterfaceName
template<template<typename> class TT, typename T1>
struct InterfaceName < TT<T1> > {
static const char* Get()
{
return InterfaceName<T1>::Get();
}
};
*/
// partial specialization of InterfaceName // partial specialization of InterfaceName
// InterfaceName<T>::Get() should return the same name no matter whether T is an acceptor or provider interface.
template<typename T1> template<typename T1>
struct InterfaceName < InterfaceAcceptor<T1> > { struct InterfaceName < InterfaceAcceptor<T1> > {
static const char* Get() static const char* Get()
...@@ -160,16 +122,6 @@ struct InterfaceName < InterfaceAcceptor<T1> > { ...@@ -160,16 +122,6 @@ struct InterfaceName < InterfaceAcceptor<T1> > {
} }
}; };
template <typename T>
struct AcceptorInterfaceName
{
static const char* Get()
{
return InterfaceName<T>::Get();
}
};
} // end namespace selx } // end namespace selx
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment