MPQC
3.0.0-alpha
|
A subset of File::Dataset. More...
#include <mpqc/file.hpp>
Public Types | |
typedef boost::remove_const< T_ >::type | T |
Public Member Functions | |
size_t | size () const |
Number of elements in the set. | |
const std::vector< range > & | extents () const |
The extents of the set in terms of ranges. | |
Dataspace< T > | operator[] (size_t i) |
Access sub-dataspace of rank-1. | |
Dataspace< T > | operator() (const std::vector< range > &r) |
Access sub-dataspace of the same rank. | |
template<class R , ... > | |
Dataspace< T > | operator() (const R &r,...) |
N-ary sub-dataspace access operators. More... | |
void | write (const T *buffer) |
Writes contiguous buffer into dataset. More... | |
void | read (T *buffer) const |
Reads contiguous buffer from dataset. More... | |
Friends | |
class | Dataset< T > |
A subset of File::Dataset.
Dataspace<T> mpqc::File::Dataspace< T_ >::operator() | ( | const R & | r, |
... | |||
) |
N-ary sub-dataspace access operators.
The parameters R should be either integral types (a single element) or of type mpqc::range (a range of elements) The method packs arguments into std::vector<range>
and calls the equivalent operator.
|
inline |
Reads contiguous buffer from dataset.
The size of buffer must be the same as size of dataspace This function is threadsafe
|
inline |
Writes contiguous buffer into dataset.
The size of buffer must be the same as size of dataspace This function is threadsafe