atlas::io::ArrayReference class

Base classes

class ArrayMetadata

Public types

using ArrayShape = array::ArrayShape
using DataType = array::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 atlas::io::Metadata&, const atlas::io::Data&, ArrayReference&)

Typedef documentation

using atlas::io::ArrayReference::ArrayShape = array::ArrayShape

using atlas::io::ArrayReference::DataType = array::DataType

Function documentation

static std::string atlas::io::ArrayReference::type()

int atlas::io::ArrayReference::rank() const

int atlas::io::ArrayReference::shape(int i) const

const ArrayShape& atlas::io::ArrayReference::shape() const

DataType atlas::io::ArrayReference::datatype() const

size_t atlas::io::ArrayReference::size() const

size_t atlas::io::ArrayReference::bytes() const

This website is beyond its original expiry date and the content may be out of date. The site owner has been notified and may choose to extend the expiry date and remove this banner. If you have any questions about this, please visit our support portal.