class Gambit::Printers::DataSetInterfaceBase
Wrapper object to manage a single dataset. More…
#include <DataSetInterfaceBase.hpp>
Public Functions
Name | |
---|---|
DataSetInterfaceBase() Constructors. | |
DataSetInterfaceBase(hid_t location_id, const std::string & name, const std::size_t rdims[DSETRANK], const bool resume, const char access) | |
virtual | ~DataSetInterfaceBase() Do cleanup (close dataset) |
hid_t | createDataSet(hid_t location_id, const std::string & name, const std::size_t rdims[DSETRANK]) Create a (chunked) dataset. |
hid_t | openDataSet(hid_t location_id, const std::string & name, const std::size_t rdims[DSETRANK]) Open an existing dataset. |
void | closeDataSet() Close an open dataset. |
void | extend_dset(const unsigned long i) Extend dataset to nearest multiple of CHUNKLENGTH above supplied length. |
std::string | get_myname() const |
std::size_t | get_dsetrank() const |
std::size_t | get_chunklength() const |
const hsize_t * | get_maxdsetdims() const |
const hsize_t * | get_chunkdims() const |
const hsize_t * | get_slicedims() const |
unsigned long | get_nextemptyslab() const |
unsigned long | dset_length() const |
char | access_mode() const |
void | reset_nextemptyslab() |
hsize_t * | dsetdims() |
Protected Functions
Name | |
---|---|
hid_t | get_dset_id() const |
Protected Attributes
Name | |
---|---|
const hid_t | hdftype_id DataSetInterfaceBase class member definitions. |
hid_t | dset_id |
unsigned long | dsetnextemptyslab |
unsigned long | virtualwriteposition |
Detailed Description
template <class T ,
std::size_t RECORDRANK,
std::size_t CHUNKLENGTH>
class Gambit::Printers::DataSetInterfaceBase;
Wrapper object to manage a single dataset.
Public Functions Documentation
function DataSetInterfaceBase
DataSetInterfaceBase()
Constructors.
function DataSetInterfaceBase
DataSetInterfaceBase(
hid_t location_id,
const std::string & name,
const std::size_t rdims[DSETRANK],
const bool resume,
const char access
)
function ~DataSetInterfaceBase
virtual ~DataSetInterfaceBase()
Do cleanup (close dataset)
function createDataSet
hid_t createDataSet(
hid_t location_id,
const std::string & name,
const std::size_t rdims[DSETRANK]
)
Create a (chunked) dataset.
function openDataSet
hid_t openDataSet(
hid_t location_id,
const std::string & name,
const std::size_t rdims[DSETRANK]
)
Open an existing dataset.
Open an existing dataset It is assumed that we are resuming a run and therefore know what format this dataset should have
function closeDataSet
void closeDataSet()
Close an open dataset.
Release resources associated with the underlying dataset.
function extend_dset
void extend_dset(
const unsigned long i
)
Extend dataset to nearest multiple of CHUNKLENGTH above supplied length.
function get_myname
inline std::string get_myname() const
function get_dsetrank
inline std::size_t get_dsetrank() const
function get_chunklength
inline std::size_t get_chunklength() const
function get_maxdsetdims
inline const hsize_t * get_maxdsetdims() const
function get_chunkdims
inline const hsize_t * get_chunkdims() const
function get_slicedims
inline const hsize_t * get_slicedims() const
function get_nextemptyslab
inline unsigned long get_nextemptyslab() const
function dset_length
inline unsigned long dset_length() const
function access_mode
inline char access_mode() const
function reset_nextemptyslab
inline void reset_nextemptyslab()
function dsetdims
inline hsize_t * dsetdims()
Protected Functions Documentation
function get_dset_id
inline hid_t get_dset_id() const
Protected Attributes Documentation
variable hdftype_id
static const hid_t hdftype_id = get_hdf5_data_type<T>::type();
DataSetInterfaceBase class member definitions.
variable dset_id
hid_t dset_id;
variable dsetnextemptyslab
unsigned long dsetnextemptyslab;
variable virtualwriteposition
unsigned long virtualwriteposition;
Updated on 2024-07-18 at 13:53:32 +0000