KDDockWidgets API Documentation 2.1
Loading...
Searching...
No Matches
Namespaces | Macros
node_operators.h File Reference
#include <kdbindings/node.h>
#include <kdbindings/make_node.h>
Include dependency graph for node_operators.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  KDBindings
 The main namespace of the KDBindings library.
 

Macros

#define KDBINDINGS_DEFINE_BINARY_OP(OP)
 
#define KDBINDINGS_DEFINE_UNARY_OP(OP)
 

Macro Definition Documentation

◆ KDBINDINGS_DEFINE_BINARY_OP

#define KDBINDINGS_DEFINE_BINARY_OP (   OP)

Definition at line 55 of file node_operators.h.

◆ KDBINDINGS_DEFINE_UNARY_OP

#define KDBINDINGS_DEFINE_UNARY_OP (   OP)
Value:
template<typename... T> \
inline auto operator OP(Property<T...> &arg) noexcept(noexcept(OP arg.get())) \
->Private::Node<std::decay_t<decltype(OP arg.get())>> \
{ \
return Private::makeNode([](auto &&v) { return (OP v); }, arg); \
} \
\
template<typename T> \
inline auto operator OP(Private::Node<T> &&arg) noexcept(noexcept(OP arg.evaluate())) \
->Private::Node<std::decay_t<decltype(OP arg.evaluate())>> \
{ \
return Private::makeNode([](auto &&v) { return (OP v); }, std::move(arg)); \
}

Definition at line 21 of file node_operators.h.


© Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/
KDDockWidgets
Advanced Dock Widget Framework for Qt
https://www.kdab.com/development-resources/qt-tools/kddockwidgets/
Generated by doxygen 1.9.8