| The Gaudi Framework v28r2p1 (f1a77ff4)

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Types | Public Member Functions | Static Public Attributes | Private Types | Private Member Functions | Private Attributes | List of all members
Gaudi::Functional::SplittingTransformer< vector_of_< Out >(const In &...), Traits_ > Class Template Referenceabstract

`#include <GaudiAlg/SplittingTransformer.h>`

Inheritance diagram for Gaudi::Functional::SplittingTransformer< vector_of_< Out >(const In &...), Traits_ >:
[legend]
Collaboration diagram for Gaudi::Functional::SplittingTransformer< vector_of_< Out >(const In &...), Traits_ >:
[legend]

## Public Types
using | KeyValue = std::pair< std::string, std::string >
using | KeyValues = std::pair< std::string, std::vector< std::string >>
Public Types inherited from Gaudi::Functional::details::DataHandleMixin< void, std::tuple< In... >, Traits_ >
using | KeyValue = std::pair< std::string, std::string >

## Public Member Functions
| SplittingTransformer (const std::string &name, ISvcLocator *locator, const std::array< KeyValue, N > &inputs, const KeyValues &output)
| SplittingTransformer (const std::string &name, ISvcLocator *locator, const KeyValue &input, const KeyValues &output)
const std::string & | outputLocation (unsigned int n) const
unsigned int | outputLocationSize () const
StatusCode | execute () override final
virtual vector_of_< Out > | operator() (const In &...) const =0
Public Member Functions inherited from Gaudi::Functional::details::DataHandleMixin< void, std::tuple< In... >, Traits_ >
| DataHandleMixin (const std::string &name, ISvcLocator *pSvcLocator, const std::array< KeyValue, N_in > &inputs)
| DataHandleMixin (const std::string &name, ISvcLocator *locator, const KeyValue &input)
template<std::size_t N = 0>
const std::string & | inputLocation () const
unsigned int | inputLocationSize () const

## Static Public Attributes
static constexpr std::size_t | N = sizeof...(In)
Static Public Attributes inherited from Gaudi::Functional::details::DataHandleMixin< void, std::tuple< In... >, Traits_ >
static constexpr std::size_t | N_in = sizeof...(In)

## Private Types
using | base_class = details::DataHandleMixin< void, std::tuple< In... >, Traits_ >
template<typename T >
using | OutputHandle = details::OutputHandle_t< Traits_, details::remove_optional_t< T >>

## Private Member Functions
template<std::size_t... I>
StatusCode | invoke (std::index_sequence< I... >)

## Private Attributes
std::vector< std::string > | m_outputLocations
std::vector< OutputHandle< Out > > | m_outputs

## Additional Inherited Members
Protected Attributes inherited from Gaudi::Functional::details::DataHandleMixin< void, std::tuple< In... >, Traits_ >
std::tuple< details::InputHandle_t< Traits_, In >... > | m_inputs

## Detailed Description

### template<typename Out, typename... In, typename Traits_>
class Gaudi::Functional::SplittingTransformer< vector_of_< Out >(const In &...), Traits_ >

Definition at line 20 of file SplittingTransformer.h.

## Member Typedef Documentation

template<typename Out , typename... In, typename Traits_ >

using Gaudi::Functional::SplittingTransformer< vector_of_< Out >(const In &...), Traits_ >::base_class = details::DataHandleMixin<void,std::tuple<In...>,Traits_>
| private

Definition at line 23 of file SplittingTransformer.h.

template<typename Out , typename... In, typename Traits_ >

using Gaudi::Functional::SplittingTransformer< vector_of_< Out >(const In &...), Traits_ >::KeyValue = std::pair<std::string, std::string>

Definition at line 26 of file SplittingTransformer.h.

template<typename Out , typename... In, typename Traits_ >

using Gaudi::Functional::SplittingTransformer< vector_of_< Out >(const In &...), Traits_ >::KeyValues = std::pair<std::string, std::vector<std::string>>

Definition at line 27 of file SplittingTransformer.h.

template<typename Out , typename... In, typename Traits_ >
template<typename T >

using Gaudi::Functional::SplittingTransformer< vector_of_< Out >(const In &...), Traits_ >::OutputHandle = details::OutputHandle_t<Traits_,details::remove_optional_t<T>>
| private

Definition at line 74 of file SplittingTransformer.h.

## Constructor & Destructor Documentation

template<typename Out , typename... In, typename Traits_ >

Gaudi::Functional::SplittingTransformer< vector_of_< Out >(const In &...), Traits_ >::SplittingTransformer | ( | const std::string & | name,
|  | ISvcLocator * | locator,
|  | const std::array< KeyValue, N > & | inputs,
|  | const KeyValues & | output
| ) |  |

template<typename Out , typename... In, typename Traits_ >

Gaudi::Functional::SplittingTransformer< vector_of_< Out >(const In &...), Traits_ >::SplittingTransformer | ( | const std::string & | name,
|  | ISvcLocator * | locator,
|  | const KeyValue & | input,
|  | const KeyValues & | output
| ) |  |
| inline

Definition at line 33 of file SplittingTransformer.h.

36 : SplittingTransformer( name, locator, std::array<KeyValue,1>{ input }, output )
37 {
38 static_assert(N==1,"single input argument requires single input signature");
39 }
gaudirun.output
output
Definition: gaudirun.py:388
Gaudi::Functional::SplittingTransformer< vector_of_< Out >(const In &...), Traits_ >::N
static constexpr std::size_t N
Definition: SplittingTransformer.h:25
std::array
STL class.
Gaudi::Functional::SplittingTransformer< vector_of_< Out >(const In &...), Traits_ >::SplittingTransformer
SplittingTransformer(const std::string &name, ISvcLocator *locator, const std::array< KeyValue, N > &inputs, const KeyValues &output)

