eckit::codec::ArrayReference class

Base classes

class ArrayMetadata

Public types

using ArrayShape = eckit::codec::ArrayShape
using DataType = eckit::codec::DataType

Public static functions

static auto type() -> std::string

Constructors, destructors, conversion operators

ArrayReference() defaulted
ArrayReference(const void* data, DataType, const ArrayShape&)
template<typename T>
ArrayReference(const T* data, const ArrayShape& shape)
ArrayReference(ArrayReference&&)

Public functions

auto operator=(ArrayReference&&) -> ArrayReference&
auto data() const -> void*
auto rank() const -> int
auto shape(int i) const -> int
auto shape() const -> const ArrayShape&
auto datatype() const -> DataType
auto size() const -> size_t
auto bytes() const -> size_t

Friends

void decode(const Metadata&, const Data&, ArrayReference&)

Typedef documentation

using eckit::codec::ArrayReference::ArrayShape = eckit::codec::ArrayShape

using eckit::codec::ArrayReference::DataType = eckit::codec::DataType

Function documentation

static std::string eckit::codec::ArrayReference::type()

int eckit::codec::ArrayReference::rank() const

int eckit::codec::ArrayReference::shape(int i) const

const ArrayShape& eckit::codec::ArrayReference::shape() const

DataType eckit::codec::ArrayReference::datatype() const

size_t eckit::codec::ArrayReference::size() const

size_t eckit::codec::ArrayReference::bytes() const