Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

STYLE: Remove "include guards" from cxx files #345

Merged
merged 1 commit into from
Nov 2, 2020
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions Common/CostFunctions/itkScaledSingleValuedCostFunction.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
* limitations under the License.
*
*=========================================================================*/
#ifndef __itkScaledSingleValuedCostFunction_cxx
#define __itkScaledSingleValuedCostFunction_cxx

#include "itkScaledSingleValuedCostFunction.h"
#include "vnl/vnl_math.h"
Expand Down Expand Up @@ -288,5 +286,3 @@ ScaledSingleValuedCostFunction ::PrintSelf(std::ostream & os, Indent indent) con


} // end namespace itk

#endif // #ifndef __itkScaledSingleValuedCostFunction_cxx
5 changes: 0 additions & 5 deletions Common/LineSearchOptimizers/itkLineSearchOptimizer.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
*
*=========================================================================*/

#ifndef __itkLineSearchOptimizer_cxx
#define __itkLineSearchOptimizer_cxx

#include "itkLineSearchOptimizer.h"
#include "itkNumericTraits.h"

Expand Down Expand Up @@ -104,5 +101,3 @@ LineSearchOptimizer ::PrintSelf(std::ostream & os, Indent indent) const


} // end namespace itk

#endif // #ifndef __itkLineSearchOptimizer_cxx
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
*
*=========================================================================*/

#ifndef __itkMoreThuenteLineSearchOptimizer_cxx
#define __itkMoreThuenteLineSearchOptimizer_cxx

#include "itkMoreThuenteLineSearchOptimizer.h"
#include <cmath> // For abs.
#include <limits>
Expand Down Expand Up @@ -948,5 +945,3 @@ MoreThuenteLineSearchOptimizer ::PrintSelf(std::ostream & os, Indent indent) con


} // end namespace itk

#endif // #ifndef __itkMoreThuenteLineSearchOptimizer_cxx
5 changes: 0 additions & 5 deletions Common/MevisDicomTiff/itkUseMevisDicomTiff.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
* limitations under the License.
*
*=========================================================================*/
#ifndef __itkUseMevisDicomTiff_cxx
#define __itkUseMevisDicomTiff_cxx

#include "itkUseMevisDicomTiff.h"

Expand All @@ -37,6 +35,3 @@ RegisterMevisDicomTiff(void)
itk::ObjectFactoryBase::INSERT_AT_FRONT);
#endif
}


#endif
5 changes: 0 additions & 5 deletions Common/ParameterFileParser/itkParameterFileParser.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
*
*=========================================================================*/

#ifndef __itkParameterFileParser_cxx
#define __itkParameterFileParser_cxx

#include "itkParameterFileParser.h"

#include <itksys/SystemTools.hxx>
Expand Down Expand Up @@ -409,5 +406,3 @@ ParameterFileParser ::ReturnParameterFileAsString(void)


} // end namespace itk

#endif // end __itkParameterFileParser_cxx
4 changes: 0 additions & 4 deletions Common/itkScaledSingleValuedNonLinearOptimizer.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
* limitations under the License.
*
*=========================================================================*/
#ifndef __itkScaledSingleValuedNonLinearOptimizer_cxx
#define __itkScaledSingleValuedNonLinearOptimizer_cxx

#include "itkScaledSingleValuedNonLinearOptimizer.h"

Expand Down Expand Up @@ -232,5 +230,3 @@ ScaledSingleValuedNonLinearOptimizer ::PrintSelf(std::ostream & os, Indent inden


} // end namespace itk

#endif // #ifndef __itkScaledSingleValuedNonLinearOptimizer_cxx
4 changes: 0 additions & 4 deletions Common/xout/xoutmain.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
* limitations under the License.
*
*=========================================================================*/
#ifndef __xoutmain_cxx
#define __xoutmain_cxx

#include "xoutmain.h"

Expand Down Expand Up @@ -45,5 +43,3 @@ xout_valid()


} // namespace xoutlibrary

#endif // end #ifndef __xoutmain_cxx
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
*
*=========================================================================*/

#ifndef __itkANNBinaryTreeCreator_cxx
#define __itkANNBinaryTreeCreator_cxx

#include "itkANNBinaryTreeCreator.h"

namespace itk
Expand Down Expand Up @@ -126,5 +123,3 @@ ANNBinaryTreeCreator::DecreaseReferenceCount(void)


} // end namespace itk

#endif // end #ifndef __itkANNBinaryTreeCreator_cxx
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
* limitations under the License.
*
*=========================================================================*/
#ifndef __itkAdaptiveStepsizeOptimizer_cxx
#define __itkAdaptiveStepsizeOptimizer_cxx

