|
| Attribute | add_attribute (std::string name) |
| | Defines an attribute handle. The attribute is created when a value is written.
|
| |
| Attribute | add_attribute (const Attribute &a) |
| | Copies an attribute onto this variable.
|
| |
| Maybe< Attribute > | attribute (std::string name) const |
| | Looks up a variable attribute by name.
|
| |
| std::vector< Attribute > | attributes () const |
| | Returns all variable attributes.
|
| |
| bool | check_dimensions (const std::vector< std::string > &names) const |
| | Returns true when the variable dimensions match the supplied names exactly.
|
| |
| Variable | require_dimensions (const std::vector< std::string > &names) const |
| | Returns this variable or throws if its dimensions do not match.
|
| |
| void | copy_attributes (const Variable &v) |
| | Copies all attributes from another variable.
|
| |
| void | copy_values (const Variable &v) |
| | Copies raw values from another variable after checking shape and type size.
|
| |
| std::size_t | dimension_count () const |
| | Returns the number of dimensions.
|
| |
| std::vector< Dimension > | dimensions () const |
| | Returns the variable dimensions.
|
| |
| std::vector< std::size_t > | get_chunking () const |
| | Returns chunk sizes, or an empty vector for contiguous storage.
|
| |
| void | set_chunking (const std::vector< std::size_t > &chunks) |
| | Sets chunked storage, or contiguous storage when chunks is empty.
|
| |
| void | set_default_chunking () |
| | Lets NetCDF choose default chunk sizes.
|
| |
| std::pair< bool, int > | get_compression () const |
| | Returns shuffle status and deflate level, or -1 when deflate is disabled.
|
| |
| void | set_compression (bool shuffle_filter, int deflate_level) |
| | Sets shuffle and deflate compression.
|
| |
| int | get_endianness () const |
| | Returns the NetCDF endianness setting.
|
| |
| void | set_endianness (int endianness) |
| | Sets NC_ENDIAN_NATIVE, NC_ENDIAN_LITTLE, or NC_ENDIAN_BIG.
|
| |
| bool | get_checksum_enabled () const |
| | Returns true when Fletcher32 checksums are enabled.
|
| |
| void | set_checksum_enabled (bool v) |
| | Enables or disables Fletcher32 checksums.
|
| |
| template<typename T > |
| std::pair< bool, T > | get_fill () const |
| | Returns whether fill is enabled and the fill value.
|
| |
| template<typename T > |
| void | set_fill (T v) |
| | Enables fill and sets the fill value.
|
| |
| void | unset_fill () |
| | Disables fill for this variable.
|
| |
| Group | parent () const |
| | Returns the parent group.
|
| |
| void | rename (std::string name) |
| | Renames the variable in place.
|
| |
| std::vector< std::size_t > | sizes () const |
| | Returns the current size of each dimension.
|
| |
| std::size_t | size () const |
| | Returns the total number of elements.
|
| |
| template<int N> |
| std::size_t | size (const std::array< std::size_t, N > &start, const std::array< std::size_t, N > &count) const |
| | Returns the number of elements selected by a hyperslab count.
|
| |
| Variable | require_size (std::size_t size_p) const |
| | Returns this variable or throws if its total element count differs.
|
| |
| template<typename T > |
| std::vector< T > | get () const |
| | Reads the whole variable as a vector.
|
| |
| template<typename T > |
| T | get (const std::size_t *index) const |
| | Reads one element by raw NetCDF index pointer.
|
| |
| template<typename T > |
| std::vector< T > | get (const std::size_t *start, const std::size_t *count) const |
| | Reads a hyperslab by raw NetCDF start/count pointers.
|
| |
| template<typename T > |
| std::vector< T > | get (const std::size_t *start, const std::size_t *count, const std::ptrdiff_t *stride) const |
| | Reads a strided hyperslab by raw NetCDF pointers.
|
| |
| template<typename T , int N> |
| T | get (const std::array< std::size_t, N > &index) const |
| | Reads one element by fixed-rank index.
|
| |
| template<typename T , int N> |
| std::vector< T > | get (const std::array< std::size_t, N > &start, const std::array< std::size_t, N > &count) const |
| | Reads a fixed-rank hyperslab.
|
| |
| template<typename T , int N> |
| std::vector< T > | get (const std::array< std::size_t, N > &start, const std::array< std::size_t, N > &count, const std::array< std::ptrdiff_t, N > &stride) const |
| | Reads a fixed-rank strided hyperslab.
|
| |
| template<typename T > |
| void | read (T *v) const |
| | Reads the whole variable into caller-provided storage.
|
| |
| template<typename T > |
| void | read (T *v, const std::size_t *index) const |
| | Reads one element into caller-provided storage.
|
| |
| template<typename T > |
| void | read (T *v, const std::size_t *start, const std::size_t *count) const |
| | Reads a hyperslab into caller-provided storage.
|
| |
| template<typename T > |
| void | read (T *v, const std::size_t *start, const std::size_t *count, const std::ptrdiff_t *stride) const |
| | Reads a strided hyperslab into caller-provided storage.
|
| |
| template<typename T > |
| void | read (T *v, const std::size_t *start, const std::size_t *count, const std::ptrdiff_t *stride, const std::ptrdiff_t *imap) const |
| | Reads mapped data into caller-provided storage.
|
| |
| template<typename T , int N> |
| void | read (T *v, const std::array< std::size_t, N > &index) const |
| | Reads one fixed-rank element into caller-provided storage.
|
| |
| template<typename T , int N> |
| void | read (T *v, const std::array< std::size_t, N > &start, const std::array< std::size_t, N > &count) const |
| | Reads a fixed-rank hyperslab into caller-provided storage.
|
| |
| template<typename T , int N> |
| void | read (T *v, const std::array< std::size_t, N > &start, const std::array< std::size_t, N > &count, const std::array< std::ptrdiff_t, N > &stride) const |
| | Reads a fixed-rank strided hyperslab into caller-provided storage.
|
| |
| template<typename T , int N> |
| void | read (T *v, const std::array< std::size_t, N > &start, const std::array< std::size_t, N > &count, const std::array< std::ptrdiff_t, N > &stride, const std::array< std::ptrdiff_t, N > &imap) const |
| | Reads fixed-rank mapped data into caller-provided storage.
|
| |
| template<typename T > |
| void | set (const std::vector< T > &v) |
| | Writes the whole variable from a vector.
|
| |
| template<typename T > |
| std::enable_if< Type< T >::is_atomic||std::is_same< constchar *, T >::value||std::is_same< char *, T >::value, void >::type | set (T v, const std::size_t *index) |
| | Writes one value by raw NetCDF index pointer.
|
| |
| template<typename T > |
| std::enable_if<!Type< T >::is_atomic &&!std::is_same< constchar *, T >::value &&!std::is_same< char *, T >::value, void >::type | set (const T &v, const std::size_t *index) |
| | Writes one non-atomic value by raw NetCDF index pointer.
|
| |
| template<typename T > |
| void | set (const std::vector< T > &v, const std::size_t *start, const std::size_t *count) |
| | Writes a hyperslab from a vector.
|
| |
| template<typename T > |
| void | set (const std::vector< T > &v, const std::size_t *start, const std::size_t *count, const std::ptrdiff_t *stride) |
| | Writes a strided hyperslab from a vector.
|
| |
| template<typename T > |
| void | set (const std::vector< T > &v, const std::size_t *start, const std::size_t *count, const std::ptrdiff_t *stride, const std::ptrdiff_t *imap) |
| | Writes mapped data from a vector.
|
| |
| template<typename T , int N> |
| void | set (const T v, const std::array< std::size_t, N > &index) |
| | Writes one fixed-rank element.
|
| |
| template<typename T , int N> |
| void | set (const std::vector< T > &v, const std::array< std::size_t, N > &start, const std::array< std::size_t, N > &count) |
| | Writes a fixed-rank hyperslab from a vector.
|
| |
| template<typename T , int N> |
| void | set (const std::vector< T > &v, const std::array< std::size_t, N > &start, const std::array< std::size_t, N > &count, const std::array< std::ptrdiff_t, N > &stride) |
| | Writes a fixed-rank strided hyperslab from a vector.
|
| |
| template<typename T , int N> |
| void | set (const std::vector< T > &v, const std::array< std::size_t, N > &start, const std::array< std::size_t, N > &count, const std::array< std::ptrdiff_t, N > &stride, const std::array< std::ptrdiff_t, N > &imap) |
| | Writes fixed-rank mapped data from a vector.
|
| |
| template<typename T > |
| void | write (const T *v) |
| | Writes the whole variable from caller-provided storage.
|
| |
| template<typename T > |
| void | write (const T *v, const std::size_t *index) |
| | Writes one element from caller-provided storage.
|
| |
| template<typename T > |
| void | write (const T *v, const std::size_t *start, const std::size_t *count) |
| | Writes a hyperslab from caller-provided storage.
|
| |
| template<typename T > |
| void | write (const T *v, const std::size_t *start, const std::size_t *count, const std::ptrdiff_t *stride) |
| | Writes a strided hyperslab from caller-provided storage.
|
| |
| template<typename T > |
| void | write (const T *v, const std::size_t *start, const std::size_t *count, const std::ptrdiff_t *stride, const std::ptrdiff_t *imap) |
| | Writes mapped data from caller-provided storage.
|
| |
| template<typename T , int N> |
| void | write (const T *v, const std::array< std::size_t, N > &index) |
| | Writes one fixed-rank element from caller-provided storage.
|
| |
| template<typename T , int N> |
| void | write (const T *v, const std::array< std::size_t, N > &start, const std::array< std::size_t, N > &count) |
| | Writes a fixed-rank hyperslab from caller-provided storage.
|
| |
| template<typename T , int N> |
| void | write (const T *v, const std::array< std::size_t, N > &start, const std::array< std::size_t, N > &count, const std::array< std::ptrdiff_t, N > &stride) |
| | Writes a fixed-rank strided hyperslab from caller-provided storage.
|
| |
| template<typename T , int N> |
| void | write (const T *v, const std::array< std::size_t, N > &start, const std::array< std::size_t, N > &count, const std::array< std::ptrdiff_t, N > &stride, const std::array< std::ptrdiff_t, N > &imap) |
| | Writes fixed-rank mapped data from caller-provided storage.
|
| |
| nc_type | type () const |
| | Returns the NetCDF type id of the variable.
|
| |
| std::string | type_name () const |
| | Returns the NetCDF type name of the variable.
|
| |
| Variable | require_type (const std::string &name) const |
| | Returns this variable or throws if its NetCDF type name differs.
|
| |
| template<typename T > |
| Variable | require_compound (std::size_t fieldscount) const |
| | Returns this variable or throws if its user-defined type is not a matching compound type.
|
| |
| Maybe< UserType > | user_type () const |
| | Returns the user-defined type for this variable, if it has one.
|
| |
| template<> |
| std::vector< std::string > | get () const |
| |
| template<> |
| std::string | get (const std::size_t *index) const |
| |
| template<> |
| std::vector< std::string > | get (const std::size_t *start, const std::size_t *count) const |
| |
| template<> |
| std::vector< std::string > | get (const std::size_t *start, const std::size_t *count, const std::ptrdiff_t *stride) const |
| |
| template<> |
| void | set (const std::vector< std::string > &v) |
| |
| template<> |
| void | set (const std::string &v, const std::size_t *index) |
| |
| template<> |
| void | set (const char *v, const std::size_t *index) |
| |
| template<> |
| void | set (const std::vector< std::string > &v, const std::size_t *start, const std::size_t *count) |
| |
| template<> |
| void | set (const std::vector< std::string > &v, const std::size_t *start, const std::size_t *count, const std::ptrdiff_t *stride) |
| |
| template<> |
| void | set (const std::vector< std::string > &v, const std::size_t *start, const std::size_t *count, const std::ptrdiff_t *stride, const std::ptrdiff_t *imap) |
| |
| const std::string & | name () const |
| |
| int | id () const |
| |