atlas::array::DataType class

Public types

using kind_t = long

Public static variables

static kind_t KIND_BYTE constexpr
static kind_t KIND_INT32 constexpr
static kind_t KIND_INT64 constexpr
static kind_t KIND_REAL32 constexpr
static kind_t KIND_REAL64 constexpr
static kind_t KIND_UINT64 constexpr

Public static functions

template<typename DATATYPE>
static auto create() -> DataType
static auto byte() -> DataType
static auto int32() -> DataType
static auto int64() -> DataType
static auto real32() -> DataType
static auto real64() -> DataType
static auto uint64() -> DataType
template<typename DATATYPE>
static auto kind() -> kind_t constexpr
template<typename DATATYPE>
static auto kind(const DATATYPE&) -> kind_t constexpr
template<typename DATATYPE>
static auto str() -> std::string
template<typename DATATYPE>
static auto str(const DATATYPE) -> std::string
static auto str_to_kind(const std::string&) -> kind_t
static auto kind_to_str(kind_t) -> std::string
static auto kind_valid(kind_t) -> bool
template<>
static auto str() -> std::string
template<>
static auto str() -> std::string
template<>
static auto str() -> std::string
template<>
static auto str() -> std::string
template<>
static auto str() -> std::string
template<>
static auto str() -> std::string
template<>
static auto str() -> std::string
template<>
static auto str() -> std::string
template<>
static auto str() -> std::string
template<>
static auto str() -> std::string
template<>
static auto str() -> std::string
template<>
static auto str() -> std::string
template<>
static auto str() -> std::string
template<>
static auto str() -> std::string
template<>
static auto kind() -> DataType::kind_t constexpr
template<>
static auto kind() -> DataType::kind_t constexpr
template<>
static auto kind() -> DataType::kind_t constexpr
template<>
static auto kind() -> DataType::kind_t constexpr
template<>
static auto kind() -> DataType::kind_t constexpr
template<>
static auto kind() -> DataType::kind_t constexpr
template<>
static auto kind() -> DataType::kind_t constexpr
template<>
static auto kind() -> DataType::kind_t constexpr
template<>
static auto kind() -> DataType::kind_t constexpr
template<>
static auto kind() -> DataType::kind_t constexpr
template<>
static auto kind() -> DataType::kind_t constexpr
template<>
static auto kind() -> DataType::kind_t constexpr
template<>
static auto kind() -> DataType::kind_t constexpr
template<>
static auto kind() -> DataType::kind_t constexpr

Constructors, destructors, conversion operators

DataType(const std::string&)
DataType(long)
DataType(const DataType&)

Public functions

auto operator=(const DataType&) -> DataType&
auto str() const -> std::string
auto kind() const -> kind_t
auto size() const -> size_t
template<>
auto str(const int&) -> std::string
template<>
auto str(const long&) -> std::string
template<>
auto str(const long long&) -> std::string
template<>
auto str(const unsigned long&) -> std::string
template<>
auto str(const unsigned long long&) -> std::string
template<>
auto str(const float&) -> std::string
template<>
auto str(const double&) -> std::string
template<>
auto kind(const int&) -> DataType::kind_t constexpr
template<>
auto kind(const long&) -> DataType::kind_t constexpr
template<>
auto kind(const unsigned long&) -> DataType::kind_t constexpr
template<>
auto kind(const float&) -> DataType::kind_t constexpr
template<>
auto kind(const double&) -> DataType::kind_t constexpr

Friends

auto operator==(DataType dt1, DataType dt2) -> bool
auto operator!=(DataType dt1, DataType dt2) -> bool
auto operator==(DataType dt, kind_t kind) -> bool
auto operator!=(DataType dt, kind_t kind) -> bool
auto operator==(kind_t kind, DataType dt) -> bool
auto operator!=(kind_t kind, DataType dt2) -> bool