Get rid of include directives inside namespace blocks (bug #339).

This commit is contained in:
Jitse Niesen
2012-04-15 11:06:28 +01:00
parent 84c93b048e
commit 3c412183b2
280 changed files with 1006 additions and 179 deletions

View File

@@ -25,6 +25,8 @@
#ifndef EIGEN_ALIGNEDBOX_H
#define EIGEN_ALIGNEDBOX_H
namespace Eigen {
/** \geometry_module \ingroup Geometry_Module
*
*
@@ -383,4 +385,6 @@ EIGEN_MAKE_TYPEDEFS_ALL_SIZES(double, d)
#undef EIGEN_MAKE_TYPEDEFS_ALL_SIZES
#undef EIGEN_MAKE_TYPEDEFS
} // end namespace Eigen
#endif // EIGEN_ALIGNEDBOX_H

View File

@@ -25,6 +25,8 @@
#ifndef EIGEN_ANGLEAXIS_H
#define EIGEN_ANGLEAXIS_H
namespace Eigen {
/** \geometry_module \ingroup Geometry_Module
*
* \class AngleAxis
@@ -238,4 +240,6 @@ AngleAxis<Scalar>::toRotationMatrix(void) const
return res;
}
} // end namespace Eigen
#endif // EIGEN_ANGLEAXIS_H

View File

@@ -25,6 +25,8 @@
#ifndef EIGEN_EULERANGLES_H
#define EIGEN_EULERANGLES_H
namespace Eigen {
/** \geometry_module \ingroup Geometry_Module
*
*
@@ -92,5 +94,6 @@ MatrixBase<Derived>::eulerAngles(Index a0, Index a1, Index a2) const
return res;
}
} // end namespace Eigen
#endif // EIGEN_EULERANGLES_H

View File

@@ -25,6 +25,8 @@
#ifndef EIGEN_HOMOGENEOUS_H
#define EIGEN_HOMOGENEOUS_H
namespace Eigen {
/** \geometry_module \ingroup Geometry_Module
*
* \class Homogeneous
@@ -315,4 +317,6 @@ struct homogeneous_right_product_impl<Homogeneous<MatrixType,Horizontal>,Rhs>
} // end namespace internal
} // end namespace Eigen
#endif // EIGEN_HOMOGENEOUS_H

View File

@@ -26,6 +26,8 @@
#ifndef EIGEN_HYPERPLANE_H
#define EIGEN_HYPERPLANE_H
namespace Eigen {
/** \geometry_module \ingroup Geometry_Module
*
* \class Hyperplane
@@ -277,4 +279,6 @@ protected:
Coefficients m_coeffs;
};
} // end namespace Eigen
#endif // EIGEN_HYPERPLANE_H

View File

@@ -26,6 +26,8 @@
#ifndef EIGEN_ORTHOMETHODS_H
#define EIGEN_ORTHOMETHODS_H
namespace Eigen {
/** \geometry_module
*
* \returns the cross product of \c *this and \a other
@@ -226,4 +228,6 @@ MatrixBase<Derived>::unitOrthogonal() const
return internal::unitOrthogonal_selector<Derived>::run(derived());
}
} // end namespace Eigen
#endif // EIGEN_ORTHOMETHODS_H

View File

@@ -26,6 +26,8 @@
#ifndef EIGEN_PARAMETRIZEDLINE_H
#define EIGEN_PARAMETRIZEDLINE_H
namespace Eigen {
/** \geometry_module \ingroup Geometry_Module
*
* \class ParametrizedLine
@@ -203,4 +205,6 @@ ParametrizedLine<_Scalar, _AmbientDim,_Options>::intersectionPoint(const Hyperpl
return pointAt(intersectionParameter(hyperplane));
}
} // end namespace Eigen
#endif // EIGEN_PARAMETRIZEDLINE_H

View File

@@ -25,6 +25,8 @@
#ifndef EIGEN_QUATERNION_H
#define EIGEN_QUATERNION_H
namespace Eigen {
/***************************************************************************
* Definition of QuaternionBase<Derived>
@@ -786,4 +788,6 @@ struct quaternionbase_assign_impl<Other,4,1>
} // end namespace internal
} // end namespace Eigen
#endif // EIGEN_QUATERNION_H

View File

@@ -25,6 +25,8 @@
#ifndef EIGEN_ROTATION2D_H
#define EIGEN_ROTATION2D_H
namespace Eigen {
/** \geometry_module \ingroup Geometry_Module
*
* \class Rotation2D
@@ -162,4 +164,6 @@ Rotation2D<Scalar>::toRotationMatrix(void) const
return (Matrix2() << cosA, -sinA, sinA, cosA).finished();
}
} // end namespace Eigen
#endif // EIGEN_ROTATION2D_H

View File

@@ -25,6 +25,8 @@
#ifndef EIGEN_ROTATIONBASE_H
#define EIGEN_ROTATIONBASE_H
namespace Eigen {
// forward declaration
namespace internal {
template<typename RotationDerived, typename MatrixType, bool IsVector=MatrixType::IsVectorAtCompileTime>
@@ -214,4 +216,6 @@ static inline const MatrixBase<OtherDerived>& toRotationMatrix(const MatrixBase<
} // end namespace internal
} // end namespace Eigen
#endif // EIGEN_ROTATIONBASE_H

View File

@@ -25,6 +25,8 @@
#ifndef EIGEN_SCALING_H
#define EIGEN_SCALING_H
namespace Eigen {
/** \geometry_module \ingroup Geometry_Module
*
* \class Scaling
@@ -179,4 +181,6 @@ UniformScaling<Scalar>::operator* (const Transform<Scalar,Dim, Mode, Options>& t
return res;
}
} // end namespace Eigen
#endif // EIGEN_SCALING_H

View File

@@ -27,6 +27,8 @@
#ifndef EIGEN_TRANSFORM_H
#define EIGEN_TRANSFORM_H
namespace Eigen {
namespace internal {
template<typename Transform>
@@ -1426,4 +1428,6 @@ struct transform_transform_product_impl<Transform<Scalar,Dim,Projective,LhsOptio
} // end namespace internal
} // end namespace Eigen
#endif // EIGEN_TRANSFORM_H

View File

@@ -25,6 +25,8 @@
#ifndef EIGEN_TRANSLATION_H
#define EIGEN_TRANSLATION_H
namespace Eigen {
/** \geometry_module \ingroup Geometry_Module
*
* \class Translation
@@ -214,4 +216,6 @@ Translation<Scalar,Dim>::operator* (const EigenBase<OtherDerived>& linear) const
return res;
}
} // end namespace Eigen
#endif // EIGEN_TRANSLATION_H

View File

@@ -31,6 +31,8 @@
// * Eigen/SVD
// * Eigen/Array
namespace Eigen {
#ifndef EIGEN_PARSED_BY_DOXYGEN
// These helpers are required since it allows to use mixed types as parameters
@@ -180,4 +182,6 @@ umeyama(const MatrixBase<Derived>& src, const MatrixBase<OtherDerived>& dst, boo
return Rt;
}
} // end namespace Eigen
#endif // EIGEN_UMEYAMA_H

View File

@@ -26,6 +26,8 @@
#ifndef EIGEN_GEOMETRY_SSE_H
#define EIGEN_GEOMETRY_SSE_H
namespace Eigen {
namespace internal {
template<class Derived, class OtherDerived>
@@ -123,4 +125,6 @@ struct quat_product<Architecture::SSE, Derived, OtherDerived, double, Aligned>
} // end namespace internal
} // end namespace Eigen
#endif // EIGEN_GEOMETRY_SSE_H