atlas
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Friends | List of all members
atlas::array::DataType Class Reference

Public Types

typedef long kind_t
 

Public Member Functions

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

Static Public Member Functions

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

Static Public Attributes

static const kind_t KIND_BYTE = 1
 
static const kind_t KIND_INT32 = -4
 
static const kind_t KIND_INT64 = -8
 
static const kind_t KIND_REAL32 = 4
 
static const kind_t KIND_REAL64 = 8
 
static const kind_t KIND_UINT64 = -16
 

Friends

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

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