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

Public Member Functions

 OptionalSRangesMerger (const std::string &name, ISvcLocator *svcLoc)
void operator() (const Gaudi::Functional::vector_of_const_< std::optional< Gaudi::NamedRange_< std::vector< S const * > > > > &OptSVectors) const override

Detailed Description

Definition at line 497 of file MakeAndConsume.cpp.

Constructor & Destructor Documentation

◆ OptionalSRangesMerger()

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

Definition at line 502 of file MakeAndConsume.cpp.

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

Member Function Documentation

◆ operator()()

void Gaudi::TestSuite::OptionalSRangesMerger::operator() ( const Gaudi::Functional::vector_of_const_< std::optional< Gaudi::NamedRange_< std::vector< S const * > > > > & OptSVectors) const
inlineoverride

Definition at line 506 of file MakeAndConsume.cpp.

507 {
508 // Loop over the optional ranges checking if the opt has a value
509 for ( const auto& OptSVector : OptSVectors ) {
510 if ( OptSVector.has_value() ) {
511 auto SVector = OptSVector.value();
512 info() << "Consuming vector of size: " << SVector.size() << endmsg;
513 } else {
514 info() << "Skipping empty optional range" << endmsg;
515 }
516 }
517 }
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: