R3BROOT
R3B analysis software
Loading...
Searching...
No Matches
R3B::OutputConnector< OutputType > Class Template Reference

#include <R3BIOConnector.h>

Public Types

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

Public Member Functions

 OutputConnector (std::string_view branchName)
 
 ~OutputConnector ()=default
 
 OutputConnector (const OutputConnector &)=delete
 
 OutputConnector (OutputConnector &&)=delete
 
OutputConnectoroperator= (const OutputConnector &other)=delete
 
OutputConnectoroperator= (OutputConnector &&)=delete
 
void init (bool persistance=true, const boost::source_location &loc=BOOST_CURRENT_LOCATION)
 
auto get () -> RawDataType &
 
auto get_constref () const -> const RawDataType &
 
void clear ()
 
template<typename ResetOp>
void clear (ResetOp opn)
 
auto size () const
 

Private Attributes

std::string branch_name_
 
RawDataType data_
 
RawDataTypedata_ptr_ = &data_
 

Detailed Description

template<typename OutputType>
class R3B::OutputConnector< OutputType >

Definition at line 215 of file R3BIOConnector.h.

Member Typedef Documentation

◆ RawDataType

template<typename OutputType>
using R3B::OutputConnector< OutputType >::RawDataType = std::remove_const_t<std::remove_cv_t<OutputType>>

Definition at line 218 of file R3BIOConnector.h.

Constructor & Destructor Documentation

◆ OutputConnector() [1/3]

template<typename OutputType>
R3B::OutputConnector< OutputType >::OutputConnector ( std::string_view branchName)
inlineexplicit

Definition at line 219 of file R3BIOConnector.h.

◆ ~OutputConnector()

template<typename OutputType>
R3B::OutputConnector< OutputType >::~OutputConnector ( )
default

◆ OutputConnector() [2/3]

template<typename OutputType>
R3B::OutputConnector< OutputType >::OutputConnector ( const OutputConnector< OutputType > & )
delete

◆ OutputConnector() [3/3]

template<typename OutputType>
R3B::OutputConnector< OutputType >::OutputConnector ( OutputConnector< OutputType > && )
delete

Member Function Documentation

◆ clear() [1/2]

template<typename OutputType>
void R3B::OutputConnector< OutputType >::clear ( )
inline

Definition at line 249 of file R3BIOConnector.h.

◆ clear() [2/2]

template<typename OutputType>
template<typename ResetOp>
void R3B::OutputConnector< OutputType >::clear ( ResetOp opn)
inline

Definition at line 252 of file R3BIOConnector.h.

◆ get()

template<typename OutputType>
auto R3B::OutputConnector< OutputType >::get ( ) -> RawDataType&
inlinenodiscard

Definition at line 246 of file R3BIOConnector.h.

◆ get_constref()

template<typename OutputType>
auto R3B::OutputConnector< OutputType >::get_constref ( ) const -> const RawDataType&
inlinenodiscard

Definition at line 247 of file R3BIOConnector.h.

◆ init()

template<typename OutputType>
void R3B::OutputConnector< OutputType >::init ( bool persistance = true,
const boost::source_location & loc = BOOST_CURRENT_LOCATION )
inline

Definition at line 231 of file R3BIOConnector.h.

◆ operator=() [1/2]

template<typename OutputType>
OutputConnector & R3B::OutputConnector< OutputType >::operator= ( const OutputConnector< OutputType > & other)
delete

◆ operator=() [2/2]

template<typename OutputType>
OutputConnector & R3B::OutputConnector< OutputType >::operator= ( OutputConnector< OutputType > && )
delete

◆ size()

template<typename OutputType>
auto R3B::OutputConnector< OutputType >::size ( ) const
inline

Definition at line 257 of file R3BIOConnector.h.

Member Data Documentation

◆ branch_name_

template<typename OutputType>
std::string R3B::OutputConnector< OutputType >::branch_name_
private

Definition at line 260 of file R3BIOConnector.h.

◆ data_

template<typename OutputType>
RawDataType R3B::OutputConnector< OutputType >::data_
private

Definition at line 261 of file R3BIOConnector.h.

◆ data_ptr_

template<typename OutputType>
RawDataType* R3B::OutputConnector< OutputType >::data_ptr_ = &data_
private

Definition at line 262 of file R3BIOConnector.h.


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