The Gaudi Framework  v41r0 (bdbe7744)
Loading...
Searching...
No Matches
Gaudi::TestSuite::IntVectorsMerger Struct Referencefinal
Inheritance diagram for Gaudi::TestSuite::IntVectorsMerger:
Collaboration diagram for Gaudi::TestSuite::IntVectorsMerger:

Public Member Functions

 IntVectorsMerger (const std::string &name, ISvcLocator *svcLoc)
void operator() (const Gaudi::Functional::vector_of_const_< std::vector< int > > &intVectors) const override

Detailed Description

Definition at line 521 of file MakeAndConsume.cpp.

Constructor & Destructor Documentation

◆ IntVectorsMerger()

Gaudi::TestSuite::IntVectorsMerger::IntVectorsMerger ( const std::string & name,
ISvcLocator * svcLoc )
inline

Definition at line 525 of file MakeAndConsume.cpp.

526 : MergingTransformer( name, svcLoc, { "InputLocations", {} } ) {}
details::MergingTransformer< Signature, Traits_, details::isLegacy< Traits_ > > MergingTransformer

Member Function Documentation

◆ operator()()

void Gaudi::TestSuite::IntVectorsMerger::operator() ( const Gaudi::Functional::vector_of_const_< std::vector< int > > & intVectors) const
inlineoverride

Definition at line 528 of file MakeAndConsume.cpp.

528 {
529 // Create a vector and pre-allocate enough space for the number of integers we have
530 auto nelements = std::accumulate( intVectors.begin(), intVectors.end(), 0,
531 []( const auto a, const auto b ) { return a + b.size(); } );
532 info() << "sum of input sizes: " << nelements << endmsg;
533 // Concatenate the input vectors to form the output
534 for ( const auto& intVector : intVectors ) { info() << "Consuming vector " << intVector << endmsg; }
535 }
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition MsgStream.h:198

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