KDBindings API Documentation  1.0.95
Namespaces | Macros
node_operators.h File Reference
#include <kdbindings/node.h>
#include <kdbindings/make_node.h>

Go to the source code of this file.

Namespaces

 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)

◆ 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/
KDBindings
Reactive programming & data binding in C++
https://github.com/KDAB/KDBindings/
Generated by doxygen 1.9.1