Public Member Functions | List of all members
I2Fcaster Struct Reference

Public Member Functions

void operator() (const int &in, int2float_node::output_ports_type &op)
 

Detailed Description

Definition at line 30 of file test_tbb.cxx.

Member Function Documentation

void I2Fcaster::operator() ( const int &  in,
int2float_node::output_ports_type &  op 
)
inline

Definition at line 31 of file test_tbb.cxx.

31  {
32  float f(in);
33  bool ok = std::get<0>(op).try_put(f);
34  if (ok) {
35  cerr << "cast " << in << " to " << f << endl;
36  }
37  else {
38  cerr << "FAILED " << in << " to " << f << endl;
39  }
40  }
QTextStream & endl(QTextStream &s)

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