Skip to content

Commit 6e68f22

Browse files
jhlegarretahjmjohnson
authored andcommitted
TYLE: Use "typename" for template parameters.
As discussed in: http://review.source.kitware.com/#/c/12655/ the use of the template keyword "class" was substituted by "typename" in the toolkit for the reasons stated in that topic.
1 parent b69f8c9 commit 6e68f22

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

include/itkArrivalFunctionToPathFilter.hxx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
namespace itk
2525
{
2626

27-
template <class TInputImage, class TOutputPath>
27+
template <typename TInputImage, typename TOutputPath>
2828
ArrivalFunctionToPathFilter<TInputImage,TOutputPath>
2929
::ArrivalFunctionToPathFilter()
3030
{
@@ -33,13 +33,13 @@ ArrivalFunctionToPathFilter<TInputImage,TOutputPath>
3333
}
3434

3535

36-
template <class TInputImage, class TOutputPath>
36+
template <typename TInputImage, typename TOutputPath>
3737
ArrivalFunctionToPathFilter<TInputImage,TOutputPath>
3838
::~ArrivalFunctionToPathFilter()
3939
{
4040
}
4141

42-
template <class TInputImage, class TOutputPath>
42+
template <typename TInputImage, typename TOutputPath>
4343
void
4444
ArrivalFunctionToPathFilter<TInputImage,TOutputPath>
4545
::SetPathEndPoint(const PointType &point)
@@ -48,7 +48,7 @@ ArrivalFunctionToPathFilter<TInputImage,TOutputPath>
4848
this->AddPathEndPoint( point );
4949
}
5050

51-
template <class TInputImage, class TOutputPath>
51+
template <typename TInputImage, typename TOutputPath>
5252
void
5353
ArrivalFunctionToPathFilter<TInputImage,TOutputPath>
5454
::AddPathEndPoint(const PointType &point)
@@ -60,7 +60,7 @@ ArrivalFunctionToPathFilter<TInputImage,TOutputPath>
6060
}
6161

6262

63-
template <class TInputImage, class TOutputPath>
63+
template <typename TInputImage, typename TOutputPath>
6464
void
6565
ArrivalFunctionToPathFilter<TInputImage,TOutputPath>
6666
::ClearPathEndPoints()
@@ -73,7 +73,7 @@ ArrivalFunctionToPathFilter<TInputImage,TOutputPath>
7373
}
7474

7575

76-
template <class TInputImage, class TOutputPath>
76+
template <typename TInputImage, typename TOutputPath>
7777
void
7878
ArrivalFunctionToPathFilter<TInputImage,TOutputPath>
7979
::GenerateInputRequestedRegion()
@@ -88,23 +88,23 @@ ArrivalFunctionToPathFilter<TInputImage,TOutputPath>
8888
}
8989

9090

91-
template<class TInputImage, class TOutputPath>
91+
template<typename TInputImage, typename TOutputPath>
9292
unsigned int
9393
ArrivalFunctionToPathFilter<TInputImage,TOutputPath>
9494
::GetNumberOfPathsToExtract() const
9595
{
9696
return m_PointList.size();
9797
}
9898

99-
template<class TInputImage, class TOutputPath>
99+
template<typename TInputImage, typename TOutputPath>
100100
const typename ArrivalFunctionToPathFilter<TInputImage,TOutputPath>::PointsContainerType &
101101
ArrivalFunctionToPathFilter<TInputImage,TOutputPath>
102102
::GetNextEndPoint()
103103
{
104104
return m_PointList[m_CurrentOutput];
105105
}
106106

107-
template<class TInputImage, class TOutputPath>
107+
template<typename TInputImage, typename TOutputPath>
108108
typename ArrivalFunctionToPathFilter<TInputImage,TOutputPath>::InputImageType *
109109
ArrivalFunctionToPathFilter<TInputImage,TOutputPath>
110110
::ComputeArrivalFunction()
@@ -113,7 +113,7 @@ ArrivalFunctionToPathFilter<TInputImage,TOutputPath>
113113
return function;
114114
}
115115

116-
template <class TInputImage, class TOutputPath>
116+
template <typename TInputImage, typename TOutputPath>
117117
void
118118
ArrivalFunctionToPathFilter<TInputImage,TOutputPath>
119119
::GenerateData( void )
@@ -213,7 +213,7 @@ ArrivalFunctionToPathFilter<TInputImage,TOutputPath>
213213
m_Optimizer->RemoveObserver( observerTag );
214214
}
215215

