point selection implementation
#include <points.hpp>
|
| | Points ()=default |
| | default constructor
|
| |
| | ~Points () override=default |
| | destructor
|
| |
| | Points (size_t rank) |
| | constructor
|
| |
| | Points (const std::vector< std::vector< hsize_t > > &coord_set) |
| | constructor
|
| |
| size_t | rank () const |
| | get the number of dimensions
|
| |
| size_t | points () const |
| | get the number of points in the selection
|
| |
| void | add (const std::vector< hsize_t > &coords) |
| | add a new point to the selection
|
| |
| void | add_set (const std::vector< std::vector< hsize_t > > &coord_set) |
| | add point set to the selection
|
| |
| void | apply (const Dataspace &space, SelectionOperation ops) const override |
| | apply the selection to a dataspace
|
| |
| virtual size_t | size () const override |
| | get the selection size
|
| |
| virtual SelectionType | type () const override |
| | get the selection type
|
| |
| virtual Dimensions | dimensions () const override |
| | get current dimensions
|
| |
| | Selection ()=default |
| | default constructor
|
| |
| | Selection (const Selection &)=default |
| | copy constructor
|
| |
| virtual | ~Selection () |
| | destructor
|
| |
◆ Points() [1/3]
| hdf5::dataspace::Points::Points |
( |
| ) |
|
|
default |
We use the compiler provided default implementation.
◆ ~Points()
| hdf5::dataspace::Points::~Points |
( |
| ) |
|
|
overridedefault |
Use the compiler provided default implementation.
◆ Points() [2/3]
| hdf5::dataspace::Points::Points |
( |
size_t |
rank | ) |
|
|
explicit |
Create a new point selection or a given rank
- Parameters
-
| rank | the number of dimensions of the selection |
◆ Points() [3/3]
| hdf5::dataspace::Points::Points |
( |
const std::vector< std::vector< hsize_t > > & |
coord_set | ) |
|
|
explicit |
Create a point selection from a set of selection coordinates. The number of dimensions of the first coordinates determines the rank of the selection.
- Parameters
-
| coord_set | set of selection coordinates |
◆ add()
| void hdf5::dataspace::Points::add |
( |
const std::vector< hsize_t > & |
coords | ) |
|
- Parameters
-
| coords | index coordinates of the point |
- Exceptions
-
| runtime_error | in the case of a failure |
◆ add_set()
| void hdf5::dataspace::Points::add_set |
( |
const std::vector< std::vector< hsize_t > > & |
coord_set | ) |
|
- Parameters
-
- Exceptions
-
| runtime_error | in the case of a failure |
◆ apply()
- Parameters
-
| space | reference to the dataspace onto which the selection should be applied |
| ops | opertion used to apply the selection |
Implements hdf5::dataspace::Selection.
◆ dimensions()
| virtual Dimensions hdf5::dataspace::Points::dimensions |
( |
| ) |
const |
|
overridevirtual |
Get a number of elements along each dimension a selection spans this is particularly useful in the case of a Hyperslab
- Exceptions
-
| std::runtime_error | in case of a failure |
- Returns
- the selection dimentsions
Implements hdf5::dataspace::Selection.
◆ points()
| size_t hdf5::dataspace::Points::points |
( |
| ) |
const |
- Returns
- number of points as unsigned integer
◆ rank()
| size_t hdf5::dataspace::Points::rank |
( |
| ) |
const |
- Returns
- number of dimensions of the selection.
◆ size()
| virtual size_t hdf5::dataspace::Points::size |
( |
| ) |
const |
|
overridevirtual |
Get the total number of elements adressed by an individual selection
- Exceptions
-
| std::runtime_error | in case of a failure |
- Returns
- the selection type enumerator
Implements hdf5::dataspace::Selection.
◆ type()
The documentation for this class was generated from the following file: