28 #ifndef CASA_DATATYPE_H
29 #define CASA_DATATYPE_H
31 #include <casacore/casa/aips.h>
32 #include <casacore/casa/Arrays/ArrayFwd.h>
33 #include <casacore/casa/BasicSL/Complex.h>
34 #include <casacore/casa/BasicSL/String.h>
36 #include <casacore/casa/iosfwd.h>
40 template<
class T>
class Quantum;
142 TpShort, TpUShort, TpInt, TpUInt,
144 TpComplex, TpDComplex, TpString,
146 TpArrayBool, TpArrayChar, TpArrayUChar,
147 TpArrayShort, TpArrayUShort, TpArrayInt, TpArrayUInt,
148 TpArrayFloat, TpArrayDouble,
149 TpArrayComplex, TpArrayDComplex, TpArrayString,
202 {
return TpArrayQuantity ; }
String: the storage and methods of handling collections of characters.
std::complex< Float > Complex
std::complex< Double > DComplex
this file contains all the compiler specific defines
long long Int64
Define the extra non-standard types used by Casacore (like proposed uSize, Size)
bool Bool
Define the standard types used by Casacore.
Bool isScalar(DataType type)
It is occasionally useful to discover whether or not a DataType represents an array or scalar value.
DataType whatType(const Char *)
DataType whatType(const Array< Short > *)
DataType whatType(const Array< Complex > *)
Bool isComplex(DataType type)
Returns True for Complex or DComplex scalar or array types.
Bool isReal(DataType type)
It is sometimes useful to discover if a DataType represents a real numeric value (i....
DataType whatType(const Array< Int > *)
DataType whatType(const Complex *)
DataType asScalar(DataType type)
It is sometimes useful to discover what the corresponding scalar (or array) type is for a given array...
DataType whatType(const double *)
DataType whatType(const Record *)
DataType whatType(const Array< String > *)
DataType whatType(const uInt *)
DataType whatType(const Array< DComplex > *)
Bool isScalarFun(DataType type)
DataType whatType(const Array< Quantum< Double > > *)
DataType whatType(const Array< float > *)
DataType whatType(const float *)
DataType whatType(const Bool *)
Bool isNumeric(DataType type)
Returns True if the type is either Real or Complex/DComplex.
DataType whatType(const Short *)
Bool isArray(DataType type)
ostream & operator<<(ostream &os, DataType type)
Write a formated representation (e.g., Type=Bool) of the given data type.
DataType whatType(const Int *)
DataType whatType(const Table *)
DataType whatType(const void *)
These (overloaded) functions return DataType that corresponds to to the type that is being pointed at...
DataType whatType(const DComplex *)
DataType whatType(const String *)
DataType whatType(const Array< Int64 > *)
DataType whatType(const Array< uInt > *)
DataType whatType(const Int64 *)
DataType whatType(const Array< uChar > *)
DataType whatType(const uChar *)
DataType asArray(DataType type)
DataType whatType(const Array< uShort > *)
DataType whatType(const uShort *)
DataType whatType(const Array< double > *)
DataType whatType(const Array< Char > *)
DataType whatType(const Quantum< Double > *)
DataType whatType(const Array< Bool > *)