MPQC 3.0.0-alpha
Loading...
Searching...
No Matches
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::File mpqc::File::Dataset< T > mpqc::File::Group mpqc::detail::File::Attribute

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(* close )(hid_t),
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 Wed Sep 25 2024 02:45:31 for MPQC 3.0.0-alpha using the documentation package Doxygen 1.12.0.