Questions tagged [rxcpp]

Reactive Extensions for C++ (rxcpp) is a C++ library of algorithms that coordinate values distributed in time. rxcpp is like the STL algorithms that process values distributed in space, but for async values like network packets, IO and mouse events.

rxcpp is on github

34 questions
2
votes
1 answer

Groups aggregate functions using rxcpp?

I'm trying to get a gist of RxCpp, the native cpp implementation of reactive extensions from Microsoft, to see if I could use it in a project, but I'm having trouble wrapping my head around the concepts. If I had an observable templated with the…
bpeikes
  • 2,628
  • 5
  • 32
  • 63
2
votes
1 answer

Compile rxcpp for Android

I download RxCpp from github, modify the CMakeLists.txt as follow (I use the CMake modified by Microsoft in order to build cross platform project with VS2015): cmake_minimum_required (VERSION 3.4) project(RxCppAndroid VERSION 2.2.4 LANGUAGES C…
2
votes
2 answers

Scheduling and Timeout handling with rxcpp

I'm new to using rxcpp and trying to get something functional together in the following scenario: I have one data source that will retrieve commands from a separate source, the code I'm writing will retrieve these commands into an rxcpp observable.…
Pierre Andersson
  • 310
  • 2
  • 12
1
vote
2 answers

How to use RxCpp operators on a list of observables?

I want to use zip operator on a list / array of RxCpp observables, but RxCpp operators only accept variadic arguments, and the size of my list is dynamic (known at runtime). Is there a way to use these operators on a list of observables? Thanks in…
S.Zarei
  • 83
  • 5
1
vote
1 answer

Add RxCpp to C++ Bazel project

I'm currently trying to compile a trivial c++ example project before including rxcpp to my main project, however, I'm running into difficulties where rxcpp library is not found. All files are within the same directory. Workstation specs: Bazel…
Darragh
  • 21
  • 2
  • 6
1
vote
1 answer

RxCPP behave different than Rx.Net

I am using RxCPP and have difficulties to understand its behavior. Here are two programs, one in Rx.Net and the other one in RxCPP. They suppose to output the same prints, but they don't. the program take points from a mouse stream, and calculate a…
ShaulF
  • 591
  • 6
  • 13
1
vote
1 answer

RXCPP: Make an extension that doesn't care about the input type of the observable

I wish to make an extension function that doesn't care about the type of observable it receives. For example: template inline auto makeones() -> function(observable)> { return [=](observable s) { return s |…
jc211
  • 197
  • 1
  • 8
1
vote
1 answer

Construct Observer/Observable pattern using RxCpp

I am trying to implement an observer/observable pattern in Rx-cpp. These is a very interesting tutorial in Rx.Net on how someone can to this. In this C# example, there are specific interfaces that we have to override: public interface IObserver
Thoth
  • 929
  • 12
  • 31
1
vote
1 answer

Null pointer passed to lambda function is not null anymore

I try to pass a null pointer as reference to a lambda function, but it will receive a memory address instead of staying null. function doTheThing(){ ... pointer = nullptr; return [&](json object) { if(pointer != nullptr) { …
user3605225
  • 255
  • 1
  • 3
  • 6
1
vote
2 answers

RXcpp stream data from function continuously

I'm learning reactive for c++ and I'm looking for some guidance. I've created a function to wait for an event then return it. I want to catch all the events that occur with reactive async and handle them as they come. Here's what I have so far: int…
shady
  • 1,015
  • 2
  • 10
  • 31
1
vote
2 answers

RxCpp Reactive Extensions in C++

I have a Win32 console app and i have imported the references to Rx. Intellisense allows me to do this.... using namespace System::Reactive; using namespace System::Reactive::Concurrency; using namespace System::Reactive::Disposables; using…
WebSight
  • 490
  • 8
  • 23
0
votes
1 answer

Drogon C++ Multiple Database Transactions with FastDbClient

Let's say I have an entity "Address" and an entity "User" which are linked in a 1-n-Relationship. The client sends all the necessary data which is evaluated in my controller function. The Controller Class declares the two required Mappers in the…
Quirynn
  • 16
  • 1
0
votes
1 answer

Rxcpp: How can I replicate the OfType operator?

I have class: class base_event; Several classes derive from it: class event_1 : base_event; class event_2 : base_event; I have an observable: observable o; I would like to subscribe to o and get event_1 and event_2 seperately.…
jc211
  • 197
  • 1
  • 8
0
votes
1 answer

ReactiveX (rx) - Apply observable on object rather than creating object inside observable

so I've tried to comprehend ReactiveX as a library for some time now and I believe I'm starting to get the hang of the fundamentals, however, there is one problem I have which I can't find a solution to in the docs... tldr: I want to either connect…
Hampfh
  • 44
  • 6
0
votes
1 answer

How to create a ReplaySubject with RxCpp?

In my c++ project, I need to create Subjects having an initial value, that may be updated. On each subscription/update, subscribers may trigger then data processing... In a previous Angular (RxJS) project, this kind of behavior was handled with…
Cthurier
  • 3
  • 1
  • 1
  • 1