#include "itkAdaptiveStepsizeOptimizer.h"

Expand Down Expand Up @@ -90,5 +88,3 @@ AdaptiveStepsizeOptimizer ::UpdateCurrentTime(void)


} // end namespace itk

#endif // end #ifndef __itkVoxelWiseASGDOptimizer_cxx
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
* limitations under the License.
*
*=========================================================================*/
#ifndef __itkAdaptiveStochasticLBFGSOptimizer_cxx
#define __itkAdaptiveStochasticLBFGSOptimizer_cxx

#include "itkAdaptiveStochasticLBFGSOptimizer.h"

Expand Down Expand Up @@ -107,5 +105,3 @@ AdaptiveStochasticLBFGSOptimizer ::UpdateCurrentTime(void)


} // end namespace itk

#endif // end #ifndef __itkAdaptiveStochasticLBFGSOptimizer_cxx
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
* limitations under the License.
*
*=========================================================================*/
#ifndef __itkAdaptiveStochasticVarianceReducedGradientOptimizer_cxx
#define __itkAdaptiveStochasticVarianceReducedGradientOptimizer_cxx

#include "itkAdaptiveStochasticVarianceReducedGradientOptimizer.h"

Expand Down Expand Up @@ -87,5 +85,3 @@ AdaptiveStochasticVarianceReducedGradientOptimizer ::UpdateCurrentTime(void)


} // end namespace itk

#endif // end #ifndef __itkAdaptiveStochasticVarianceReducedGradientOptimizer_cxx
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
* limitations under the License.
*
*=========================================================================*/
#ifndef __itkStandardStochasticVarianceReducedGradientOptimizer_cxx
#define __itkStandardStochasticVarianceReducedGradientOptimizer_cxx

#include "itkStandardStochasticVarianceReducedGradientDescentOptimizer.h"

Expand Down Expand Up @@ -108,5 +106,3 @@ StandardStochasticVarianceReducedGradientOptimizer ::UpdateCurrentTime(void)


} // end namespace itk

#endif // end #ifndef __itkStandardStochasticVarianceReducedGradientOptimizer_cxx
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
* limitations under the License.
*
*=========================================================================*/
#ifndef _itkStochasticVarianceReducedGradientDescentOptimizer_cxx
#define _itkStochasticVarianceReducedGradientDescentOptimizer_cxx

#include "itkStochasticVarianceReducedGradientDescentOptimizer.h"

Expand Down Expand Up @@ -362,5 +360,3 @@ StochasticVarianceReducedGradientDescentOptimizer ::ThreadedAdvanceOneStep(Threa


} // end namespace itk

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
*
*=========================================================================*/

#ifndef __itkCMAEvolutionStrategyOptimizer_cxx
#define __itkCMAEvolutionStrategyOptimizer_cxx

#include "itkCMAEvolutionStrategyOptimizer.h"
#include "itkSymmetricEigenAnalysis.h"
#include "vnl/vnl_math.h"
Expand Down Expand Up @@ -1204,5 +1201,3 @@ CMAEvolutionStrategyOptimizer::TestConvergence(bool firstCheck)


} // end namespace itk

#endif // #ifndef __itkCMAEvolutionStrategyOptimizer_cxx
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
*
*=========================================================================*/

#ifndef __itkGenericConjugateGradientOptimizer_cxx
#define __itkGenericConjugateGradientOptimizer_cxx

#include "itkGenericConjugateGradientOptimizer.h"
#include "vnl/vnl_math.h"

Expand Down Expand Up @@ -632,5 +629,3 @@ GenericConjugateGradientOptimizer ::PrintSelf(std::ostream & os, Indent indent)


} // end namespace itk

#endif // #ifndef __itkGenericConjugateGradientOptimizer_cxx
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
*
*=========================================================================*/

#ifndef __itkFiniteDifferenceGradientDescentOptimizer_cxx
#define __itkFiniteDifferenceGradientDescentOptimizer_cxx

#include "itkFiniteDifferenceGradientDescentOptimizer.h"
#include "itkCommand.h"
#include "itkEventObject.h"
Expand Down Expand Up @@ -288,5 +285,3 @@ FiniteDifferenceGradientDescentOptimizer ::Compute_c(unsigned long k) const


} // end namespace itk

#endif // end #ifndef __itkFiniteDifferenceGradientDescentOptimizer_cxx
5 changes: 0 additions & 5 deletions Components/Optimizers/FullSearch/itkFullSearchOptimizer.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
*
*=========================================================================*/

#ifndef __itkFullSearchOptimizer_cxx
#define __itkFullSearchOptimizer_cxx

