Definition at line 45 of file merging_transformer.cpp.
◆ is_merger_consumer_with_scalar()
| is_merger_consumer_with_scalar::is_merger_consumer_with_scalar |
( |
std::string const & | name, |
|
|
ISvcLocator * | pSvcLocator ) |
|
inline |
Definition at line 46 of file merging_transformer.cpp.
48 { { "InputInts", { "firstInt", "secondInt" } }, { "Scale", "scale" } } ) {}
◆ operator()()
| void is_merger_consumer_with_scalar::operator() |
( |
ints const & | is, |
|
|
int const & | scale ) const |
|
inlineoverride |
Definition at line 50 of file merging_transformer.cpp.
50 {
51 auto sum = 0;
52 for ( auto i : is ) { sum += i; }
53 info() <<
"consumed scaled sum: " << sum *
scale <<
" from " << inputLocation( 0 ) <<
" and " << inputLocation<1>()
55 }
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
The documentation for this struct was generated from the following file: