h5cpp  0.6.1
A modern C++ wrapper for the HDF5 C library
hdf5::dataspace::Scalar Class Reference

scalar dataspace More...

#include <scalar.hpp>

Inheritance diagram for hdf5::dataspace::Scalar:
Collaboration diagram for hdf5::dataspace::Scalar:

Public Member Functions

 Scalar ()
 default constructor More...
 
 Scalar (const Dataspace &space)
 constructor More...
 
- Public Member Functions inherited from hdf5::dataspace::Dataspace
virtual ~Dataspace ()
 destructor More...
 
 Dataspace ()
 default constructor More...
 
 Dataspace (ObjectHandle &&handle)
 constructor More...
 
 Dataspace (Dataspace &&type)=default
 move constructor More...
 
 Dataspace (const Dataspace &space)
 copy constructor More...
 
Dataspaceoperator= (const Dataspace &space)
 copy assignment More...
 
virtual hssize_t size () const
 number of elements in the dataspace More...
 
 operator hid_t () const
 allows explicit conversion to hid_t More...
 
Type type () const
 get the type of the dataspace More...
 
bool is_valid () const
 check validity of the dataspace More...
 

Additional Inherited Members

- Public Attributes inherited from hdf5::dataspace::Dataspace
SelectionManager selection
 access to selection manager More...
 
- Protected Member Functions inherited from hdf5::dataspace::Dataspace
 Dataspace (Type type)
 

Detailed Description

Dataspace for a single value

Constructor & Destructor Documentation

◆ Scalar() [1/2]

hdf5::dataspace::Scalar::Scalar ( )

◆ Scalar() [2/2]

hdf5::dataspace::Scalar::Scalar ( const Dataspace space)

Construct a scalar dataspace from its base class. In this case. If the Dataspace instance is not a scalar instance an exception will be thrown.

Exceptions
std::runtime_errorin case of an error
Parameters
spacereference to a Dataspace instance

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