MPQC  3.0.0-alpha
mpqc::detail::File::Object Struct Reference

A reference-counted HDF5 handle object, superclass for eg File, Dataset, Attribute, etc. More...

#include <mpqc/file.hpp>

Inheritance diagram for mpqc::detail::File::Object:
mpqc::File::Dataset< double > mpqc::detail::File::Attribute mpqc::File mpqc::File::Dataset< T > mpqc::File::Group

Public Member Functions

 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 std::string filename (hid_t id)
 

Protected Member Functions

template<class F >
void update (hid_t id, F close, bool increment)
 

Protected Attributes

std::auto_ptr< Objectparent_
 
hid_t id_
 
void(* close_ )(hid_t)
 

Detailed Description

A reference-counted HDF5 handle object, superclass for eg File, Dataset, Attribute, etc.

Constructor & Destructor Documentation

◆ Object()

mpqc::detail::File::Object::Object ( const Object parent,
hid_t  id,
void(*)(hid_t)  close,
bool  increment 
)
inline
Parameters
parentParent object
idHDF5 id
closeFunction pointer called when reference count reaches 0
incrementFlag to increment (or not) the reference count

References Object().


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.