Commit 9b0c75f1 authored by Kasper Marstal's avatar Kasper Marstal
Browse files

COMP: Use space between double right angled brackets

parent 78776fb4
......@@ -10,7 +10,7 @@ template< typename, typename >
struct list_append;
template< typename ... Ts, typename ... Us >
struct list_append< TypeList< Ts ... >, TypeList< Us ... >>
struct list_append< TypeList< Ts ... >, TypeList< Us ... > >
{
using type = TypeList< Ts ..., Us ... >;
};
......
......@@ -96,7 +96,7 @@ struct InterfaceName< TransformedImageInterface >
// InterfaceName<T>::Get() should return "itkImageSourceInterface" no matter over which arguments itkImageSourceInterface is templated
template< int D, class TPixel >
struct InterfaceName< itkImageInterface< D, TPixel >>
struct InterfaceName< itkImageInterface< D, TPixel > >
{
static const char * Get()
{
......@@ -105,7 +105,7 @@ struct InterfaceName< itkImageInterface< D, TPixel >>
};
template< int D, class TPixel >
struct InterfaceName< itkImageFixedInterface< D, TPixel >>
struct InterfaceName< itkImageFixedInterface< D, TPixel > >
{
static const char * Get()
{
......@@ -114,7 +114,7 @@ struct InterfaceName< itkImageFixedInterface< D, TPixel >>
};
template< int D >
struct InterfaceName< itkImageDomainFixedInterface< D >>
struct InterfaceName< itkImageDomainFixedInterface< D > >
{
static const char * Get()
{
......@@ -123,7 +123,7 @@ struct InterfaceName< itkImageDomainFixedInterface< D >>
};
template< int D, class TPixel >
struct InterfaceName< itkImageMovingInterface< D, TPixel >>
struct InterfaceName< itkImageMovingInterface< D, TPixel > >
{
static const char * Get()
{
......@@ -132,7 +132,7 @@ struct InterfaceName< itkImageMovingInterface< D, TPixel >>
};
template< int D, class TPixel >
struct InterfaceName< DisplacementFieldItkImageSourceInterface< D, TPixel >>
struct InterfaceName< DisplacementFieldItkImageSourceInterface< D, TPixel > >
{
static const char * Get()
{
......@@ -141,7 +141,7 @@ struct InterfaceName< DisplacementFieldItkImageSourceInterface< D, TPixel >>
};
template< int D, class TPixel >
struct InterfaceName< itkMeshInterface< D, TPixel >>
struct InterfaceName< itkMeshInterface< D, TPixel > >
{
static const char * Get()
{
......@@ -168,7 +168,7 @@ struct InterfaceName< SinkInterface >
};
template< int D, class TPixel >
struct InterfaceName< itkMetricv4Interface< D, TPixel >>
struct InterfaceName< itkMetricv4Interface< D, TPixel > >
{
static const char * Get()
{
......@@ -177,7 +177,7 @@ struct InterfaceName< itkMetricv4Interface< D, TPixel >>
};
template< class InternalComputationValueType >
struct InterfaceName< itkOptimizerv4Interface< InternalComputationValueType >>
struct InterfaceName< itkOptimizerv4Interface< InternalComputationValueType > >
{
static const char * Get()
{
......@@ -186,7 +186,7 @@ struct InterfaceName< itkOptimizerv4Interface< InternalComputationValueType >>
};
template< class InternalComputationValueType, int D >
struct InterfaceName< itkTransformInterface< InternalComputationValueType, D >>
struct InterfaceName< itkTransformInterface< InternalComputationValueType, D > >
{
static const char * Get()
{
......@@ -195,7 +195,7 @@ struct InterfaceName< itkTransformInterface< InternalComputationValueType, D >>
};
template< class F, class M >
struct InterfaceName< elastixTransformParameterObjectInterface< F, M >>
struct InterfaceName< elastixTransformParameterObjectInterface< F, M > >
{
static const char * Get()
{
......@@ -252,7 +252,7 @@ struct InterfaceName< LogInterface >
// 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 >
struct InterfaceName< InterfaceAcceptor< T1 >>
struct InterfaceName< InterfaceAcceptor< T1 > >
{
static const char * Get()
{
......
......@@ -20,6 +20,7 @@
#ifndef SuperElastixComponent_h
#define SuperElastixComponent_h
#include "selxMacro.h"
#include "selxComponentBase.h"
#include <typeinfo>
#include <string>
......
......@@ -79,7 +79,7 @@ ComponentBase::interfaceStatus
Accepting< FirstInterface, RestInterfaces ... >::ConnectFromImpl( const char * interfacename, ComponentBase * other )
{
// does our component have an accepting interface called interfacename?
if( InterfaceName< InterfaceAcceptor< FirstInterface >>::Get() == std::string( interfacename ) )
if( InterfaceName< InterfaceAcceptor< FirstInterface > >::Get() == std::string( interfacename ) )
{
// cast always succeeds since we know via the template arguments of the component which InterfaceAcceptors its base classes are.
InterfaceAcceptor< FirstInterface > * acceptIF = this;
......@@ -118,7 +118,7 @@ bool
Accepting< FirstInterface, RestInterfaces ... >::HasInterface( const char * interfacename )
{
//TODO: check on interface template arguments as well
if( InterfaceName< InterfaceAcceptor< FirstInterface >>::Get() == std::string( interfacename ) )
if( InterfaceName< InterfaceAcceptor< FirstInterface > >::Get() == std::string( interfacename ) )
{
return true;
}
......
......@@ -59,7 +59,7 @@ public:
TEST_F( InterfaceTest, InterfaceNameTraits )
{
EXPECT_STREQ( InterfaceName< MetricValueInterface >::Get(), "MetricValueInterface" );
EXPECT_STREQ( InterfaceName< InterfaceAcceptor< MetricValueInterface >>::Get(), "MetricValueInterface" );
EXPECT_STREQ( InterfaceName< InterfaceAcceptor< MetricValueInterface > >::Get(), "MetricValueInterface" );
}
TEST_F( InterfaceTest, DynamicCast )
......
......@@ -28,7 +28,7 @@ template< typename >
struct RegisterFactoriesByTypeList;
template< typename ... ComponentTypes >
struct RegisterFactoriesByTypeList< TypeList< ComponentTypes ... >>
struct RegisterFactoriesByTypeList< TypeList< ComponentTypes ... > >
{
static void Register()
{
......@@ -36,12 +36,12 @@ struct RegisterFactoriesByTypeList< TypeList< ComponentTypes ... >>
};
template< typename ComponentType, typename ... Rest >
struct RegisterFactoriesByTypeList< TypeList< ComponentType, Rest ... >>
struct RegisterFactoriesByTypeList< TypeList< ComponentType, Rest ... > >
{
static void Register()
{
ComponentFactory< ComponentType >::RegisterOneFactory();
RegisterFactoriesByTypeList< TypeList< Rest ... >>::Register();
RegisterFactoriesByTypeList< TypeList< Rest ... > >::Register();
}
};
}
......
......@@ -31,7 +31,7 @@
namespace selx
{
template< typename TWriter, typename FileWriterDecoratorTraits = FileWriterDecoratorDefaultTraits< TWriter >>
template< typename TWriter, typename FileWriterDecoratorTraits = FileWriterDecoratorDefaultTraits< TWriter > >
class FileWriterDecorator : public AnyFileWriter
{
public:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment