Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SuperElastix
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirrors
SuperElastix
Commits
19da9330
Commit
19da9330
authored
9 years ago
by
Floris Berendsen
Browse files
Options
Downloads
Patches
Plain Diff
DOC: minor, comments
parent
de7dc3d9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Modules/Core/ComponentInterface/include/InterfaceTraits.h
+2
-50
2 additions, 50 deletions
Modules/Core/ComponentInterface/include/InterfaceTraits.h
with
2 additions
and
50 deletions
Modules/Core/ComponentInterface/include/InterfaceTraits.h
+
2
−
50
View file @
19da9330
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment