Class which turns non-vector or plain-array containers into vectors. If the value_types are containers themselves, these are turned into vectors as well, because HDF5 cannot write something else.
More...
#include <hdfbufferfactory.hh>
|
template<typename T > |
static auto | convert_source (T &source) |
| function for converting source data into variable length type More...
|
|
template<typename Iter , typename Adaptor > |
static auto | buffer (Iter begin, Iter end, Adaptor &&adaptor) |
| static function for turning an iterator range with arbitrarty datatypes into a vector of data as returned from 'adaptor'. Version for non-container return types of 'adaptor' More...
|
|
|
std::shared_ptr< spdlog::logger > | _log |
| For logging all kinds of stuff. More...
|
|
Class which turns non-vector or plain-array containers into vectors. If the value_types are containers themselves, these are turned into vectors as well, because HDF5 cannot write something else.
◆ buffer()
template<typename Iter , typename Adaptor >
static auto Utopia::DataIO::HDFBufferFactory::buffer |
( |
Iter |
begin, |
|
|
Iter |
end, |
|
|
Adaptor && |
adaptor |
|
) |
| |
|
inlinestatic |
static function for turning an iterator range with arbitrarty datatypes into a vector of data as returned from 'adaptor'. Version for non-container return types of 'adaptor'
- Parameters
-
begin | start of raw data range |
end | end of raw data range |
adaptor | adaptor function-pointer/functor/lamdba... |
- Template Parameters
-
Iter | Iterator |
Adaptor | function<some_type(typename Iterator::value_type)> |
- Returns
- auto The data range buffered from the adaptor
◆ convert_source()
template<typename T >
static auto Utopia::DataIO::HDFBufferFactory::convert_source |
( |
T & |
source | ) |
|
|
inlinestatic |
function for converting source data into variable length type
- Parameters
-
- Template Parameters
-
- Returns
- auto
◆ _log
std::shared_ptr< spdlog::logger > Utopia::DataIO::HDFBufferFactory::_log |
|
private |
For logging all kinds of stuff.
The documentation for this class was generated from the following file: