netcdfpp
Header-only NetCDF C++ wrapper
Loading...
Searching...
No Matches
Public Member Functions | Friends | List of all members
netCDF::Variable Class Referencefinal

NetCDF variable. More...

#include <netcdfpp.h>

Public Member Functions

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< Attributeattribute (std::string name) const
 Looks up a variable attribute by name.
 
std::vector< Attributeattributes () 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< Dimensiondimensions () 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 >
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>
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< UserTypeuser_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)
 
- Public Member Functions inherited from netCDF::detail::Object
const std::string & name () const
 
int id () const
 

Friends

class Group
 
class Maybe< Variable >
 

Additional Inherited Members

- Protected Member Functions inherited from netCDF::detail::Object
 Object (std::shared_ptr< Path > path_p)
 
void raise_error (int ret) const
 
void check (int ret) const
 
- Static Protected Member Functions inherited from netCDF::detail::Object
static std::string get_error_message (int ret)
 
- Protected Attributes inherited from netCDF::detail::Object
std::shared_ptr< Pathpath
 

Detailed Description

NetCDF variable.

Member Function Documentation

◆ add_attribute() [1/2]

Attribute netCDF::Variable::add_attribute ( const Attribute a)
inline

Copies an attribute onto this variable.

◆ add_attribute() [2/2]

Attribute netCDF::Variable::add_attribute ( std::string  name)
inline

Defines an attribute handle. The attribute is created when a value is written.

◆ attribute()

Maybe< Attribute > netCDF::Variable::attribute ( std::string  name) const
inline

Looks up a variable attribute by name.

◆ attributes()

std::vector< Attribute > netCDF::Variable::attributes ( ) const
inline

Returns all variable attributes.

◆ check_dimensions()

bool netCDF::Variable::check_dimensions ( const std::vector< std::string > &  names) const
inline

Returns true when the variable dimensions match the supplied names exactly.

◆ copy_attributes()

void netCDF::Variable::copy_attributes ( const Variable v)
inline

Copies all attributes from another variable.

◆ copy_values()

void netCDF::Variable::copy_values ( const Variable v)
inline

Copies raw values from another variable after checking shape and type size.

◆ dimension_count()

std::size_t netCDF::Variable::dimension_count ( ) const
inline

Returns the number of dimensions.

◆ dimensions()

std::vector< Dimension > netCDF::Variable::dimensions ( ) const
inline

Returns the variable dimensions.

◆ get() [1/11]

template<typename T >
std::vector< T > netCDF::Variable::get ( ) const
inline

Reads the whole variable as a vector.

◆ get() [2/11]

template<>
std::vector< std::string > netCDF::Variable::get ( ) const
inline

◆ get() [3/11]

template<typename T , int N>
T netCDF::Variable::get ( const std::array< std::size_t, N > &  index) const
inline

Reads one element by fixed-rank index.

◆ get() [4/11]

template<typename T , int N>
std::vector< T > netCDF::Variable::get ( const std::array< std::size_t, N > &  start,
const std::array< std::size_t, N > &  count 
) const
inline

Reads a fixed-rank hyperslab.

◆ get() [5/11]

template<typename T , int N>
std::vector< T > netCDF::Variable::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
inline

Reads a fixed-rank strided hyperslab.

◆ get() [6/11]

template<typename T >
T netCDF::Variable::get ( const std::size_t *  index) const
inline

Reads one element by raw NetCDF index pointer.

◆ get() [7/11]

template<>
std::string netCDF::Variable::get ( const std::size_t *  index) const
inline

◆ get() [8/11]

template<typename T >
std::vector< T > netCDF::Variable::get ( const std::size_t *  start,
const std::size_t *  count 
) const
inline

Reads a hyperslab by raw NetCDF start/count pointers.

◆ get() [9/11]

template<>
std::vector< std::string > netCDF::Variable::get ( const std::size_t *  start,
const std::size_t *  count 
) const
inline

◆ get() [10/11]

template<typename T >
std::vector< T > netCDF::Variable::get ( const std::size_t *  start,
const std::size_t *  count,
const std::ptrdiff_t *  stride 
) const
inline

Reads a strided hyperslab by raw NetCDF pointers.

◆ get() [11/11]

template<>
std::vector< std::string > netCDF::Variable::get ( const std::size_t *  start,
const std::size_t *  count,
const std::ptrdiff_t *  stride 
) const
inline

◆ get_checksum_enabled()

bool netCDF::Variable::get_checksum_enabled ( ) const
inline

Returns true when Fletcher32 checksums are enabled.

◆ get_chunking()

std::vector< std::size_t > netCDF::Variable::get_chunking ( ) const
inline

Returns chunk sizes, or an empty vector for contiguous storage.

◆ get_compression()

std::pair< bool, int > netCDF::Variable::get_compression ( ) const
inline

Returns shuffle status and deflate level, or -1 when deflate is disabled.

◆ get_endianness()

int netCDF::Variable::get_endianness ( ) const
inline

