mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-15 01:05:35 +08:00
refs #140 , Doxygen comments to avoid warnings
This commit is contained in:
@@ -13,7 +13,7 @@
|
|||||||
#include "tuple_private.h"
|
#include "tuple_private.h"
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* \defgroup Tuples
|
* \defgroup Tuples Tuples Simplified handling of class members (CValueObject) by std::tuple
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
|||||||
@@ -33,9 +33,11 @@ namespace BlackMisc
|
|||||||
template <class T>
|
template <class T>
|
||||||
typename T::EnabledTupleConversion hasEnabledTupleConversionHelper(T *);
|
typename T::EnabledTupleConversion hasEnabledTupleConversionHelper(T *);
|
||||||
|
|
||||||
|
//! \brief Tupel conversions enabled?
|
||||||
template <class T>
|
template <class T>
|
||||||
struct HasEnabledTupleConversion
|
struct HasEnabledTupleConversion
|
||||||
{
|
{
|
||||||
|
//! \brief detect type
|
||||||
typedef decltype(hasEnabledTupleConversionHelper(static_cast<T *>(nullptr))) type;
|
typedef decltype(hasEnabledTupleConversionHelper(static_cast<T *>(nullptr))) type;
|
||||||
};
|
};
|
||||||
//! @}
|
//! @}
|
||||||
@@ -108,15 +110,20 @@ namespace BlackMisc
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
//! \brief Applying operations to all elements in a tuple, using recursion
|
||||||
template <>
|
template <>
|
||||||
struct TupleHelper<0>
|
struct TupleHelper<0>
|
||||||
{
|
{
|
||||||
|
//! \brief Compare,as in CValueObject::compareImpl
|
||||||
template <class Tu>
|
template <class Tu>
|
||||||
static int compare(const Tu &, const Tu &) { return 0; }
|
static int compare(const Tu &, const Tu &) { return 0; }
|
||||||
|
//! \brief marshall, as in CValueObject::marshallToDbus
|
||||||
template <class Tu>
|
template <class Tu>
|
||||||
static QDBusArgument &marshall(QDBusArgument &arg, const Tu &) { return arg; }
|
static QDBusArgument &marshall(QDBusArgument &arg, const Tu &) { return arg; }
|
||||||
|
//! \brief unmarshall, as in CValueObject::unmarshallFromDbus
|
||||||
template <class Tu>
|
template <class Tu>
|
||||||
static const QDBusArgument &unmarshall(const QDBusArgument &arg, Tu &) { return arg; }
|
static const QDBusArgument &unmarshall(const QDBusArgument &arg, Tu &) { return arg; }
|
||||||
|
//! \brief hash, as in CValueObject::getHashValue
|
||||||
template <class Tu>
|
template <class Tu>
|
||||||
static uint hash(const Tu &) { return 0; }
|
static uint hash(const Tu &) { return 0; }
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user