Nektar++
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
Nektar::LibUtilities::H5DataSource Class Reference

#include <FieldIOHdf5.h>

Inheritance diagram for Nektar::LibUtilities::H5DataSource:
[legend]

Public Member Functions

 H5DataSource (const std::string &fn, H5::PListSharedPtr parallelProps)
 Constructor based on filename. More...
 
H5::FileSharedPtr Get ()
 Get H5::FileSharedPtr reference to file. More...
 
const H5::FileSharedPtr Get () const
 Get H5::FileSharedPtr reference to file. More...
 

Static Public Member Functions

static DataSourceSharedPtr create (const std::string &fn, H5::PListSharedPtr parallelProps)
 Static constructor for this data source. More...
 

Private Attributes

H5::FileSharedPtr doc
 HDF5 document. More...
 

Detailed Description

Definition at line 54 of file FieldIOHdf5.h.

Constructor & Destructor Documentation

◆ H5DataSource()

Nektar::LibUtilities::H5DataSource::H5DataSource ( const std::string &  fn,
H5::PListSharedPtr  parallelProps 
)
inline

Constructor based on filename.

Definition at line 58 of file FieldIOHdf5.h.

59 : doc(H5::File::Open(fn, H5F_ACC_RDONLY, parallelProps))
60 {
61 }
static FileSharedPtr Open(const std::string &filename, unsigned mode, PListSharedPtr accessPL=PList::Default())
Definition: H5.cpp:636
H5::FileSharedPtr doc
HDF5 document.
Definition: FieldIOHdf5.h:84

Referenced by create().

Member Function Documentation

◆ create()

static DataSourceSharedPtr Nektar::LibUtilities::H5DataSource::create ( const std::string &  fn,
H5::PListSharedPtr  parallelProps 
)
inlinestatic

Static constructor for this data source.

Definition at line 76 of file FieldIOHdf5.h.

78 {
79 return DataSourceSharedPtr(new H5DataSource(fn, parallelProps));
80 }
H5DataSource(const std::string &fn, H5::PListSharedPtr parallelProps)
Constructor based on filename.
Definition: FieldIOHdf5.h:58
std::shared_ptr< DataSource > DataSourceSharedPtr
Definition: FieldIO.h:88

References H5DataSource().

Referenced by Nektar::LibUtilities::FieldIOHdf5::v_Import(), and Nektar::LibUtilities::FieldIOHdf5::v_ImportFieldMetaData().

◆ Get() [1/2]

H5::FileSharedPtr Nektar::LibUtilities::H5DataSource::Get ( )
inline

Get H5::FileSharedPtr reference to file.

Definition at line 64 of file FieldIOHdf5.h.

65 {
66 return doc;
67 }

References doc.

◆ Get() [2/2]

const H5::FileSharedPtr Nektar::LibUtilities::H5DataSource::Get ( ) const
inline

Get H5::FileSharedPtr reference to file.

Definition at line 70 of file FieldIOHdf5.h.

71 {
72 return doc;
73 }

References doc.

Member Data Documentation

◆ doc

H5::FileSharedPtr Nektar::LibUtilities::H5DataSource::doc
private

HDF5 document.

Definition at line 84 of file FieldIOHdf5.h.

Referenced by CellMLToNektar.optimize.LookupTableAnalyser::_determine_duplicate_tables(), CellMLToNektar.optimize.LookupTableAnalyser::_determine_unneeded_tables(), CellMLToNektar.optimize.PartialEvaluator::_do_reduce_eval_loop(), CellMLToNektar.optimize.LookupTableAnalyser::_find_tables(), CellMLToNektar.translators.ConfigurationStore::_find_transmembrane_currents_from_voltage_ode(), CellMLToNektar.translators.ConfigurationStore::_find_variable(), CellMLToNektar.optimize.PartialEvaluator::_get_assignment_exprs(), CellMLToNektar.optimize.LookupTableAnalyser::analyse_model(), CellMLToNektar.optimize.LookupTableAnalyser::annotate_as_suitable(), CellMLToNektar.optimize.LookupTableAnalyser::config(), CellMLToNektar.translators.CellMLTranslator::config(), CellMLToNektar.translators.ConfigurationStore::expose_variables(), CellMLToNektar.translators.ConfigurationStore::find_current_vars(), Get(), CellMLToNektar.CellMLToNektarTranslator.CellMLToNektarTranslator::get_stimulus_assignment(), CellMLToNektar.optimize.PartialEvaluator::is_instantiable(), CellMLToNektar.CellMLToNektarTranslator.CellMLToNektarTranslator::lut_parameters(), CellMLToNektar.CellMLToNektarTranslator.CellMLToNektarTranslator::output_backward_euler_mathematics(), CellMLToNektar.CellMLToNektarTranslator.CellMLToNektarTranslator::output_constructor(), CellMLToNektar.CellMLToNektarTranslator.CellMLToNektarTranslator::output_derived_quantities(), CellMLToNektar.CellMLToNektarTranslator.CellMLToNektarTranslator::output_equations(), CellMLToNektar.CellMLToNektarTranslator.CellMLToNektarTranslator::output_get_i_ionic(), CellMLToNektar.CellMLToNektarTranslator.CellMLToNektarTranslator::output_intracellular_calcium(), CellMLToNektar.CellMLToNektarTranslator.CellMLToNektarTranslator::output_lut_class(), CellMLToNektar.translators.CellMLTranslator::output_lut_declarations(), CellMLToNektar.translators.CellMLTranslator::output_lut_deletion(), CellMLToNektar.translators.CellMLTranslator::output_lut_generation(), CellMLToNektar.CellMLToNektarTranslator.CellMLToNektarTranslator::output_lut_indexing_methods(), CellMLToNektar.translators.CellMLTranslator::output_lut_indices(), CellMLToNektar.translators.CellMLTranslator::output_lut_methods(), CellMLToNektar.translators.CellMLTranslator::output_lut_row_lookup_memory(), CellMLToNektar.translators.CellMLTranslator::output_lut_row_lookup_methods(), CellMLToNektar.CellMLToNektarTranslator.CellMLToNektarTranslator::output_rush_larsen_mathematics(), CellMLToNektar.translators.CellMLTranslator::output_table_index_generation(), CellMLToNektar.translators.ConfigurationStore::read_configuration_file(), CellMLToNektar.optimize.LookupTableAnalyser::remove_lut_annotations(), CellMLToNektar.translators.CellMLTranslator::scan_for_lookup_tables(), and CellMLToNektar.translators.ConfigurationStore::validate_metadata().