Group Class Reference#

DiFfRG: DiFfRG::hdf5::Group Class Reference
DiFfRG

#include <group.hh>

Public Member Functions

 Group ()=default
 
 Group (hid_t id)
 
hid_t id () const noexcept
 
bool valid () const noexcept
 
Group create_group (const std::string &name)
 
Group open_group (const std::string &name)
 
bool has_group (const std::string &name) const
 
bool has_dataset (const std::string &name) const
 
Dataset create_dataset (const std::string &name, const Datatype &type, const Dataspace &space)
 
Dataset create_chunked_dataset (const std::string &name, const Datatype &type, const Dataspace &space, const Dims &chunk)
 
Dataset open_dataset (const std::string &name)
 
void create_soft_link (const std::string &name, const std::string &target_path)
 
template<class T >
requires (!std::is_same_v<std::decay_t<T>, std::string>)
void write_attribute (const std::string &name, const T &value)
 
void write_attribute (const std::string &name, const std::string &value)
 
void write_attribute (const std::string &name, const char *value)
 
template<class T >
requires (!std::is_same_v<std::decay_t<T>, std::string>)
read_attribute (const std::string &name) const
 
template<class T >
requires (std::is_same_v<std::decay_t<T>, std::string>)
std::string read_attribute (const std::string &name) const
 
std::vector< std::string > child_names () const
 Names of all immediate children, in link-name order.
 
bool child_is_group (const std::string &name) const
 
bool child_is_dataset (const std::string &name) const
 

Static Public Member Functions

static Group take (hid_t id)
 

Private Member Functions

 Group (Handle h)
 
H5O_type_t child_kind (const std::string &name) const
 H5O_TYPE_UNKNOWN if the child does not exist (or is not an object).
 

Private Attributes

Handle h_
 

Constructor & Destructor Documentation

◆ Group() [1/3]

DiFfRG::hdf5::Group::Group ( )
default

◆ Group() [2/3]

DiFfRG::hdf5::Group::Group ( hid_t id)
inlineexplicit

◆ Group() [3/3]

DiFfRG::hdf5::Group::Group ( Handle h)
inlineexplicitprivate

Member Function Documentation

◆ child_is_dataset()

bool DiFfRG::hdf5::Group::child_is_dataset ( const std::string & name) const
inline

◆ child_is_group()

bool DiFfRG::hdf5::Group::child_is_group ( const std::string & name) const
inline

◆ child_kind()

H5O_type_t DiFfRG::hdf5::Group::child_kind ( const std::string & name) const
inlineprivate

H5O_TYPE_UNKNOWN if the child does not exist (or is not an object).

◆ child_names()

std::vector< std::string > DiFfRG::hdf5::Group::child_names ( ) const
inline

Names of all immediate children, in link-name order.

◆ create_chunked_dataset()

Dataset DiFfRG::hdf5::Group::create_chunked_dataset ( const std::string & name,
const Datatype & type,
const Dataspace & space,
const Dims & chunk )
inline

Create a chunked dataset. Pass an unlimited Dataspace for an appendable dataset.

◆ create_dataset()

Dataset DiFfRG::hdf5::Group::create_dataset ( const std::string & name,
const Datatype & type,
const Dataspace & space )
inline

◆ create_group()

Group DiFfRG::hdf5::Group::create_group ( const std::string & name)
inline

◆ create_soft_link()

void DiFfRG::hdf5::Group::create_soft_link ( const std::string & name,
const std::string & target_path )
inline

◆ has_dataset()

bool DiFfRG::hdf5::Group::has_dataset ( const std::string & name) const
inline

◆ has_group()

bool DiFfRG::hdf5::Group::has_group ( const std::string & name) const
inline

◆ id()

hid_t DiFfRG::hdf5::Group::id ( ) const
inlinenoexcept

◆ open_dataset()

Dataset DiFfRG::hdf5::Group::open_dataset ( const std::string & name)
inline

◆ open_group()

Group DiFfRG::hdf5::Group::open_group ( const std::string & name)
inline

◆ read_attribute() [1/2]

template<class T >
requires (!std::is_same_v<std::decay_t<T>, std::string>)
T DiFfRG::hdf5::Group::read_attribute ( const std::string & name) const
inline

◆ read_attribute() [2/2]

template<class T >
requires (std::is_same_v<std::decay_t<T>, std::string>)
std::string DiFfRG::hdf5::Group::read_attribute ( const std::string & name) const
inline

◆ take()

static Group DiFfRG::hdf5::Group::take ( hid_t id)
inlinestatic

◆ valid()

bool DiFfRG::hdf5::Group::valid ( ) const
inlinenoexcept

◆ write_attribute() [1/3]

void DiFfRG::hdf5::Group::write_attribute ( const std::string & name,
const char * value )
inline

◆ write_attribute() [2/3]

void DiFfRG::hdf5::Group::write_attribute ( const std::string & name,
const std::string & value )
inline

◆ write_attribute() [3/3]

template<class T >
requires (!std::is_same_v<std::decay_t<T>, std::string>)
void DiFfRG::hdf5::Group::write_attribute ( const std::string & name,
const T & value )
inline

Member Data Documentation

◆ h_

Handle DiFfRG::hdf5::Group::h_
private

The documentation for this class was generated from the following file:
  • /home/runner/work/DiFfRG_current/DiFfRG_current/DiFfRG/include/hdf5lib/group.hh