20 #ifndef _SPLITMETHOD_HPP_
21 #define _SPLITMETHOD_HPP_ 1
23 #include "signalvars.hpp"
34 bool send( T &item,
const raft::signal signal,
Port &outputs )
36 auto *fifo( select_fifo( outputs, sendtype ) );
39 fifo->push( item, signal );
49 bool get( T &item, raft::signal &signal,
Port &inputs )
51 auto *fifo( select_fifo( inputs, gettype ) );
54 fifo->pop< T >( item, &signal );
63 enum functype { sendtype, gettype };
64 virtual FIFO* select_fifo(
Port &port_list,
const functype type ) = 0;
Definition: splitmethod.hpp:27