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

@@ -28,6 +28,8 @@
// This file contains many lightweight helper classes used to
// implement and control fast level 2 and level 3 BLAS-like routines.
namespace Eigen {
namespace internal {
// forward declarations
@@ -272,4 +274,6 @@ template<typename T> const typename T::Scalar* extract_data(const T& m)
} // end namespace internal
} // end namespace Eigen
#endif // EIGEN_BLASUTIL_H

View File

@@ -26,6 +26,8 @@
#ifndef EIGEN_CONSTANTS_H
#define EIGEN_CONSTANTS_H
namespace Eigen {
/** This value means that a quantity is not known at compile-time, and that instead the value is
* stored in some runtime variable.
*
@@ -444,4 +446,6 @@ struct MatrixXpr {};
/** The type used to identify an array expression */
struct ArrayXpr {};
} // end namespace Eigen
#endif // EIGEN_CONSTANTS_H

View File

@@ -26,6 +26,7 @@
#ifndef EIGEN_FORWARDDECLARATIONS_H
#define EIGEN_FORWARDDECLARATIONS_H
namespace Eigen {
namespace internal {
template<typename T> struct traits;
@@ -307,4 +308,6 @@ template<typename MatrixType, unsigned int Mode> struct eigen2_part_return_type;
}
#endif
} // end namespace Eigen
#endif // EIGEN_FORWARDDECLARATIONS_H

View File

@@ -80,6 +80,8 @@
#define EIGEN_HAS_MM_MALLOC 0
#endif
namespace Eigen {
namespace internal {
inline void throw_std_bad_alloc()
@@ -504,8 +506,6 @@ template<typename T> struct smart_copy_helper<T,false> {
};
} // end namespace internal
/*****************************************************************************
*** Implementation of runtime stack allocation (falling back to malloc) ***
*****************************************************************************/
@@ -520,8 +520,6 @@ template<typename T> struct smart_copy_helper<T,false> {
#endif
#endif
namespace internal {
// This helper class construct the allocated memory, and takes care of destructing and freeing the handled data
// at destruction time. In practice this helper class is mainly useful to avoid memory leak in case of exceptions.
template<typename T> class aligned_stack_memory_handler
@@ -552,7 +550,7 @@ template<typename T> class aligned_stack_memory_handler
bool m_deallocate;
};
}
} // end namespace internal
/** \internal
* Declares, allocates and construct an aligned buffer named NAME of SIZE elements of type TYPE on the stack
@@ -955,4 +953,6 @@ inline int queryTopLevelCacheSize()
} // end namespace internal
} // end namespace Eigen
#endif // EIGEN_MEMORY_H

View File

@@ -26,6 +26,8 @@
#ifndef EIGEN_META_H
#define EIGEN_META_H
namespace Eigen {
namespace internal {
/** \internal
@@ -224,4 +226,6 @@ template<typename T, int S> struct is_diagonal<DiagonalMatrix<T,S> >
} // end namespace internal
} // end namespace Eigen
#endif // EIGEN_META_H

View File

@@ -48,6 +48,8 @@
#else // not CXX0X
namespace Eigen {
namespace internal {
template<bool condition>
@@ -108,6 +110,8 @@
} // end namespace internal
} // end namespace Eigen
// Specialized implementation for MSVC to avoid "conditional
// expression is constant" warnings. This implementation doesn't
// appear to work under GCC, hence the multiple implementations.

View File

@@ -37,6 +37,8 @@
#define EIGEN_EMPTY_STRUCT_CTOR(X)
#endif
namespace Eigen {
typedef EIGEN_DEFAULT_DENSE_INDEX_TYPE DenseIndex;
namespace internal {
@@ -455,4 +457,6 @@ struct is_lvalue
} // end namespace internal
} // end namespace Eigen
#endif // EIGEN_XPRHELPER_H