#include "itkFullSearchOptimizer.h"
#include "itkCommand.h"
#include "itkEventObject.h"
Expand Down Expand Up @@ -445,5 +442,3 @@ FullSearchOptimizer ::IndexToPoint(const SearchSpaceIndexType & index)


} // end namespace itk

#endif // #ifndef __itkFullSearchOptimizer_cxx
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
* limitations under the License.
*
*=========================================================================*/
#ifndef __itkAdaptiveStochasticPreconditionedGradientDescentOptimizer_cxx
#define __itkAdaptiveStochasticPreconditionedGradientDescentOptimizer_cxx

#include "itkAdaptiveStochasticPreconditionedGradientDescentOptimizer.h"

Expand Down Expand Up @@ -81,5 +79,3 @@ AdaptiveStochasticPreconditionedGradientDescentOptimizer ::UpdateCurrentTime(voi


} // end namespace itk

#endif // end #ifndef __itkAdaptiveStochasticPreconditionedGradientDescentOptimizer_cxx
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
* limitations under the License.
*
*=========================================================================*/
#ifndef _itkPreconditionedGradientDescentOptimizer_cxx
#define _itkPreconditionedGradientDescentOptimizer_cxx

#include "itkPreconditionedGradientDescentOptimizer.h"

Expand Down Expand Up @@ -505,5 +503,3 @@ PreconditionedGradientDescentOptimizer ::SetPreconditionMatrix(PreconditionType


} // end namespace itk

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
* limitations under the License.
*
*=========================================================================*/
#ifndef __itkStochasticPreconditionedGradientDescentOptimizer_cxx
#define __itkStochasticPreconditionedGradientDescentOptimizer_cxx

#include "itkStochasticPreconditionedGradientDescentOptimizer.h"
#include "vnl/vnl_math.h"
Expand Down Expand Up @@ -93,5 +91,3 @@ StochasticPreconditionedGradientDescentOptimizer ::UpdateCurrentTime(void)


} // end namespace itk

#endif // end #ifndef __itkStochasticPreconditionedGradientDescentOptimizer_cxx
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
* limitations under the License.
*
*=========================================================================*/
#ifndef __itkPreconditionedASGDOptimizer_cxx
#define __itkPreconditionedASGDOptimizer_cxx

#include "itkPreconditionedASGDOptimizer.h"

Expand Down Expand Up @@ -90,5 +88,3 @@ PreconditionedASGDOptimizer ::UpdateCurrentTime(void)


} // end namespace itk

#endif // end #ifndef __itkVoxelWiseASGDOptimizer_cxx
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
*
*=========================================================================*/

#ifndef __itkQuasiNewtonLBFGSOptimizer_cxx
#define __itkQuasiNewtonLBFGSOptimizer_cxx

#include "itkQuasiNewtonLBFGSOptimizer.h"
#include "itkArray.h"
#include "vnl/vnl_math.h"
Expand Down Expand Up @@ -444,5 +441,3 @@ QuasiNewtonLBFGSOptimizer::TestConvergence(bool firstLineSearchDone)


} // end namespace itk

#endif // #ifndef __itkQuasiNewtonLBFGSOptimizer_cxx
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
*
*=========================================================================*/

#ifndef __itkRSGDEachParameterApartBaseOptimizer_cxx
#define __itkRSGDEachParameterApartBaseOptimizer_cxx

#include "itkRSGDEachParameterApartBaseOptimizer.h"
#include "itkCommand.h"
#include "itkEventObject.h"
Expand Down Expand Up @@ -287,5 +284,3 @@ RSGDEachParameterApartBaseOptimizer ::PrintSelf(std::ostream & os, Indent indent


} // end namespace itk

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
*
*=========================================================================*/

#ifndef __itkRSGDEachParameterApartOptimizer_cxx
#define __itkRSGDEachParameterApartOptimizer_cxx

#include "itkRSGDEachParameterApartOptimizer.h"
#include "itkCommand.h"
#include "itkEventObject.h"
Expand Down Expand Up @@ -55,5 +52,3 @@ RSGDEachParameterApartOptimizer ::StepAlongGradient(const DerivativeType & facto


} // end namespace itk

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
* limitations under the License.
*
*=========================================================================*/
#ifndef __itkStandardGradientDescentOptimizer_cxx
#define __itkStandardGradientDescentOptimizer_cxx

#include "itkStandardGradientDescentOptimizer.h"
#include "vnl/vnl_math.h"
Expand Down Expand Up @@ -103,5 +101,3 @@ StandardGradientDescentOptimizer ::UpdateCurrentTime(void)


} // end namespace itk

#endif // end #ifndef __itkStandardGradientDescentOptimizer_cxx
Loading