initial implementation
This commit is contained in:
commit
532d48529f
29 changed files with 2329 additions and 0 deletions
25
include/xo/reactor/DirectSourcePtr.hpp
Normal file
25
include/xo/reactor/DirectSourcePtr.hpp
Normal 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 */
|
||||
Loading…
Add table
Add a link
Reference in a new issue