From 7e8ee5b527e32caa2920615f40dd4cbe96fe7b50 Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Sun, 7 Dec 2008 15:40:40 +0000 Subject: [PATCH] hide internal stuff from doxygen by using #ifndef EIGEN_PARSED_BY_DOXYGEN. Sadly, \internal didn't hide internal stuff, it only hides the documentation! --- Eigen/src/Core/MatrixBase.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Eigen/src/Core/MatrixBase.h b/Eigen/src/Core/MatrixBase.h index 19ab4040c..f916dbf2a 100644 --- a/Eigen/src/Core/MatrixBase.h +++ b/Eigen/src/Core/MatrixBase.h @@ -56,10 +56,12 @@ template class MatrixBase { public: +#ifndef EIGEN_PARSED_BY_DOXYGEN class InnerIterator; typedef typename ei_traits::Scalar Scalar; typedef typename ei_packet_traits::type PacketScalar; +#endif // not EIGEN_PARSED_BY_DOXYGEN enum { @@ -140,6 +142,7 @@ template class MatrixBase ei_assert(ei_are_flags_consistent::ret); } +#ifndef EIGEN_PARSED_BY_DOXYGEN /** This is the "real scalar" type; if the \a Scalar type is already real numbers * (e.g. int, float or double) then \a RealScalar is just the same as \a Scalar. If * \a Scalar is \a std::complex then RealScalar is \a T. @@ -151,6 +154,7 @@ template class MatrixBase /** type of the equivalent square matrix */ typedef Matrix SquareMatrixType; +#endif // not EIGEN_PARSED_BY_DOXYGEN /** \returns the number of rows. \sa cols(), RowsAtCompileTime */ inline int rows() const { return derived().rows(); } @@ -174,6 +178,7 @@ template class MatrixBase * i.e., the number of rows for a columns major matrix, and the number of cols otherwise */ int innerSize() const { return (int(Flags)&RowMajorBit) ? this->cols() : this->rows(); } +#ifndef EIGEN_PARSED_BY_DOXYGEN /** \internal the type to which the expression gets evaluated (needed by MSVC) */ typedef typename ei_eval::type EvalType; /** \internal Represents a constant matrix */ @@ -206,6 +211,7 @@ template class MatrixBase typedef Block, SquareMatrixType>, ei_traits::RowsAtCompileTime, ei_traits::ColsAtCompileTime> BasisReturnType; +#endif // not EIGEN_PARSED_BY_DOXYGEN /** Copies \a other into *this. \returns a reference to *this. */ @@ -256,6 +262,7 @@ template class MatrixBase Scalar& operator[](int index); Scalar& operator()(int index); +#ifndef EIGEN_PARSED_BY_DOXYGEN template void copyCoeff(int row, int col, const MatrixBase& other); template @@ -264,6 +271,7 @@ template class MatrixBase void copyPacket(int row, int col, const MatrixBase& other); template void copyPacket(int index, const MatrixBase& other); +#endif // not EIGEN_PARSED_BY_DOXYGEN template PacketScalar packet(int row, int col) const; @@ -524,11 +532,12 @@ template class MatrixBase template void visit(Visitor& func) const; - +#ifndef EIGEN_PARSED_BY_DOXYGEN inline const Derived& derived() const { return *static_cast(this); } inline Derived& derived() { return *static_cast(this); } inline Derived& const_cast_derived() const { return *static_cast(const_cast(this)); } +#endif // not EIGEN_PARSED_BY_DOXYGEN const Cwise cwise() const; Cwise cwise();