MPQC  3.0.0-alpha
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. More...
 
- 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. More...
 
- 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 Sun Jan 26 2020 23:24:02 for MPQC 3.0.0-alpha using the documentation package Doxygen 1.8.16.