2 #include <ff/util/ntobject.h>
3 #include <hpda/common/common.h>
4 #include <hpda/common/stream_policy.h>
5 #include <hpda/extractor/extractor_base.h>
10 template <
typename OutputObjType>
16 void add_data(
const OutputObjType &obj) {
17 m_data.push_back(obj);
20 virtual bool process() {
26 int s =
static_cast<int>(m_data.size());
33 virtual OutputObjType output_value() {
34 if (m_data.size() <= m_index) {
35 throw std::runtime_error(
"no more data in raw_data ");
37 return m_data[m_index];
41 std::vector<OutputObjType> m_data;
48 template <
typename... ARGS>