MPQC 3.0.0-alpha
Loading...
Searching...
No Matches
mpqc::File::Group Struct Reference

Directory-like container that holds datasets and other groups. More...

#include <mpqc/file.hpp>

Inheritance diagram for mpqc::File::Group:
mpqc::detail::File::Object

Public Member Functions

template<typename T , typename Dims >
Dataset< T > dataset (const std::string &name, const Dims &dims)
 Create or open Dataset.
 
- Public Member Functions inherited from mpqc::detail::File::Object
 Object ()
 Default constructor with an invalid handle.
 
 Object (const Object &o)
 Copy constructor.
 
 Object (const Object &parent, hid_t id, void(*close)(hid_t), bool increment)
 
void operator= (const Object &o)
 
hid_t id () const
 
const Objectparent () const
 
hid_t file () const
 
 operator bool () const
 

Static Public Member Functions

static Group create (Object parent, const std::string &name)
 Create a group.
 
- Static Public Member Functions inherited from mpqc::detail::File::Object
static std::string filename (hid_t id)
 

Additional Inherited Members

- Protected Member Functions inherited from mpqc::detail::File::Object
template<class F >
void update (hid_t id, F close, bool increment)
 
- Protected Attributes inherited from mpqc::detail::File::Object
std::auto_ptr< Objectparent_
 
hid_t id_
 
void(* close_ )(hid_t)
 

Detailed Description

Directory-like container that holds datasets and other groups.

Member Function Documentation

◆ create()

static Group mpqc::File::Group::create ( Object parent,
const std::string & name )
inlinestatic

Create a group.

Parameters
parentgroup parent
namegroup name
Warning
NOT threadsafe

Referenced by mpqc::File::group().

◆ dataset()

template<typename T , typename Dims >
Dataset< T > mpqc::File::Group::dataset ( const std::string & name,
const Dims & dims )
inline

Create or open Dataset.

Template Parameters
TDataset type
Parameters
nameDataset name
dimsDataset dimensions

The documentation for this struct was generated from the following file:

Generated at Wed Sep 25 2024 02:45:31 for MPQC 3.0.0-alpha using the documentation package Doxygen 1.12.0.