Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
11 changes: 3 additions & 8 deletions Modules/Core/Common/include/itkBinaryOperationConcept.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,8 @@
#include "itkPromoteType.h"

/// \cond HIDE_META_PROGRAMMING
namespace itk
{
namespace Details
{
namespace op

namespace itk::Details::op
{
/** Root Binary Operation Concept.
* All binary operations are expected to inherit from this type.
Expand Down Expand Up @@ -99,9 +96,7 @@ struct Div : BinaryOperationConcept
}
};

} // namespace op
} // namespace Details
} // namespace itk
} // namespace itk::Details::op
/// \endcond

#endif // itkBinaryOperationConcept_h
8 changes: 3 additions & 5 deletions Modules/Core/Common/include/itkConceptChecking.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,10 @@

#endif

namespace itk
{

/** All concept class definitions are contained in the "itk::Concept"
namespace. */
namespace Concept
namespace itk::Concept
{

/**
Expand Down Expand Up @@ -978,7 +977,6 @@ struct IsFixedPoint

itkConceptConstraintsMacro();
};
} // end namespace Concept
} // end namespace itk
} // namespace itk::Concept

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@

#include "itkImageToImageFilterDetail.h"

namespace itk
{
namespace ImageToImageFilterDetail
namespace itk::ImageToImageFilterDetail
{
/**
* Call the base class version: ImageToImageFilterDefaultCopyRegion
Expand Down Expand Up @@ -156,7 +154,6 @@ class ITK_TEMPLATE_EXPORT ExtractImageFilterRegionCopier : public ImageRegionCop
ImageRegionCopier<T1, T2>::operator()(destRegion, srcRegion);
}
};
} // end namespace ImageToImageFilterDetail
} // end namespace itk
} // namespace itk::ImageToImageFilterDetail

#endif
8 changes: 3 additions & 5 deletions Modules/Core/Common/include/itkImageToImageFilterDetail.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@
#include "itkImageRegion.h"
#include "itkSmartPointer.h"

namespace itk
{

/** ImageToImageFilterDetail namespace to house implementations of
* functions that are dependent on dimension. These functions are
* overloaded based on type unique for each different dimension.
Expand All @@ -41,7 +40,7 @@ namespace itk
* ImageToImageFilter would force the instantiation of all versions of
* these overloaded functions.
*/
namespace ImageToImageFilterDetail
namespace itk::ImageToImageFilterDetail
{

/** \struct DispatchBase
Expand Down Expand Up @@ -448,7 +447,6 @@ class ImageInformationCopier
};


} // end of namespace ImageToImageFilterDetail
} // end namespace itk
} // namespace itk::ImageToImageFilterDetail

#endif
8 changes: 3 additions & 5 deletions Modules/Core/Common/include/itkIsNumber.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,9 @@
#include "itkMetaProgrammingLibrary.h"
#include "itkIntTypes.h"

namespace itk
{

/// \cond HIDE_META_PROGRAMMING
namespace mpl
namespace itk::mpl
{
/** Tells whether a type is a number.
* \c TrueType for all kinds of numbers from \c short to `long long`,
Expand Down Expand Up @@ -79,8 +78,7 @@ struct IsNumber<long double> : TrueType
{};
/// \endcond

} // end namespace mpl
} // namespace itk::mpl
/// \endcond
} // end namespace itk

#endif // itkIsNumber_h
7 changes: 2 additions & 5 deletions Modules/Core/Common/include/itkLexicographicCompare.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,13 @@
#include <iterator> // For std::begin, std::end, and reverse_iterator.
#include "itkMacro.h"

namespace itk
{

/*
The Functor was only used in one spot in the
LevelSet class, It does not exist in Slicer, BRAINSTools, Remote modules,
ANTs, or any other project that I could find.
*/
namespace Functor
namespace itk::Functor
{
/** \class LexicographicCompare
* \brief Order Index instances lexicographically.
Expand Down Expand Up @@ -84,7 +82,6 @@ class CoLexicographicCompare
};


} // end namespace Functor
} // end namespace itk
} // namespace itk::Functor

#endif
8 changes: 2 additions & 6 deletions Modules/Core/Common/include/itkMath.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,7 @@
*/
#include <vxl_version.h>


namespace itk
{
namespace Math
namespace itk::Math
{
// These constants originate from VXL's vnl_math.h. They have been
// moved here to improve visibility, and to ensure that the constants
Expand Down Expand Up @@ -881,7 +878,6 @@ abs(unsigned long long x)

using std::abs;

} // end namespace Math
} // end namespace itk
} // namespace itk::Math

#endif // end of itkMath.h
9 changes: 4 additions & 5 deletions Modules/Core/Common/include/itkMathDetail.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,8 @@

namespace itk
{
namespace Math
{
namespace Detail

namespace Math::Detail
{
// The functions defined in this namespace are not meant to be used directly
// and thus do not adhere to the standard backward-compatibility
Expand Down Expand Up @@ -515,8 +514,8 @@ union FloatIEEE
}
};

} // end namespace Detail
} // end namespace Math
} // namespace Math::Detail
// end namespace Math

// move to itkConceptChecking?
namespace Concept
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@
#include <ctime>
#include <limits>

namespace itk
{
namespace Statistics
namespace itk::Statistics
{
/** \class MersenneTwisterRandomVariateGenerator
* \brief MersenneTwisterRandom random variate generator
Expand Down Expand Up @@ -425,7 +423,6 @@ MersenneTwisterRandomVariateGenerator::GetUniformVariate(const double a, const d
// - Fixed out-of-range number generation on 64-bit machines
// - Improved portability by substituting literal constants for long enum's
// - Changed license from GNU LGPL to BSD
} // end namespace Statistics
} // end namespace itk
} // namespace itk::Statistics

#endif
8 changes: 3 additions & 5 deletions Modules/Core/Common/include/itkMetaDataObjectDetail.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,9 @@
#include <utility>
#include <iosfwd>

namespace itk
{

// Implementation details for MetaDataObject meta programming
namespace MetaDataObjectDetail
namespace itk::MetaDataObjectDetail
{
template <class T, class = void>
struct has_Print : std::false_type
Expand All @@ -45,7 +43,7 @@ template <class T>
struct has_output_operator<T, std::void_t<decltype(std::declval<std::ostream &>() << std::declval<T>())>>
: std::true_type
{};
} // namespace MetaDataObjectDetail
} // namespace itk
} // namespace itk::MetaDataObjectDetail


#endif
7 changes: 2 additions & 5 deletions Modules/Core/Common/include/itkNeighborhoodAlgorithm.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@
#include "itkNeighborhoodOperator.h"
#include "itkNeighborhoodIterator.h"

namespace itk
{
namespace NeighborhoodAlgorithm
namespace itk::NeighborhoodAlgorithm
{
/** \class ImageBoundaryFacesCalculator
* \brief Splits an image into a main region and several "face" regions
Expand Down Expand Up @@ -138,8 +136,7 @@ struct CalculateOutputWrapOffsetModifiers
OffsetType
operator()(TImage *, TImage *) const;
};
} // end namespace NeighborhoodAlgorithm
} // end namespace itk
} // namespace itk::NeighborhoodAlgorithm

#ifndef ITK_MANUAL_INSTANTIATION
# include "itkNeighborhoodAlgorithm.hxx"
Expand Down
7 changes: 2 additions & 5 deletions Modules/Core/Common/include/itkNeighborhoodAlgorithm.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@
#include "itkConstSliceIterator.h"
#include <algorithm> // For min.

namespace itk
{
namespace NeighborhoodAlgorithm
namespace itk::NeighborhoodAlgorithm
{
template <typename TImage>
auto
Expand Down Expand Up @@ -188,7 +186,6 @@ CalculateOutputWrapOffsetModifiers<TImage>::operator()(TImage * input, TImage *
}
return ans;
}
} // end namespace NeighborhoodAlgorithm
} // end namespace itk
} // namespace itk::NeighborhoodAlgorithm

#endif
8 changes: 2 additions & 6 deletions Modules/Core/Common/include/itkPrintHelper.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,7 @@
# undef ITK_CASTXML_GCC_VECTOR_WORKAROUND
#endif

namespace itk
{

namespace print_helper
namespace itk::print_helper
{

template <typename T>
Expand All @@ -53,7 +50,6 @@ operator<<(std::ostream & os, const std::vector<T> & v)
return os << v.back() << ')';
}

} // end namespace print_helper
} // end namespace itk
} // namespace itk::print_helper

#endif // itkPrintHelper_h
8 changes: 3 additions & 5 deletions Modules/Core/Common/include/itkPromoteType.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,10 @@
#include "itkMacro.h"

// Simplification of boost::common_type
namespace itk
{


/// \cond HIDE_META_PROGRAMMING
namespace mpl
namespace itk::mpl
{

namespace Details
Expand Down Expand Up @@ -154,9 +153,8 @@ struct PromoteType
*/
using Type = typename Details::SizeToType<sizeof Check(a + b, 0), TA, TB>::Type;
};
} // end namespace mpl
} // namespace itk::mpl

/// \endcond
} // end namespace itk

#endif // itkPromoteType_h
7 changes: 2 additions & 5 deletions Modules/Core/Common/include/itkRandomVariateGeneratorBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@

#include "itkObject.h"

namespace itk
{
namespace Statistics
namespace itk::Statistics
{
/** \class RandomVariateGeneratorBase
* \brief Defines common interfaces for random variate generators.
Expand Down Expand Up @@ -52,7 +50,6 @@ class ITKCommon_EXPORT RandomVariateGeneratorBase : public Object

private:
}; // end of class
} // end of namespace Statistics
} // end of namespace itk
} // namespace itk::Statistics

#endif
7 changes: 2 additions & 5 deletions Modules/Core/Common/src/itkMath.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@
*=========================================================================*/
#include "itkMath.h"

namespace itk
{
namespace Math
namespace itk::Math
{

namespace
Expand Down Expand Up @@ -115,5 +113,4 @@ GreatestPrimeFactor(unsigned long long n)
return GreatestPrimeFactor<unsigned long long>(n);
}

} // end namespace Math
} // end namespace itk
} // namespace itk::Math
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@

#include <atomic>

namespace itk
{
namespace Statistics
namespace itk::Statistics
{
namespace
{
Expand Down Expand Up @@ -286,5 +284,4 @@ MersenneTwisterRandomVariateGenerator::PrintSelf(std::ostream & os, Indent inden
os << indent << "Values left before next reload: " << m_Left << std::endl;
}

} // end namespace Statistics
} // end namespace itk
} // namespace itk::Statistics
7 changes: 2 additions & 5 deletions Modules/Core/Common/src/itkRandomVariateGeneratorBase.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,8 @@
*=========================================================================*/
#include "itkRandomVariateGeneratorBase.h"

namespace itk
{
namespace Statistics
namespace itk::Statistics
{
RandomVariateGeneratorBase::RandomVariateGeneratorBase() = default;
RandomVariateGeneratorBase::~RandomVariateGeneratorBase() = default;
} // end of namespace Statistics
} // end of namespace itk
} // namespace itk::Statistics
Loading
Loading