TRIQS/h5 1.3.0
C++ interface to HDF5
Loading...
Searching...
No Matches
vector.hpp File Reference
#include "./string.hpp"
#include "../complex.hpp"
#include "../format.hpp"
#include "../group.hpp"
#include "../scalar.hpp"
#include "../utils.hpp"
#include <string>
#include <vector>
#include <type_traits>

Detailed Description

Provides functions to read/write std::vector objects from/to HDF5.

Definition in file vector.hpp.

Go to the source code of this file.

Classes

struct  h5::hdf5_format_impl< std::vector< std::string > >
 Specialization of h5::hdf5_format_impl for std::vector<std::string>. More...
 
struct  h5::hdf5_format_impl< std::vector< T > >
 Specialization of h5::hdf5_format_impl for std::vector. More...
 

Functions

template<typename T >
array_view h5::array_interface::array_view_from_vector (std::vector< T > const &v)
 Create an h5::array_interface::array_view for a std::vector.
 
void h5::from_char_buf (char_buf const &cb, std::vector< std::string > &v)
 Create a vector of strings from an h5::char_buf.
 
void h5::from_char_buf (char_buf const &cb, std::vector< std::vector< std::string > > &v)
 Create a vector of vectors of strings from an h5::char_buf.
 
template<typename T >
void h5::h5_read (group g, std::string name, std::vector< T > &v)
 Read a std::vector from an HDF5 dataset/subgroup.
 
void h5::h5_read_attribute (object obj, std::string const &name, std::vector< std::string > &v)
 Read a vector of strings from an HDF5 attribute.
 
void h5::h5_read_attribute (object obj, std::string const &name, std::vector< std::vector< std::string > > &v)
 Read a vector of vectors of strings from an HDF5 attribute.
 
template<typename T >
void h5::h5_write (group g, std::string const &name, std::vector< T > const &v)
 Write a std::vector to an HDF5 dataset/subgroup.
 
void h5::h5_write_attribute (object obj, std::string const &name, std::vector< std::string > const &v)
 Write a vectors of strings to an HDF5 attribute.
 
void h5::h5_write_attribute (object obj, std::string const &name, std::vector< std::vector< std::string > > const &v)
 Write a vector of vectors of strings to an HDF5 attribute.
 
char_buf h5::to_char_buf (std::vector< std::string > const &v)
 Create an h5::char_buf from a vector of strings.
 
char_buf h5::to_char_buf (std::vector< std::vector< std::string > > const &v)
 Create an h5::char_buf from a vector of vectors of strings.