Wildmeshing Toolkit
wmtk::HDF5Reader Class Reference

#include <HDF5Reader.hpp>

Public Member Functions

 HDF5Reader ()
 
std::shared_ptr< Meshread (const std::filesystem::path &filename)
 

Private Member Functions

std::shared_ptr< Meshread_mesh (h5pp::File &hdf5_file, const std::string &dataset)
 
template<typename T >
void set_attribute (const T &default_val, const std::string &name, PrimitiveType pt, int64_t stride, const std::vector< T > &v, Mesh &mesh)
 

Detailed Description

Definition at line 16 of file HDF5Reader.hpp.

Constructor & Destructor Documentation

◆ HDF5Reader()

wmtk::HDF5Reader::HDF5Reader ( )

Definition at line 41 of file HDF5Reader.cpp.

Member Function Documentation

◆ read()

std::shared_ptr< Mesh > wmtk::HDF5Reader::read ( const std::filesystem::path &  filename)

Definition at line 44 of file HDF5Reader.cpp.

Referenced by wmtk::io::read_mesh().

Here is the caller graph for this function:

◆ read_mesh()

std::shared_ptr< Mesh > wmtk::HDF5Reader::read_mesh ( h5pp::File &  hdf5_file,
const std::string &  dataset 
)
private

Definition at line 123 of file HDF5Reader.cpp.

References wmtk::Edge, wmtk::Rational::init_from_binary(), wmtk::logger(), wmtk::Tetrahedron, wmtk::Triangle, and wmtk::Vertex.

Here is the call graph for this function:

◆ set_attribute()

template<typename T >
void wmtk::HDF5Reader::set_attribute ( const T &  default_val,
const std::string &  name,
PrimitiveType  pt,
int64_t  stride,
const std::vector< T > &  v,
Mesh mesh 
)
private

Definition at line 208 of file HDF5Reader.cpp.

References wmtk::attribute::MeshAttributeHandle::as(), wmtk::Mesh::get_attribute_dimension(), wmtk::Mesh::get_attribute_handle(), wmtk::Mesh::has_attribute(), wmtk::log_and_throw_error(), and wmtk::Mesh::register_attribute().

Here is the call graph for this function:

The documentation for this class was generated from the following files: