16 #include "atlas/array/ArrayShape.h" 17 #include "atlas/array/DataType.h" 18 #include "atlas/io/Metadata.h" 30 static std::string type() {
return "array"; }
45 int rank()
const {
return int( shape_.size() ); }
47 int shape(
int i )
const;
49 const ArrayShape& shape()
const {
return shape_; }
51 DataType datatype()
const {
return datatype_; }
55 size_t bytes()
const {
return size() * datatype_.size(); }
Definition: ArrayShape.h:33
Definition: DataType.h:40
Contains all atlas classes and methods.
Definition: atlas-grids.cc:33