|
Utopia 2
Framework for studying models of complex & adaptive systems.
|
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>
Static Public Member Functions | |
| template<typename T > | |
| static auto | convert_source (T &source) |
| function for converting source data into variable length type | |
| 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' | |
Private Attributes | |
| std::shared_ptr< spdlog::logger > | _log |
| For logging all kinds of stuff. | |
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.
|
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'
| begin | start of raw data range |
| end | end of raw data range |
| adaptor | adaptor function-pointer/functor/lamdba... |
| Iter | Iterator |
| Adaptor | function<some_type(typename Iterator::value_type)> |
|
inlinestatic |
function for converting source data into variable length type
| source | The source |
| T | the source type |
|
private |
For logging all kinds of stuff.