## Member Function Documentation

template<typename Out , typename... In, typename Traits_ >

StatusCode Gaudi::Functional::SplittingTransformer< vector_of_< Out >(const In &...), Traits_ >::execute | ( |  | ) |
| inline final override

Definition at line 46 of file SplittingTransformer.h.

47 { return invoke(std::index_sequence_for<In...>{}); }
Gaudi::Functional::SplittingTransformer< vector_of_< Out >(const In &...), Traits_ >::invoke
StatusCode invoke(std::index_sequence< I... >)
Definition: SplittingTransformer.h:55
template<typename Out , typename... In, typename Traits_ >
template<std::size_t... I>

StatusCode Gaudi::Functional::SplittingTransformer< vector_of_< Out >(const In &...), Traits_ >::invoke | ( | std::index_sequence< I... > |  | ) |
| inline private

Definition at line 55 of file SplittingTransformer.h.

56 {
57 try {
58 //TODO:FIXME: how does operator() know the number and order of expected outputs?
59 using details::as_const;
60 auto out = as_const(*this)( as_const(*std::get<I>(this->m_inputs).get())... );
61 if (out.size()!=m_outputs.size()) {
62 throw GaudiException( "Error during transform: expected " + std::to_string(m_outputs.size())
63 + " containers, got " + std::to_string(out.size()) + " instead",
64 this->name(),
65 StatusCode::FAILURE );
66 }
67 for (unsigned i=0;i!=out.size();++i) details::put( m_outputs[i], std::move(out[i]) );
68 } catch ( GaudiException& e ) {
69 (e.code() ? this->warning() : this->error() ) << e.message() << endmsg;
70 return e.code();
71 }
72 return StatusCode::SUCCESS;
73 }
Gaudi::Functional::details::DataHandleMixin< void, std::tuple< In... >, Traits_ >::m_inputs
std::tuple< details::InputHandle_t< Traits_, In >... > m_inputs
Definition: FunctionalDetails.h:406
StatusCode::SUCCESS
Definition: StatusCode.h:30
Gaudi::Functional::details::as_const
constexpr std::add_const< T >::type & as_const(T &t) noexcept
Definition: FunctionalDetails.h:77
GaudiException
Define general base for Gaudi exception.
Definition: GaudiException.h:23
gaudiComponentHelp.name
name
Definition: gaudiComponentHelp.py:28
StatusCode::FAILURE
Definition: StatusCode.h:29
std::to_string
T to_string(T...args)
GaudiException::code
virtual const StatusCode & code() const
StatusCode for Exception.
Definition: GaudiException.h:127
Gaudi::Functional::SplittingTransformer< vector_of_< Out >(const In &...), Traits_ >::m_outputs
std::vector< OutputHandle< Out > > m_outputs
Definition: SplittingTransformer.h:76
std::move
T move(T...args)
std::vector::size
T size(T...args)
endmsg
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition: MsgStream.h:244
Gaudi::Functional::details::put
Out1 * put(DataObjectHandle< Out1 > &out_handle, Out2 &&out)
Definition: FunctionalDetails.h:87
template<typename Out , typename... In, typename Traits_ >

virtual vector_of_<Out> Gaudi::Functional::SplittingTransformer< vector_of_< Out >(const In &...), Traits_ >::operator() | ( | const In & | ... | ) | const
| pure virtual

template<typename Out , typename... In, typename Traits_ >

const std::string& Gaudi::Functional::SplittingTransformer< vector_of_< Out >(const In &...), Traits_ >::outputLocation | ( | unsigned int | n | ) | const
| inline

Definition at line 42 of file SplittingTransformer.h.

42 { return m_outputLocations[n]; }
GaudiPluginService.cpluginsvc.n
n
Definition: cpluginsvc.py:217
Gaudi::Functional::SplittingTransformer< vector_of_< Out >(const In &...), Traits_ >::m_outputLocations
std::vector< std::string > m_outputLocations
Definition: SplittingTransformer.h:75
template<typename Out , typename... In, typename Traits_ >

unsigned int Gaudi::Functional::SplittingTransformer< vector_of_< Out >(const In &...), Traits_ >::outputLocationSize | ( |  | ) | const
| inline

Definition at line 43 of file SplittingTransformer.h.

43 { return m_outputLocations.size(); }
Gaudi::Functional::SplittingTransformer< vector_of_< Out >(const In &...), Traits_ >::m_outputLocations
std::vector< std::string > m_outputLocations
Definition: SplittingTransformer.h:75
std::vector::size
T size(T...args)

## Member Data Documentation

template<typename Out , typename... In, typename Traits_ >

std::vector<std::string> Gaudi::Functional::SplittingTransformer< vector_of_< Out >(const In &...), Traits_ >::m_outputLocations
| private

Definition at line 75 of file SplittingTransformer.h.

template<typename Out , typename... In, typename Traits_ >

std::vector<OutputHandle<Out> > Gaudi::Functional::SplittingTransformer< vector_of_< Out >(const In &...), Traits_ >::m_outputs
| private

Definition at line 76 of file SplittingTransformer.h.

template<typename Out , typename... In, typename Traits_ >

constexpr std::size_t Gaudi::Functional::SplittingTransformer< vector_of_< Out >(const In &...), Traits_ >::N = sizeof...(In)
| static

Definition at line 25 of file SplittingTransformer.h.

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

- GaudiAlg/GaudiAlg/SplittingTransformer.h