Returns the NetCDF endianness setting.

◆ get_fill()

template<typename T >
std::pair< bool, T > netCDF::Variable::get_fill ( ) const
inline

Returns whether fill is enabled and the fill value.

◆ parent()

Group netCDF::Variable::parent ( ) const
inline

Returns the parent group.

◆ read() [1/9]

template<typename T >
void netCDF::Variable::read ( T *  v) const
inline

Reads the whole variable into caller-provided storage.

◆ read() [2/9]

template<typename T , int N>
void netCDF::Variable::read ( T *  v,
const std::array< std::size_t, N > &  index 
) const
inline

Reads one fixed-rank element into caller-provided storage.

◆ read() [3/9]

template<typename T , int N>
void netCDF::Variable::read ( T *  v,
const std::array< std::size_t, N > &  start,
const std::array< std::size_t, N > &  count 
) const
inline

Reads a fixed-rank hyperslab into caller-provided storage.

◆ read() [4/9]

template<typename T , int N>
void netCDF::Variable::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
inline

Reads a fixed-rank strided hyperslab into caller-provided storage.

◆ read() [5/9]

template<typename T , int N>
void netCDF::Variable::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
inline

Reads fixed-rank mapped data into caller-provided storage.

◆ read() [6/9]

template<typename T >
void netCDF::Variable::read ( T *  v,
const std::size_t *  index 
) const
inline

Reads one element into caller-provided storage.

◆ read() [7/9]

template<typename T >
void netCDF::Variable::read ( T *  v,
const std::size_t *  start,
const std::size_t *  count 
) const
inline

Reads a hyperslab into caller-provided storage.

◆ read() [8/9]

template<typename T >
void netCDF::Variable::read ( T *  v,
const std::size_t *  start,
const std::size_t *  count,
const std::ptrdiff_t *  stride 
) const
inline

Reads a strided hyperslab into caller-provided storage.

◆ read() [9/9]

template<typename T >
void netCDF::Variable::read ( T *  v,
const std::size_t *  start,
const std::size_t *  count,
const std::ptrdiff_t *  stride,
const std::ptrdiff_t *  imap 
) const
inline

Reads mapped data into caller-provided storage.

◆ rename()

void netCDF::Variable::rename ( std::string  name)
inline

Renames the variable in place.

◆ require_compound()

template<typename T >
Variable netCDF::Variable::require_compound ( std::size_t  fieldscount) const
inline

Returns this variable or throws if its user-defined type is not a matching compound type.

◆ require_dimensions()

Variable netCDF::Variable::require_dimensions ( const std::vector< std::string > &  names) const
inline

Returns this variable or throws if its dimensions do not match.

◆ require_size()

Variable netCDF::Variable::require_size ( std::size_t  size_p) const
inline

Returns this variable or throws if its total element count differs.

◆ require_type()

Variable netCDF::Variable::require_type ( const std::string &  name) const
inline

Returns this variable or throws if its NetCDF type name differs.

◆ set() [1/16]

template<>
void netCDF::Variable::set ( const char *  v,
const std::size_t *  index 
)
inline

◆ set() [2/16]

template<>
void netCDF::Variable::set ( const std::string &  v,
const std::size_t *  index 
)
inline

◆ set() [3/16]

template<>
void netCDF::Variable::set ( const std::vector< std::string > &  v)
inline

◆ set() [4/16]

template<>
void netCDF::Variable::set ( const std::vector< std::string > &  v,
const std::size_t *  start,
const std::size_t *  count 
)
inline

◆ set() [5/16]

template<>
void netCDF::Variable::set ( const std::vector< std::string > &  v,
const std::size_t *  start,
const std::size_t *  count,
const std::ptrdiff_t *  stride 
)
inline

◆ set() [6/16]

template<>
void netCDF::Variable::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 
)
inline

◆ set() [7/16]

template<typename T >
void netCDF::Variable::set ( const std::vector< T > &  v)
inline

Writes the whole variable from a vector.

◆ set() [8/16]

template<typename T , int N>
void netCDF::Variable::set ( const std::vector< T > &  v,
const std::array< std::size_t, N > &  start,
const std::array< std::size_t, N > &  count 
)
inline

Writes a fixed-rank hyperslab from a vector.

◆ set() [9/16]

template<typename T , int N>
void netCDF::Variable::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 
)
inline

Writes a fixed-rank strided hyperslab from a vector.

◆ set() [10/16]

template<typename T , int N>
void netCDF::Variable::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 
)
inline

Writes fixed-rank mapped data from a vector.

◆ set() [11/16]

template<typename T >
void netCDF::Variable::set ( const std::vector< T > &  v,
const std::size_t *  start,
const std::size_t *  count 
)
inline

Writes a hyperslab from a vector.

◆ set() [12/16]

template<typename T >
void netCDF::Variable::set ( const std::vector< T > &  v,
const std::size_t *  start,
const std::size_t *  count,
const std::ptrdiff_t *  stride 
)
inline

Writes a strided hyperslab from a vector.

