initial implementation

This commit is contained in:
Roland Conybeare 2023-10-10 15:20:32 -04:00
commit 532d48529f
29 changed files with 2329 additions and 0 deletions

View file

@ -0,0 +1,25 @@
/* @file DirectSourcePtr.hpp */
#pragma once
#include "reactor/SecondarySource.hpp"
#include "reactor/LastReducer.hpp"
#include "reactor/EventTimeFn.hpp"
namespace xo {
namespace reactor {
template<typename Event>
using DirectSource = SecondarySource<Event,
LastReducer<Event,
StructEventTimeFn<Event>>>;
/* use when Event is ref::rp<T> for some T */
template<typename Event>
using DirectSourcePtr = SecondarySource<Event,
LastReducer<Event,
PtrEventTimeFn<Event>>>;
} /*namespace reactor*/
} /*namespace xo*/
/* end DirectSourcePtr.hpp */