mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-27 11:05:44 +08:00
Replaced certain doxygen comments with \private commands without introducing any warnings.
refs #91
This commit is contained in:
@@ -27,20 +27,18 @@ namespace BlackMisc
|
|||||||
|
|
||||||
// Using SFINAE to help detect missing BLACK_ENABLE_TUPLE_CONVERSION macro in static_assert
|
// Using SFINAE to help detect missing BLACK_ENABLE_TUPLE_CONVERSION macro in static_assert
|
||||||
//! \private
|
//! \private
|
||||||
//! @{
|
|
||||||
std::false_type hasEnabledTupleConversionHelper(...);
|
std::false_type hasEnabledTupleConversionHelper(...);
|
||||||
|
|
||||||
|
//! \private
|
||||||
template <class T>
|
template <class T>
|
||||||
typename T::EnabledTupleConversion hasEnabledTupleConversionHelper(T *);
|
typename T::EnabledTupleConversion hasEnabledTupleConversionHelper(T *);
|
||||||
|
|
||||||
//! \brief Tupel conversions enabled?
|
//! \private
|
||||||
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;
|
||||||
};
|
};
|
||||||
//! @}
|
|
||||||
|
|
||||||
// Using tag dispatch to select which implementation of compare() to use
|
// Using tag dispatch to select which implementation of compare() to use
|
||||||
//! \private
|
//! \private
|
||||||
@@ -79,7 +77,6 @@ namespace BlackMisc
|
|||||||
|
|
||||||
// Applying operations to all elements in a tuple, using recursion
|
// Applying operations to all elements in a tuple, using recursion
|
||||||
//! \private
|
//! \private
|
||||||
//! @{
|
|
||||||
template <int N>
|
template <int N>
|
||||||
struct TupleHelper
|
struct TupleHelper
|
||||||
{
|
{
|
||||||
@@ -110,24 +107,19 @@ namespace BlackMisc
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
//! \brief Applying operations to all elements in a tuple, using recursion
|
//! \private
|
||||||
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; }
|
||||||
};
|
};
|
||||||
//! @}
|
|
||||||
|
|
||||||
#endif // Q_COMPILER_VARIADIC_TEMPLATES
|
#endif // Q_COMPILER_VARIADIC_TEMPLATES
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user