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

Public Member Functions

 SRangesToIntVector (const std::string &name, ISvcLocator *svcLoc)
std::vector< int > operator() (const Gaudi::Functional::vector_of_const_< Gaudi::Range_< std::vector< S const * > > > &SVectors) const override

Detailed Description

Definition at line 474 of file MakeAndConsume.cpp.

Constructor & Destructor Documentation

◆ SRangesToIntVector()

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

Definition at line 479 of file MakeAndConsume.cpp.

480 : MergingTransformer( name, svcLoc, { "InputRanges", {} },
481 { "OutputLocation", "/Event/MyConcatenatedIntFromSVector" } ) {}
details::MergingTransformer< Signature, Traits_, details::isLegacy< Traits_ > > MergingTransformer

Member Function Documentation

◆ operator()()

std::vector< int > Gaudi::TestSuite::SRangesToIntVector::operator() ( const Gaudi::Functional::vector_of_const_< Gaudi::Range_< std::vector< S const * > > > & SVectors) const
inlineoverride

Definition at line 483 of file MakeAndConsume.cpp.

484 {
485 std::vector<int> out;
486 // Concatenate the input vectors to form the output
487 for ( const auto& SVector : SVectors ) {
488 info() << "Concatening range of size " << SVector.size() << endmsg;
489 for ( auto* s : SVector ) { out.push_back( s->a ); }
490 }
491 info() << "Storing output vector " << out << " to " << outputLocation() << endmsg;
492 return out;
493 }
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: