The Gaudi Framework  master (594c33fa)
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 439 of file MakeAndConsume.cpp.

Constructor & Destructor Documentation

◆ IntVectorsMerger()

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

Definition at line 443 of file MakeAndConsume.cpp.

444  : MergingTransformer( name, svcLoc, { "InputLocations", {} } ) {}

Member Function Documentation

◆ operator()()

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

Definition at line 446 of file MakeAndConsume.cpp.

446  {
447  // Create a vector and pre-allocate enough space for the number of integers we have
448  auto nelements = std::accumulate( intVectors.begin(), intVectors.end(), 0,
449  []( const auto a, const auto b ) { return a + b.size(); } );
450  info() << "sum of input sizes: " << nelements << endmsg;
451  // Concatenate the input vectors to form the output
452  for ( const auto& intVector : intVectors ) { info() << "Consuming vector " << intVector << endmsg; }
453  }

The documentation for this struct was generated from the following file:
Gaudi::Functional::MergingTransformer
details::MergingTransformer< Signature, Traits_, details::isLegacy< Traits_ > > MergingTransformer
Definition: MergingTransformer.h:234
std::accumulate
T accumulate(T... args)
endmsg
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition: MsgStream.h:203
ConditionsStallTest.name
name
Definition: ConditionsStallTest.py:77
Gaudi::Functional::details::vector_of_const_::begin
iterator begin() const
Definition: details.h:344
Gaudi::Functional::details::vector_of_const_::end
iterator end() const
Definition: details.h:345