18 #include <type_traits>
21 #pragma GCC diagnostic push
22 #pragma GCC diagnostic ignored "-Wextra-semi"
23 #pragma GCC diagnostic ignored "-Wsuggest-override"
24 #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant"
26 #pragma clang diagnostic push
27 #pragma clang diagnostic ignored "-Wsuggest-destructor-override"
29 #include <treekeyidx.h>
31 #pragma clang diagnostic pop
33 #pragma GCC diagnostic pop
48 decltype(std::declval<sword::TreeKeyIdx const &>().getOffset());
52 #define BibleTime_CSwordTreeKey_DEFINE_COMP(op) \
53 friend bool operator op(CSwordTreeKey const & lhs, \
54 CSwordTreeKey const & rhs) \
55 { return lhs.offset() op rhs.offset(); }
56 #if __cpp_impl_three_way_comparison >= 201907L
66 #undef BibleTime_CSwordTreeKey_DEFINE_COMP
79 sword::TreeKeyIdx
const &
asSwordKey() const noexcept final override;
92 QString
key() const final override;
94 bool setKey(const QString &
key) final override;
96 bool setKey(const
char *
key) final override;
108 const char *
rawKey() const final override;
CSwordKey & operator=(CSwordKey const &)=delete
CSwordModuleInfo const * module() const
CSwordKey implementation for Sword's TreeKey.
bool positionToFirstChild()
bool positionToNextSibling()
const char * rawKey() const final override
QString getLocalNameUnicode()
QString key() const final override
bool setKey(const QString &key) final override
void setModule(const CSwordModuleInfo *newModule) final override
CSwordTreeKey(const sword::TreeKeyIdx *k, const CSwordModuleInfo *module)
decltype(std::declval< sword::TreeKeyIdx const & >().getOffset()) Offset
sword::TreeKeyIdx const & asSwordKey() const noexcept final override
void setOffset(Offset value)
BibleTime_CSwordTreeKey_DEFINE_COMP(<) BibleTime_CSwordTreeKey_DEFINE_COMP(<
CSwordTreeKey * copy() const final override