mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-27 11:05:44 +08:00
refs #91 using \private command in Doxygen comments as appropriate
This commit is contained in:
@@ -113,11 +113,7 @@ namespace BlackCore
|
|||||||
void update();
|
void update();
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
/*!
|
void terminate(); //!< \private
|
||||||
* Used internally to terminate the connection from within a callback
|
|
||||||
* \internal
|
|
||||||
*/
|
|
||||||
void terminate();
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
//! Deletion policy for QScopedPointer
|
//! Deletion policy for QScopedPointer
|
||||||
|
|||||||
@@ -50,8 +50,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* \internal
|
|
||||||
* \namespace BlackMisc::Predicates::Private
|
* \namespace BlackMisc::Predicates::Private
|
||||||
|
* \private
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
|||||||
@@ -23,58 +23,46 @@ namespace BlackMisc
|
|||||||
namespace Private
|
namespace Private
|
||||||
{
|
{
|
||||||
|
|
||||||
//! For internal use of BlackMisc::Predicates
|
//! \private
|
||||||
template <class...> struct MemberEqual;
|
template <class...> struct MemberEqual;
|
||||||
|
|
||||||
//! For internal use of BlackMisc::Predicates
|
//! \private
|
||||||
template <class T, class M, class V> struct MemberEqual<T, M, V>
|
template <class T, class M, class V> struct MemberEqual<T, M, V>
|
||||||
{
|
{
|
||||||
//! \brief
|
|
||||||
//! @{
|
|
||||||
M m;
|
M m;
|
||||||
V v;
|
V v;
|
||||||
MemberEqual(M m_, V v_) : m(m_), v(v_) {}
|
MemberEqual(M m_, V v_) : m(m_), v(v_) {}
|
||||||
bool operator()(const T &obj) const { return (obj.*m)() == v; }
|
bool operator()(const T &obj) const { return (obj.*m)() == v; }
|
||||||
//! @}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
//! For internal use of BlackMisc::Predicates
|
//! \private
|
||||||
template <class T, class M, class V, class... Tail> struct MemberEqual<T, M, V, Tail...>
|
template <class T, class M, class V, class... Tail> struct MemberEqual<T, M, V, Tail...>
|
||||||
{
|
{
|
||||||
//! \brief
|
|
||||||
//! @{
|
|
||||||
MemberEqual<T, M, V> head;
|
MemberEqual<T, M, V> head;
|
||||||
MemberEqual<T, Tail...> tail;
|
MemberEqual<T, Tail...> tail;
|
||||||
MemberEqual(M m, V v, Tail... tail_) : head(m, v), tail(tail_...) {}
|
MemberEqual(M m, V v, Tail... tail_) : head(m, v), tail(tail_...) {}
|
||||||
bool operator()(const T &obj) const { return head(obj) && tail(obj); }
|
bool operator()(const T &obj) const { return head(obj) && tail(obj); }
|
||||||
//! @}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
//! For internal use of BlackMisc::Predicates
|
//! \private
|
||||||
template <class...> struct MemberLess;
|
template <class...> struct MemberLess;
|
||||||
|
|
||||||
//! For internal use of BlackMisc::Predicates
|
//! \private
|
||||||
template <class T, class M> struct MemberLess<T, M>
|
template <class T, class M> struct MemberLess<T, M>
|
||||||
{
|
{
|
||||||
//! \brief
|
|
||||||
//! @{
|
|
||||||
M m;
|
M m;
|
||||||
MemberLess(M m_) : m(m_) {}
|
MemberLess(M m_) : m(m_) {}
|
||||||
bool operator()(const T &a, const T &b) const { return (a.*m)() < (b.*m)(); }
|
bool operator()(const T &a, const T &b) const { return (a.*m)() < (b.*m)(); }
|
||||||
bool isStable(const T &a, const T &b) const { return (a.*m)() != (b.*m)(); }
|
bool isStable(const T &a, const T &b) const { return (a.*m)() != (b.*m)(); }
|
||||||
//! @}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
//! For internal use of BlackMisc::Predicates
|
//! \private
|
||||||
template <class T, class M, class... Tail> struct MemberLess<T, M, Tail...>
|
template <class T, class M, class... Tail> struct MemberLess<T, M, Tail...>
|
||||||
{
|
{
|
||||||
//! \brief
|
|
||||||
//! @{
|
|
||||||
MemberLess<T, M> head;
|
MemberLess<T, M> head;
|
||||||
MemberLess<T, Tail...> tail;
|
MemberLess<T, Tail...> tail;
|
||||||
MemberLess(M m, Tail... tail_) : head(m), tail(tail_...) {}
|
MemberLess(M m, Tail... tail_) : head(m), tail(tail_...) {}
|
||||||
bool operator()(const T &a, const T &b) const { return head.isStable(a, b) ? head(a, b) : tail(a, b); }
|
bool operator()(const T &a, const T &b) const { return head.isStable(a, b) ? head(a, b) : tail(a, b); }
|
||||||
//! @}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
} //namespace Private
|
} //namespace Private
|
||||||
|
|||||||
Reference in New Issue
Block a user