Public Member Functions | Public Attributes | List of all members
TupleHelper< TupleType, N > Struct Template Reference

Public Member Functions

vector< int_receiver * > input_ports (tbb::flow::join_node< TupleType > &jn)
 
vector< int > values (const TupleType &t)
 
vector< int > operator() (const TupleType &t)
 

Public Attributes

TupleHelper< TupleType, N-1 > nm1helper
 

Detailed Description

template<class TupleType, int N>
struct TupleHelper< TupleType, N >

Definition at line 48 of file test_tbb_join.cxx.

Member Function Documentation

template<class TupleType, int N>
vector<int_receiver*> TupleHelper< TupleType, N >::input_ports ( tbb::flow::join_node< TupleType > &  jn)
inline

Definition at line 51 of file test_tbb_join.cxx.

51  {
52  vector<int_receiver*> ret = nm1helper.input_ports(jn);
53  int_receiver* rec = dynamic_cast<int_receiver*>(&tbb::flow::input_port<N-1>(jn));
54  ret.insert(ret.begin(), rec);
55  return ret;
56  }
tbb::flow::receiver< int > int_receiver
TupleHelper< TupleType, N-1 > nm1helper
template<class TupleType, int N>
vector<int> TupleHelper< TupleType, N >::operator() ( const TupleType &  t)
inline

Definition at line 66 of file test_tbb_join.cxx.

66  {
67  return values(t);
68  }
vector< int > values(const TupleType &t)
template<class TupleType, int N>
vector<int> TupleHelper< TupleType, N >::values ( const TupleType &  t)
inline

Definition at line 58 of file test_tbb_join.cxx.

58  {
59  vector<int> ret = nm1helper.values(t);
60  int val = std::get<N-1>(t);
61  ret.insert(ret.begin(), val);
62  return ret;
63  }
TupleHelper< TupleType, N-1 > nm1helper
auto const & get(AssnsNode< L, R, D > const &r)
Definition: AssnsNode.h:115

Member Data Documentation

template<class TupleType, int N>
TupleHelper<TupleType, N-1> TupleHelper< TupleType, N >::nm1helper

Definition at line 49 of file test_tbb_join.cxx.


The documentation for this struct was generated from the following file: