From 5ef31069d2be9dd554e49956fa60146cf8628b2f Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Mon, 10 Mar 2014 14:57:29 +0100 Subject: [PATCH] refs #140 , Doxygen comments to avoid warnings --- src/blackmisc/tuple.h | 2 +- src/blackmisc/tuple_private.h | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/blackmisc/tuple.h b/src/blackmisc/tuple.h index 48419cd41..a5bd2d373 100644 --- a/src/blackmisc/tuple.h +++ b/src/blackmisc/tuple.h @@ -13,7 +13,7 @@ #include "tuple_private.h" /*! - * \defgroup Tuples + * \defgroup Tuples Tuples Simplified handling of class members (CValueObject) by std::tuple */ /*! diff --git a/src/blackmisc/tuple_private.h b/src/blackmisc/tuple_private.h index 246267386..92ce1e652 100644 --- a/src/blackmisc/tuple_private.h +++ b/src/blackmisc/tuple_private.h @@ -33,9 +33,11 @@ namespace BlackMisc template typename T::EnabledTupleConversion hasEnabledTupleConversionHelper(T *); + //! \brief Tupel conversions enabled? template struct HasEnabledTupleConversion { + //! \brief detect type typedef decltype(hasEnabledTupleConversionHelper(static_cast(nullptr))) type; }; //! @} @@ -108,15 +110,20 @@ namespace BlackMisc } }; + //! \brief Applying operations to all elements in a tuple, using recursion template <> struct TupleHelper<0> { + //! \brief Compare,as in CValueObject::compareImpl template static int compare(const Tu &, const Tu &) { return 0; } + //! \brief marshall, as in CValueObject::marshallToDbus template static QDBusArgument &marshall(QDBusArgument &arg, const Tu &) { return arg; } + //! \brief unmarshall, as in CValueObject::unmarshallFromDbus template static const QDBusArgument &unmarshall(const QDBusArgument &arg, Tu &) { return arg; } + //! \brief hash, as in CValueObject::getHashValue template static uint hash(const Tu &) { return 0; } };