Browse Source

New crossreferenced @debugoperator alias.

vectorfields
Vladimír Vondruš 14 years ago
parent
commit
1ade64ca6b
  1. 2
      Doxyfile
  2. 4
      src/Color.h
  3. 2
      src/Math/Matrix.h
  4. 2
      src/Math/Matrix3.h
  5. 2
      src/Math/Matrix4.h
  6. 2
      src/Math/Vector.h
  7. 2
      src/Math/Vector2.h
  8. 2
      src/Math/Vector3.h
  9. 2
      src/Math/Vector4.h

2
Doxyfile

@ -195,7 +195,7 @@ TAB_SIZE = 8
# You can put \n's in the value part of an alias to insert newlines.
ALIASES = \
"debugoperator{1}=@relates \1\n@brief Debug output operator" \
"debugoperator{1}=@relates \1\n@brief Debug output operator @xrefitem debugoperators \"Debug output operator\" \"Debug output operators for custom types\" Allows printing \1 with Corrade::Utility::Debug and friends." \
"collisionoperator{2}=@relates \1\n@brief Collision of %\1 and %\2\n@see \2::operator%(const \1&) const" \
"todoc=@xrefitem todoc \"Documentation todo\" \"Documentation-related todo list\"" \
"requires_gl=@xrefitem requires-gl \"Requires desktop OpenGL\" \"Functionality requiring desktop OpenGL (not available on OpenGL ES)\" Not available on OpenGL ES." \

4
src/Color.h

@ -396,12 +396,12 @@ template<class T> class Color4: public Math::Vector4<T> {
}
};
/** @debugoperator{Color3} */
/** @debugoperator{Magnum::Color3} */
template<class T> Corrade::Utility::Debug operator<<(Corrade::Utility::Debug debug, const Magnum::Color3<T>& value) {
return debug << static_cast<const Magnum::Math::Vector3<T>&>(value);
}
/** @debugoperator{Color4} */
/** @debugoperator{Magnum::Color4} */
template<class T> Corrade::Utility::Debug operator<<(Corrade::Utility::Debug debug, const Magnum::Color4<T>& value) {
return debug << static_cast<const Magnum::Math::Vector4<T>&>(value);
}

2
src/Math/Matrix.h

@ -265,7 +265,7 @@ template<size_t size, class T> class Matrix {
T _data[size*size];
};
/** @debugoperator{Matrix} */
/** @debugoperator{Magnum::Math::Matrix} */
template<size_t size, class T> Corrade::Utility::Debug operator<<(Corrade::Utility::Debug debug, const Magnum::Math::Matrix<size, T>& value) {
debug << "Matrix(";
debug.setFlag(Corrade::Utility::Debug::SpaceAfterEachValue, false);

2
src/Math/Matrix3.h

@ -97,7 +97,7 @@ template<class T> class Matrix3: public Matrix<3, T> {
MAGNUM_MATRIX_SUBCLASS_IMPLEMENTATION(Matrix3, Vector3, 3)
};
/** @debugoperator{Matrix3} */
/** @debugoperator{Magnum::Math::Matrix3} */
template<class T> Corrade::Utility::Debug operator<<(Corrade::Utility::Debug debug, const Magnum::Math::Matrix3<T>& value) {
return debug << static_cast<const Magnum::Math::Matrix<3, T>&>(value);
}

2
src/Math/Matrix4.h

@ -146,7 +146,7 @@ template<class T> class Matrix4: public Matrix<4, T> {
MAGNUM_MATRIX_SUBCLASS_IMPLEMENTATION(Matrix4, Vector4, 4)
};
/** @debugoperator{Matrix4} */
/** @debugoperator{Magnum::Math::Matrix4} */
template<class T> Corrade::Utility::Debug operator<<(Corrade::Utility::Debug debug, const Magnum::Math::Matrix4<T>& value) {
return debug << static_cast<const Magnum::Math::Matrix<4, T>&>(value);
}

2
src/Math/Vector.h

@ -439,7 +439,7 @@ template<size_t size, class T, class U> Vector<size, T> operator/(U number, cons
return out;
}
/** @debugoperator{Vector} */
/** @debugoperator{Magnum::Math::Vector} */
template<size_t size, class T> Corrade::Utility::Debug operator<<(Corrade::Utility::Debug debug, const Magnum::Math::Vector<size, T>& value) {
debug << "Vector(";
debug.setFlag(Corrade::Utility::Debug::SpaceAfterEachValue, false);

2
src/Math/Vector2.h

@ -88,7 +88,7 @@ template<class T> class Vector2: public Vector<2, T> {
MAGNUM_VECTOR_SUBCLASS_OPERATOR_IMPLEMENTATION(Vector2, 2)
/** @debugoperator{Vector2} */
/** @debugoperator{Magnum::Math::Vector2} */
template<class T> Corrade::Utility::Debug operator<<(Corrade::Utility::Debug debug, const Magnum::Math::Vector2<T>& value) {
return debug << static_cast<const Magnum::Math::Vector<2, T>&>(value);
}

2
src/Math/Vector3.h

@ -140,7 +140,7 @@ template<class T> class Vector3: public Vector<3, T> {
MAGNUM_VECTOR_SUBCLASS_OPERATOR_IMPLEMENTATION(Vector3, 3)
/** @debugoperator{Vector3} */
/** @debugoperator{Magnum::Math::Vector3} */
template<class T> Corrade::Utility::Debug operator<<(Corrade::Utility::Debug debug, const Magnum::Math::Vector3<T>& value) {
return debug << static_cast<const Magnum::Math::Vector<3, T>&>(value);
}

2
src/Math/Vector4.h

@ -88,7 +88,7 @@ template<class T> class Vector4: public Vector<4, T> {
MAGNUM_VECTOR_SUBCLASS_OPERATOR_IMPLEMENTATION(Vector4, 4)
/** @debugoperator{Vector4} */
/** @debugoperator{Magnum::Math::Vector4} */
template<class T> Corrade::Utility::Debug operator<<(Corrade::Utility::Debug debug, const Magnum::Math::Vector4<T>& value) {
return debug << static_cast<const Magnum::Math::Vector<4, T>&>(value);
}

Loading…
Cancel
Save