Functions
lvr2::hdf5util Namespace Reference

Functions

template<typename T >
void addArray (HighFive::Group &g, const std::string datasetName, const size_t &length, boost::shared_array< T > &data)
 
template<typename T >
void addArray (HighFive::Group &g, const std::string datasetName, std::vector< size_t > &dim, boost::shared_array< T > &data)
 
template<typename _Scalar , int _Rows, int _Cols, int _Options, int _MaxRows, int _MaxCols>
void addMatrix (HighFive::Group &group, std::string datasetName, const Eigen::Matrix< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols > &mat)
 
template<typename T >
std::unique_ptr< HighFive::DataSetcreateDataset (HighFive::Group &g, std::string datasetName, const HighFive::DataSpace &dataSpace, const HighFive::DataSetCreateProps &properties)
 
bool exist (HighFive::Group &group, const std::string &groupName)
 
bool exist (std::shared_ptr< HighFive::File > hdf5_file, const std::string &groupName)
 
template<typename T >
boost::shared_array< T > getArray (const HighFive::Group &g, const std::string &datasetName, std::vector< size_t > &dim)
 
template<typename T >
std::vector< size_t > getDimensions (const HighFive::Group &g, const std::string &datasetName)
 
HighFive::Group getGroup (HighFive::Group &g, const std::string &groupName, bool create=true)
 
HighFive::Group getGroup (std::shared_ptr< HighFive::File > hdf5_file, const std::string &groupName, bool create=true)
 
template<typename MatrixT >
boost::optional< MatrixT > getMatrix (const HighFive::Group &g, const std::string &datasetName)
 
std::shared_ptr< HighFive::Fileopen (const std::string &filename)
 
template<typename T >
void setAttribute (HighFive::Group &g, const std::string &attr_name, T &data)
 
std::vector< std::string > splitGroupNames (const std::string &groupName)
 
void writeBaseStructure (std::shared_ptr< HighFive::File > hdf5_file)
 

Function Documentation

◆ addArray() [1/2]

template<typename T >
void lvr2::hdf5util::addArray ( HighFive::Group g,
const std::string  datasetName,
const size_t &  length,
boost::shared_array< T > &  data 
)

◆ addArray() [2/2]

template<typename T >
void lvr2::hdf5util::addArray ( HighFive::Group g,
const std::string  datasetName,
std::vector< size_t > &  dim,
boost::shared_array< T > &  data 
)

◆ addMatrix()

template<typename _Scalar , int _Rows, int _Cols, int _Options, int _MaxRows, int _MaxCols>
void lvr2::hdf5util::addMatrix ( HighFive::Group group,
std::string  datasetName,
const Eigen::Matrix< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols > &  mat 
)

◆ createDataset()

template<typename T >
std::unique_ptr<HighFive::DataSet> lvr2::hdf5util::createDataset ( HighFive::Group g,
std::string  datasetName,
const HighFive::DataSpace dataSpace,
const HighFive::DataSetCreateProps properties 
)

◆ exist() [1/2]

bool lvr2::hdf5util::exist ( HighFive::Group group,
const std::string &  groupName 
)

Definition at line 170 of file Hdf5Util.cpp.

◆ exist() [2/2]

bool lvr2::hdf5util::exist ( std::shared_ptr< HighFive::File hdf5_file,
const std::string &  groupName 
)

Definition at line 136 of file Hdf5Util.cpp.

◆ getArray()

template<typename T >
boost::shared_array<T> lvr2::hdf5util::getArray ( const HighFive::Group g,
const std::string &  datasetName,
std::vector< size_t > &  dim 
)

◆ getDimensions()

template<typename T >
std::vector<size_t> lvr2::hdf5util::getDimensions ( const HighFive::Group g,
const std::string &  datasetName 
)

◆ getGroup() [1/2]

HighFive::Group lvr2::hdf5util::getGroup ( HighFive::Group g,
const std::string &  groupName,
bool  create = true 
)

Definition at line 98 of file Hdf5Util.cpp.

◆ getGroup() [2/2]

HighFive::Group lvr2::hdf5util::getGroup ( std::shared_ptr< HighFive::File hdf5_file,
const std::string &  groupName,
bool  create = true 
)

Definition at line 58 of file Hdf5Util.cpp.

◆ getMatrix()

template<typename MatrixT >
boost::optional<MatrixT> lvr2::hdf5util::getMatrix ( const HighFive::Group g,
const std::string &  datasetName 
)

◆ open()

std::shared_ptr< HighFive::File > lvr2::hdf5util::open ( const std::string &  filename)

Definition at line 202 of file Hdf5Util.cpp.

◆ setAttribute()

template<typename T >
void lvr2::hdf5util::setAttribute ( HighFive::Group g,
const std::string &  attr_name,
T &  data 
)

◆ splitGroupNames()

std::vector< std::string > lvr2::hdf5util::splitGroupNames ( const std::string &  groupName)

Definition at line 9 of file Hdf5Util.cpp.

◆ writeBaseStructure()

void lvr2::hdf5util::writeBaseStructure ( std::shared_ptr< HighFive::File hdf5_file)

Definition at line 36 of file Hdf5Util.cpp.



lvr2
Author(s): Thomas Wiemann , Sebastian Pütz , Alexander Mock , Lars Kiesow , Lukas Kalbertodt , Tristan Igelbrink , Johan M. von Behren , Dominik Feldschnieders , Alexander Löhr
autogenerated on Wed Mar 2 2022 00:37:28