Skip to content

Commit 8dc3bff

Browse files
committed
ENH: Apply new ITK code style to template code
1 parent 7901bba commit 8dc3bff

File tree

3 files changed

+14
-8
lines changed

3 files changed

+14
-8
lines changed

{{cookiecutter.project_name}}/include/itkMinimalStandardRandomVariateGenerator.h

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class {{ cookiecutter.module_name }}_EXPORT MinimalStandardRandomVariateGenerato
5555
public:
5656
ITK_DISALLOW_COPY_AND_MOVE(MinimalStandardRandomVariateGenerator);
5757

58-
/** Standard class typedefs. */
58+
/** Standard class aliases. */
5959
using Self = MinimalStandardRandomVariateGenerator;
6060
using Superclass = RandomVariateGeneratorBase;
6161
using Pointer = SmartPointer<Self>;
@@ -72,16 +72,19 @@ class {{ cookiecutter.module_name }}_EXPORT MinimalStandardRandomVariateGenerato
7272
itkNewMacro(Self);
7373

7474
/** initialize with a simple IntegerType */
75-
void Initialize(int randomSeed);
75+
void
76+
Initialize(int randomSeed);
7677

7778
/** Get a variate in the range [0, 1] */
78-
double GetVariate() override;
79+
double
80+
GetVariate() override;
7981

8082
protected:
8183
MinimalStandardRandomVariateGenerator();
8284
~MinimalStandardRandomVariateGenerator() override = default;
8385

84-
void PrintSelf(std::ostream & os, Indent indent) const override;
86+
void
87+
PrintSelf(std::ostream & os, Indent indent) const override;
8588

8689
private:
8790
NormalGeneratorType::Pointer m_NormalGenerator;

{{cookiecutter.project_name}}/include/itk{{cookiecutter.filter_name}}.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class {{ cookiecutter.filter_name }} : public ImageToImageFilter<TInputImage, TO
4747
using InputPixelType = typename InputImageType::PixelType;
4848
using OutputPixelType = typename OutputImageType::PixelType;
4949

50-
/** Standard class typedefs. */
50+
/** Standard class aliases. */
5151
using Self = {{ cookiecutter.filter_name }}<InputImageType, OutputImageType>;
5252
using Superclass = ImageToImageFilter<InputImageType, OutputImageType>;
5353
using Pointer = SmartPointer<Self>;
@@ -63,11 +63,13 @@ class {{ cookiecutter.filter_name }} : public ImageToImageFilter<TInputImage, TO
6363
{{ cookiecutter.filter_name }}();
6464
~{{ cookiecutter.filter_name }}() override = default;
6565

66-
void PrintSelf(std::ostream & os, Indent indent) const override;
66+
void
67+
PrintSelf(std::ostream & os, Indent indent) const override;
6768

6869
using OutputRegionType = typename OutputImageType::RegionType;
6970

70-
void DynamicThreadedGenerateData(const OutputRegionType & outputRegion) override;
71+
void
72+
DynamicThreadedGenerateData(const OutputRegionType & outputRegion) override;
7173

7274
private:
7375
#ifdef ITK_USE_CONCEPT_CHECKING

{{cookiecutter.project_name}}/test/itk{{cookiecutter.filter_name}}Test.cxx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ class ShowProgress : public itk::Command
5252
};
5353
} // namespace
5454

55-
int itk{{ cookiecutter.filter_name }}Test(int argc, char * argv[])
55+
int
56+
itk{{ cookiecutter.filter_name }}Test(int argc, char * argv[])
5657
{
5758
if (argc < 2)
5859
{

0 commit comments

Comments
 (0)