Nektar++
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | Private Member Functions | Friends | List of all members
Nektar::LibUtilities::H5::Group Class Reference

HDF5 Group wrapper. More...

#include <H5.h>

Inheritance diagram for Nektar::LibUtilities::H5::Group:
Inheritance graph
[legend]
Collaboration diagram for Nektar::LibUtilities::H5::Group:
Collaboration graph
[legend]

Public Member Functions

 ~Group ()
 
void Close ()
 
virtual hsize_t GetNumElements ()
 
CanHaveAttributesSharedPtr operator[] (hsize_t idx)
 
CanHaveAttributesSharedPtr operator[] (const std::string &key)
 
- Public Member Functions inherited from Nektar::LibUtilities::H5::CanHaveAttributes
AttributeSharedPtr CreateAttribute (const std::string &name, DataTypeSharedPtr type, DataSpaceSharedPtr space)
 
AttributeSharedPtr OpenAttribute (const std::string &name)
 
template<class T >
void SetAttribute (const std::string &name, const T &value)
 
template<class T >
void SetAttribute (const std::string &name, const std::vector< T > &value)
 
template<class T >
void GetAttribute (const std::string &name, T &value)
 
template<class T >
void GetAttribute (const std::string &name, std::vector< T > &value)
 
int GetNumAttr () const
 
AttrIterator attr_begin ()
 
AttrIterator attr_end ()
 
- Public Member Functions inherited from Nektar::LibUtilities::H5::Object
hid_t GetId () const
 
 operator hid_t () const
 
- Public Member Functions inherited from Nektar::LibUtilities::H5::CanHaveGroupsDataSets
GroupSharedPtr CreateGroup (const std::string &name, PListSharedPtr createPL=PList::Default(), PListSharedPtr accessPL=PList::Default())
 
DataSetSharedPtr CreateDataSet (const std::string &name, DataTypeSharedPtr type, DataSpaceSharedPtr space, PListSharedPtr createPL=PList::Default(), PListSharedPtr accessPL=PList::Default())
 
template<class T >
DataSetSharedPtr CreateWriteDataSet (const std::string &name, const std::vector< T > &data, PListSharedPtr createPL=PList::Default(), PListSharedPtr accessPL=PList::Default())
 
GroupSharedPtr OpenGroup (const std::string &name, PListSharedPtr accessPL=PList::Default()) const
 
DataSetSharedPtr OpenDataSet (const std::string &name, PListSharedPtr accessPL=PList::Default()) const
 
LinkIterator begin ()
 
LinkIterator end ()
 

Private Member Functions

 Group (hid_t id)
 

Friends

class CanHaveGroupsDataSets
 

Additional Inherited Members

- Protected Member Functions inherited from Nektar::LibUtilities::H5::Object
 Object ()
 
 Object (hid_t id)
 
virtual ~Object ()
 
- Protected Attributes inherited from Nektar::LibUtilities::H5::Object
hid_t m_Id
 

Detailed Description

HDF5 Group wrapper.

Definition at line 441 of file H5.h.

Constructor & Destructor Documentation

Nektar::LibUtilities::H5::Group::~Group ( )

Definition at line 590 of file H5.cpp.

References Close().

591 {
592  Close();
593 }
Nektar::LibUtilities::H5::Group::Group ( hid_t  id)
private

Definition at line 586 of file H5.cpp.

586  : Object(id)
587 {
588 }

Member Function Documentation

void Nektar::LibUtilities::H5::Group::Close ( )
virtual

Implements Nektar::LibUtilities::H5::Object.

Definition at line 595 of file H5.cpp.

References H5_CALL.

Referenced by ~Group().

596 {
597  H5_CALL(H5Gclose, (m_Id));
598  m_Id = H5I_INVALID_HID;
599 }
#define H5_CALL(func, args)
Definition: H5.h:68
hsize_t Nektar::LibUtilities::H5::Group::GetNumElements ( )
virtual

Implements Nektar::LibUtilities::H5::CanHaveGroupsDataSets.

Definition at line 601 of file H5.cpp.

References H5_CALL.

602 {
603  H5G_info_t info;
604  H5_CALL(H5Gget_info, (m_Id, &info));
605  return info.nlinks;
606 }
#define H5_CALL(func, args)
Definition: H5.h:68
CanHaveAttributesSharedPtr Nektar::LibUtilities::H5::Group::operator[] ( hsize_t  idx)
CanHaveAttributesSharedPtr Nektar::LibUtilities::H5::Group::operator[] ( const std::string &  key)

Friends And Related Function Documentation

friend class CanHaveGroupsDataSets
friend

Definition at line 452 of file H5.h.