ReactivePlusPlus
One more implementation of ReactiveX approach in C++ with care about performance and templates in mind
 
Loading...
Searching...
No Matches
fwd.hpp
1// ReactivePlusPlus library
2//
3// Copyright Aleksey Loginov 2022 - present.
4// Distributed under the Boost Software License, Version 1.0.
5// (See accompanying file LICENSE_1_0.txt or copy at
6// https://www.boost.org/LICENSE_1_0.txt)
7//
8// Project home: https://github.com/victimsnino/ReactivePlusPlus
9//
10
11#pragma once
12
13#include <rpp/utils/operator_declaration.hpp>
14
15class QObject;
16
17namespace rpp::details
18{
19struct from_signal_qt_tag;
20} // namespace rpp::details
21
22namespace rppqt::observable
23{
24template<std::derived_from<QObject> TSignalQObject, std::derived_from<TSignalQObject> TObject, typename R,typename ...Args>
25auto from_signal(const TObject& object, R (TSignalQObject::*signal)(Args...)) requires rpp::details::is_header_included<rpp::details::from_signal_qt_tag, TObject, R, Args...>;
26} // namespace rppqt::observable
27
28namespace rppqt
29{
30namespace source = observable;
31} // namespace rppqt
auto from_signal(const TObject &object, R(TSignalQObject::*signal)(Args...))
Creates rpp::specific_observable that emits a items from provided QT signal.
Definition: from_signal.hpp:83