The Gaudi Framework  master (594c33fa)
Gaudi::TestSuite::IntVectorsMergingConsumer Struct Referencefinal
Inheritance diagram for Gaudi::TestSuite::IntVectorsMergingConsumer:
Collaboration diagram for Gaudi::TestSuite::IntVectorsMergingConsumer:

Public Types

using Base = Gaudi::Functional::MergingConsumer< void(Gaudi::Functional::vector_of_const_< std::vector< int > > const &), BaseClass_t >
 

Public Member Functions

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

Detailed Description

Definition at line 458 of file MakeAndConsume.cpp.

Member Typedef Documentation

◆ Base

Constructor & Destructor Documentation

◆ IntVectorsMergingConsumer()

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

Definition at line 465 of file MakeAndConsume.cpp.

466  : Base( name, svcLoc, { "InputLocations", {} } ) {}

Member Function Documentation

◆ operator()()

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

Definition at line 468 of file MakeAndConsume.cpp.

468  {
469  // Create a vector and pre-allocate enough space for the number of integers we have
470  auto nelements = std::accumulate( intVectors.begin(), intVectors.end(), 0,
471  []( const auto a, const auto b ) { return a + b.size(); } );
472  info() << "sum of input sizes: " << nelements << endmsg;
473  // Concatenate the input vectors to form the output
474  for ( const auto& intVector : intVectors ) { info() << "Consuming vector " << intVector << endmsg; }
475  }

The documentation for this struct was generated from the following file:
Gaudi::TestSuite::IntVectorsMergingConsumer::Base
Gaudi::Functional::MergingConsumer< void(Gaudi::Functional::vector_of_const_< std::vector< int > > const &), BaseClass_t > Base
Definition: MakeAndConsume.cpp:463
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