LeechCraft  0.6.70-10870-g558588d6ec
Modular cross-platform feature rich live environment.
common.h File Reference
#include <tuple>
#include <QtTest>
#include <oral.h>
+ Include dependency graph for common.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 LeechCraft::Util::oral
 
 LeechCraft::Util
 

Macros

#define TOSTRING(n)   char* toString (const n& rec) { return toString (#n, rec); }
 

Functions

template<typename T , typename = decltype (T {}.AsTuple ())>
auto operator== (const T &left, const T &right)
 
template<typename T , typename... Args>
char * LeechCraft::Util::oral::toString (const PKey< T, Args... > &pkey)
 
template<typename T , typename TupleType = decltype (T {}.AsTuple ())>
char * toString (const char *name, const T &t)
 
QSqlDatabase LeechCraft::Util::MakeDatabase (const QString &name=":memory:")
 

Macro Definition Documentation

◆ TOSTRING

#define TOSTRING (   n)    char* toString (const n& rec) { return toString (#n, rec); }

Definition at line 53 of file common.h.

Function Documentation

◆ operator==()

template<typename T , typename = decltype (T {}.AsTuple ())>
auto operator== ( const T &  left,
const T &  right 
)

Definition at line 39 of file common.h.

◆ toString()

template<typename T , typename TupleType = decltype (T {}.AsTuple ())>
char* toString ( const char *  name,
const T &  t 
)

Definition at line 56 of file common.h.

Referenced by LeechCraft::Util::TagsLineEdit::AddSelector(), and LeechCraft::Util::oral::toString().

+ Here is the caller graph for this function: