ATLAS Offline Software
Public Types | Public Member Functions | Private Attributes | List of all members
H5Utils::internal::DataConsumer< T, I > Class Template Reference

implementation for variable filler More...

#include <Writer.h>

Inheritance diagram for H5Utils::internal::DataConsumer< T, I >:
Collaboration diagram for H5Utils::internal::DataConsumer< T, I >:

Public Types

typedef I input_type
 

Public Member Functions

 DataConsumer (const std::string &, const std::function< T(I)> &, const T default_value=T(), Compression=Compression::STANDARD)
 
data_buffer_t getBuffer (I) const override
 
data_buffer_t getDefault () const override
 
H5::DataType getType () const override
 
H5::DataType getWriteType () const override
 
std::string name () const override
 

Private Attributes

std::function< T(I)> m_getter
 
std::string m_name
 
m_default_value
 
H5::DataType m_write_type
 

Detailed Description

template<typename T, typename I>
class H5Utils::internal::DataConsumer< T, I >

implementation for variable filler

Definition at line 60 of file Writer.h.

Member Typedef Documentation

◆ input_type

template<typename I >
typedef I H5Utils::internal::IDataConsumer< I >::input_type
inherited

Definition at line 55 of file Writer.h.

Constructor & Destructor Documentation

◆ DataConsumer()

template<typename T , typename I >
H5Utils::internal::DataConsumer< T, I >::DataConsumer ( const std::string &  name,
const std::function< T(I)> &  func,
const default_value = T(),
Compression  comp = Compression::STANDARD 
)

Definition at line 79 of file Writer.h.

82  :
83  m_getter(func),
84  m_name(name),
85  m_default_value(default_value),
86  m_write_type(getCompressedType<T>(comp))
87  {
88  }

Member Function Documentation

◆ getBuffer()

template<typename T , typename I >
data_buffer_t H5Utils::internal::DataConsumer< T, I >::getBuffer ( args) const
overridevirtual

Implements H5Utils::internal::IDataConsumer< I >.

Definition at line 90 of file Writer.h.

90  {
91  data_buffer_t buffer;
93  return buffer;
94  }

◆ getDefault()

template<typename T , typename I >
data_buffer_t H5Utils::internal::DataConsumer< T, I >::getDefault
overridevirtual

Implements H5Utils::internal::IDataConsumer< I >.

Definition at line 96 of file Writer.h.

96  {
97  data_buffer_t default_value;
98  H5Traits<T>::ref(default_value) = m_default_value;
99  return default_value;
100  }

◆ getType()

template<typename T , typename I >
H5::DataType H5Utils::internal::DataConsumer< T, I >::getType
overridevirtual

Implements H5Utils::internal::IDataConsumer< I >.

Definition at line 102 of file Writer.h.

102  {
103  return H5Traits<T>::type;
104  }

◆ getWriteType()

template<typename T , typename I >
H5::DataType H5Utils::internal::DataConsumer< T, I >::getWriteType
overridevirtual

Implements H5Utils::internal::IDataConsumer< I >.

Definition at line 106 of file Writer.h.

106  {
107  return m_write_type;
108  }

◆ name()

template<typename T , typename I >
std::string H5Utils::internal::DataConsumer< T, I >::name
overridevirtual

Implements H5Utils::internal::IDataConsumer< I >.

Definition at line 110 of file Writer.h.

110  {
111  return m_name;
112  }

Member Data Documentation

◆ m_default_value

template<typename T , typename I >
T H5Utils::internal::DataConsumer< T, I >::m_default_value
private

Definition at line 75 of file Writer.h.

◆ m_getter

template<typename T , typename I >
std::function<T(I)> H5Utils::internal::DataConsumer< T, I >::m_getter
private

Definition at line 73 of file Writer.h.

◆ m_name

template<typename T , typename I >
std::string H5Utils::internal::DataConsumer< T, I >::m_name
private

Definition at line 74 of file Writer.h.

◆ m_write_type

template<typename T , typename I >
H5::DataType H5Utils::internal::DataConsumer< T, I >::m_write_type
private

Definition at line 76 of file Writer.h.


The documentation for this class was generated from the following file:
plotting.yearwise_luminosity_vs_mu.comp
comp
Definition: yearwise_luminosity_vs_mu.py:23
H5Utils::internal::DataConsumer::m_name
std::string m_name
Definition: Writer.h:74
createCoolChannelIdFile.buffer
buffer
Definition: createCoolChannelIdFile.py:12
H5Utils::internal::DataConsumer::name
std::string name() const override
Definition: Writer.h:110
H5Utils::internal::DataConsumer::m_default_value
T m_default_value
Definition: Writer.h:75
ref
const boost::regex ref(r_ef)
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
H5Utils::internal::DataConsumer::m_getter
std::function< T(I)> m_getter
Definition: Writer.h:73
H5Utils::internal::DataConsumer::m_write_type
H5::DataType m_write_type
Definition: Writer.h:76
python.CaloScaleNoiseConfig.args
args
Definition: CaloScaleNoiseConfig.py:80