R3BROOT
R3B analysis software
Loading...
Searching...
No Matches
R3B::InputConnector< InputType > Class Template Reference

#include <R3BIOConnector.h>

Public Types

using RawDataType = std::remove_const_t<std::remove_cv_t<InputType>>
 

Public Member Functions

 InputConnector (std::string_view branchName)
 
void init (bool is_optional=false, const boost::source_location &loc=BOOST_CURRENT_LOCATION)
 Initialisation for the connector of non-TCA input data.
 
auto get (const boost::source_location &loc=BOOST_CURRENT_LOCATION) const -> const RawDataType &
 
auto size (const boost::source_location &loc=BOOST_CURRENT_LOCATION) const
 
auto begin (const boost::source_location &loc=BOOST_CURRENT_LOCATION)
 
auto begin (const boost::source_location &loc=BOOST_CURRENT_LOCATION) const
 
auto end (const boost::source_location &loc=BOOST_CURRENT_LOCATION)
 
auto end (const boost::source_location &loc=BOOST_CURRENT_LOCATION) const
 

Private Member Functions

void check_init (const boost::source_location &loc) const
 

Private Attributes

std::string branch_name_
 
const RawDataTypedata_ = nullptr
 

Detailed Description

template<typename InputType>
class R3B::InputConnector< InputType >

Definition at line 37 of file R3BIOConnector.h.

Member Typedef Documentation

◆ RawDataType

template<typename InputType>
using R3B::InputConnector< InputType >::RawDataType = std::remove_const_t<std::remove_cv_t<InputType>>

Definition at line 40 of file R3BIOConnector.h.

Constructor & Destructor Documentation

◆ InputConnector()

template<typename InputType>
R3B::InputConnector< InputType >::InputConnector ( std::string_view branchName)
inlineexplicit

Definition at line 41 of file R3BIOConnector.h.

Member Function Documentation

◆ begin() [1/2]

template<typename InputType>
auto R3B::InputConnector< InputType >::begin ( const boost::source_location & loc = BOOST_CURRENT_LOCATION)
inline

Definition at line 97 of file R3BIOConnector.h.

◆ begin() [2/2]

template<typename InputType>
auto R3B::InputConnector< InputType >::begin ( const boost::source_location & loc = BOOST_CURRENT_LOCATION) const
inline

Definition at line 102 of file R3BIOConnector.h.

◆ check_init()

template<typename InputType>
void R3B::InputConnector< InputType >::check_init ( const boost::source_location & loc) const
inlineprivate

Definition at line 121 of file R3BIOConnector.h.

◆ end() [1/2]

template<typename InputType>
auto R3B::InputConnector< InputType >::end ( const boost::source_location & loc = BOOST_CURRENT_LOCATION)
inline

Definition at line 107 of file R3BIOConnector.h.

◆ end() [2/2]

template<typename InputType>
auto R3B::InputConnector< InputType >::end ( const boost::source_location & loc = BOOST_CURRENT_LOCATION) const
inline

Definition at line 112 of file R3BIOConnector.h.

◆ get()

template<typename InputType>
auto R3B::InputConnector< InputType >::get ( const boost::source_location & loc = BOOST_CURRENT_LOCATION) const -> const RawDataType&
inlinenodiscard

Definition at line 83 of file R3BIOConnector.h.

◆ init()

template<typename InputType>
void R3B::InputConnector< InputType >::init ( bool is_optional = false,
const boost::source_location & loc = BOOST_CURRENT_LOCATION )
inline

Initialize a non-TCA input data from the root file.

Parameters
is_optionalDon't report error if the input data doesn't exist.
locLocation for the current call site for better logging.

Definition at line 53 of file R3BIOConnector.h.

◆ size()

template<typename InputType>
auto R3B::InputConnector< InputType >::size ( const boost::source_location & loc = BOOST_CURRENT_LOCATION) const
inline

Definition at line 89 of file R3BIOConnector.h.

Member Data Documentation

◆ branch_name_

template<typename InputType>
std::string R3B::InputConnector< InputType >::branch_name_
private

Definition at line 119 of file R3BIOConnector.h.

◆ data_

template<typename InputType>
const RawDataType* R3B::InputConnector< InputType >::data_ = nullptr
private

Definition at line 120 of file R3BIOConnector.h.


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