Skip to content

Commit

Permalink
STYLE: Remove SizeValueType template argument from VectorContainer uses
Browse files Browse the repository at this point in the history
The index type (`ElementIdentifier`) of `itk::VectorContainer` is already
`itk::SizeValueType` by default.
  • Loading branch information
N-Dekker committed Oct 3, 2024
1 parent 4b5e5be commit 4fa58b9
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Modules/Core/Common/include/itkSTLConstContainerAdaptor.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ namespace itk
* Here's a usage example of STLContainerAdaptor
*
\code
itk::STLConstContainerAdaptor<itk::VectorContainer<SizeValueType, ElementType>> vecAdaptor(aContainer);
itk::STLConstContainerAdaptor<itk::VectorContainer<ElementType>> vecAdaptor(aContainer);
const std::vector<ElementType> & vec = vecAdaptor.GetSTLContainerRef();
// do things with vec ...
\endcode
Expand Down
2 changes: 1 addition & 1 deletion Modules/Core/Common/include/itkVectorContainer.h
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ template <typename TElement>
auto
MakeVectorContainer(std::vector<TElement> stdVector)
{
auto vectorContainer = VectorContainer<SizeValueType, TElement>::New();
auto vectorContainer = VectorContainer<TElement>::New();
vectorContainer->CastToSTLContainer() = std::move(stdVector);
return vectorContainer;
}
Expand Down
2 changes: 1 addition & 1 deletion Modules/Core/Transform/include/itkKernelTransform.h
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ class ITK_TEMPLATE_EXPORT KernelTransform : public Transform<TParametersValueTyp
using PointIdentifier = typename PointSetType::PointIdentifier;

/** VectorSet type alias. */
using VectorSetType = itk::VectorContainer<SizeValueType, InputVectorType>;
using VectorSetType = itk::VectorContainer<InputVectorType>;
using VectorSetPointer = typename VectorSetType::Pointer;

/** Get/Set the source landmarks list, which we will denote \f$ p \f$. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class ITK_TEMPLATE_EXPORT GridImageSource : public GenerateImageSource<TOutputIm
using ArrayType = FixedArray<RealType, Self::ImageDimension>;
using BoolArrayType = FixedArray<bool, Self::ImageDimension>;
using PixelArrayType = vnl_vector<RealType>;
using PixelArrayContainerType = VectorContainer<SizeValueType, PixelArrayType>;
using PixelArrayContainerType = VectorContainer<PixelArrayType>;

/** Set/Get kernel function used to create the grid. */
itkSetObjectMacro(KernelFunction, KernelFunctionType);
Expand Down
2 changes: 1 addition & 1 deletion Modules/IO/MeshVTK/include/itkVTKPolyDataMeshIO.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class ITKIOMeshVTK_EXPORT VTKPolyDataMeshIO : public MeshIOBase
using StringVectorType = std::vector<StringType>;
using StringStreamType = std::stringstream;
using PointIdVector = std::vector<SizeValueType>;
using PolylinesContainerType = VectorContainer<SizeValueType, PointIdVector>;
using PolylinesContainerType = VectorContainer<PointIdVector>;
using PolylinesContainerPointer = PolylinesContainerType::Pointer;

/** Method for creation through the object factory. */
Expand Down

0 comments on commit 4fa58b9

Please sign in to comment.