◆ set() [13/16]

template<typename T >
void netCDF::Variable::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 
)
inline

Writes mapped data from a vector.

◆ set() [14/16]

template<typename T >
std::enable_if<!Type< T >::is_atomic &&!std::is_same< constchar *, T >::value &&!std::is_same< char *, T >::value, void >::type netCDF::Variable::set ( const T &  v,
const std::size_t *  index 
)
inline

Writes one non-atomic value by raw NetCDF index pointer.

◆ set() [15/16]

template<typename T , int N>
void netCDF::Variable::set ( const T  v,
const std::array< std::size_t, N > &  index 
)
inline

Writes one fixed-rank element.

◆ set() [16/16]

template<typename T >
std::enable_if< Type< T >::is_atomic||std::is_same< constchar *, T >::value||std::is_same< char *, T >::value, void >::type netCDF::Variable::set ( v,
const std::size_t *  index 
)
inline

Writes one value by raw NetCDF index pointer.

◆ set_checksum_enabled()

void netCDF::Variable::set_checksum_enabled ( bool  v)
inline

Enables or disables Fletcher32 checksums.

◆ set_chunking()

void netCDF::Variable::set_chunking ( const std::vector< std::size_t > &  chunks)
inline

Sets chunked storage, or contiguous storage when chunks is empty.

◆ set_compression()

void netCDF::Variable::set_compression ( bool  shuffle_filter,
int  deflate_level 
)
inline

Sets shuffle and deflate compression.

◆ set_default_chunking()

void netCDF::Variable::set_default_chunking ( )
inline

Lets NetCDF choose default chunk sizes.

◆ set_endianness()

void netCDF::Variable::set_endianness ( int  endianness)
inline

Sets NC_ENDIAN_NATIVE, NC_ENDIAN_LITTLE, or NC_ENDIAN_BIG.

◆ set_fill()

template<typename T >
void netCDF::Variable::set_fill ( v)
inline

Enables fill and sets the fill value.

◆ size() [1/2]

std::size_t netCDF::Variable::size ( ) const
inline

Returns the total number of elements.

◆ size() [2/2]

template<int N>
std::size_t netCDF::Variable::size ( const std::array< std::size_t, N > &  start,
const std::array< std::size_t, N > &  count 
) const
inline

Returns the number of elements selected by a hyperslab count.

◆ sizes()

std::vector< std::size_t > netCDF::Variable::sizes ( ) const
inline

Returns the current size of each dimension.

◆ type()

nc_type netCDF::Variable::type ( ) const
inline

Returns the NetCDF type id of the variable.

◆ type_name()

std::string netCDF::Variable::type_name ( ) const
inline

Returns the NetCDF type name of the variable.

◆ unset_fill()

void netCDF::Variable::unset_fill ( )
inline

Disables fill for this variable.

◆ user_type()

Maybe< UserType > netCDF::Variable::user_type ( ) const
inline

Returns the user-defined type for this variable, if it has one.

◆ write() [1/9]

template<typename T >
void netCDF::Variable::write ( const T *  v)
inline

Writes the whole variable from caller-provided storage.

◆ write() [2/9]

template<typename T , int N>
void netCDF::Variable::write ( const T *  v,
const std::array< std::size_t, N > &  index 
)
inline

Writes one fixed-rank element from caller-provided storage.

◆ write() [3/9]

template<typename T , int N>
void netCDF::Variable::write ( const T *  v,
const std::array< std::size_t, N > &  start,
const std::array< std::size_t, N > &  count 
)
inline

Writes a fixed-rank hyperslab from caller-provided storage.

◆ write() [4/9]

template<typename T , int N>
void netCDF::Variable::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 
)
inline

Writes a fixed-rank strided hyperslab from caller-provided storage.

◆ write() [5/9]

template<typename T , int N>
void netCDF::Variable::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 
)
inline

Writes fixed-rank mapped data from caller-provided storage.

◆ write() [6/9]

template<typename T >
void netCDF::Variable::write ( const T *  v,
const std::size_t *  index 
)
inline

Writes one element from caller-provided storage.

◆ write() [7/9]

template<typename T >
void netCDF::Variable::write ( const T *  v,
const std::size_t *  start,
const std::size_t *  count 
)
inline

Writes a hyperslab from caller-provided storage.

◆ write() [8/9]

template<typename T >
void netCDF::Variable::write ( const T *  v,
const std::size_t *  start,
const std::size_t *  count,
const std::ptrdiff_t *  stride 
)
inline

Writes a strided hyperslab from caller-provided storage.

◆ write() [9/9]

template<typename T >
void netCDF::Variable::write ( const T *  v,
const std::size_t *  start,
const std::size_t *  count,
const std::ptrdiff_t *  stride,
const std::ptrdiff_t *  imap 
)
inline

Writes mapped data from caller-provided storage.

Friends And Related Symbol Documentation

◆ Group

friend class Group
friend

◆ Maybe< Variable >

friend class Maybe< Variable >
friend

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