216-
template <class TInputImage, class TOutputPath>
216+
template <typename TInputImage, typename TOutputPath>
217217
void
218218
ArrivalFunctionToPathFilter<TInputImage,TOutputPath>
219219
::Execute( const Object * object, const EventObject & event )
@@ -267,7 +267,7 @@ ArrivalFunctionToPathFilter<TInputImage,TOutputPath>
267267
output->AddVertex( cindex );
268268
}
269269

270-
template<class TInputImage, class TOutputPath>
270+
template<typename TInputImage, typename TOutputPath>
271271
void
272272
ArrivalFunctionToPathFilter<TInputImage,TOutputPath>
273273
::PrintSelf(std::ostream& os, Indent indent) const

include/itkSpeedFunctionToPathFilter.hxx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ namespace itk
2929
/**
3030
*
3131
*/
32-
template <class TInputImage, class TOutputPath>
32+
template <typename TInputImage, typename TOutputPath>
3333
SpeedFunctionToPathFilter<TInputImage,TOutputPath>
3434
::SpeedFunctionToPathFilter()
3535
{
@@ -40,7 +40,7 @@ SpeedFunctionToPathFilter<TInputImage,TOutputPath>
4040
/**
4141
*
4242
*/
43-
template <class TInputImage, class TOutputPath>
43+
template <typename TInputImage, typename TOutputPath>
4444
SpeedFunctionToPathFilter<TInputImage,TOutputPath>
4545
::~SpeedFunctionToPathFilter()
4646
{
@@ -50,7 +50,7 @@ SpeedFunctionToPathFilter<TInputImage,TOutputPath>
5050
/**
5151
*
5252
*/
53-
template<class TInputImage, class TOutputPath>
53+
template<typename TInputImage, typename TOutputPath>
5454
unsigned int
5555
SpeedFunctionToPathFilter<TInputImage,TOutputPath>
5656
::GetNumberOfPathsToExtract() const
@@ -62,7 +62,7 @@ SpeedFunctionToPathFilter<TInputImage,TOutputPath>
6262
/**
6363
*
6464
*/
65-
template<class TInputImage, class TOutputPath>
65+
template<typename TInputImage, typename TOutputPath>
6666
const typename SpeedFunctionToPathFilter<TInputImage,TOutputPath>::PointsContainerType &
6767
SpeedFunctionToPathFilter<TInputImage,TOutputPath>
6868
::GetNextEndPoint()
@@ -74,7 +74,7 @@ SpeedFunctionToPathFilter<TInputImage,TOutputPath>
7474
/**
7575
*
7676
*/
77-
template<class TInputImage, class TOutputPath>
77+
template<typename TInputImage, typename TOutputPath>
7878
typename SpeedFunctionToPathFilter<TInputImage,TOutputPath>::InputImageType *
7979
SpeedFunctionToPathFilter<TInputImage,TOutputPath>
8080
::ComputeArrivalFunction()
@@ -185,7 +185,7 @@ SpeedFunctionToPathFilter<TInputImage,TOutputPath>
185185
/**
186186
*
187187
*/
188-
template <class TInputImage, class TOutputPath>
188+
template <typename TInputImage, typename TOutputPath>
189189
void
190190
SpeedFunctionToPathFilter<TInputImage,TOutputPath>
191191
::GenerateData( void )
@@ -212,7 +212,7 @@ SpeedFunctionToPathFilter<TInputImage,TOutputPath>
212212
/**
213213
*
214214
*/
215-
template <class TInputImage, class TOutputPath>
215+
template <typename TInputImage, typename TOutputPath>
216216
void
217217
SpeedFunctionToPathFilter<TInputImage,TOutputPath>
218218
::Execute( const Object * object, const EventObject & event )
@@ -278,7 +278,7 @@ SpeedFunctionToPathFilter<TInputImage,TOutputPath>
278278
/**
279279
*
280280
*/
281-
template<class TInputImage, class TOutputPath>
281+
template<typename TInputImage, typename TOutputPath>
282282
void
283283
SpeedFunctionToPathFilter<TInputImage,TOutputPath>
284284
::PrintSelf(std::ostream& os, Indent indent) const

0 commit comments

Comments
 (0)