casacore
|
Data types and their undefined values. More...
#include <ValType.h>
Static Public Member Functions | |
static Bool | undefBool () |
Get the "undefined value" for this data type as the function's return value. More... | |
static Char | undefChar () |
static uChar | undefUChar () |
static Short | undefShort () |
static uShort | undefUShort () |
static Int | undefInt () |
static uInt | undefUInt () |
static Int64 | undefInt64 () |
static float | undefFloat () |
static double | undefDouble () |
static Complex | undefComplex () |
static DComplex | undefDComplex () |
static String | undefString () |
static void | getUndef (Bool *) |
Get the "undefined value" for this data type in the argument. More... | |
static void | getUndef (Char *) |
static void | getUndef (uChar *) |
static void | getUndef (Short *) |
static void | getUndef (uShort *) |
static void | getUndef (Int *) |
static void | getUndef (uInt *) |
static void | getUndef (Int64 *) |
static void | getUndef (float *) |
static void | getUndef (double *) |
static void | getUndef (Complex *) |
static void | getUndef (DComplex *) |
static void | getUndef (String *) |
static void | getUndef (void *) |
static DataType | getType (const Bool *) |
Get the data type code for this type as the function's return value. More... | |
static DataType | getType (const Char *) |
static DataType | getType (const uChar *) |
static DataType | getType (const Short *) |
static DataType | getType (const uShort *) |
static DataType | getType (const Int *) |
static DataType | getType (const uInt *) |
static DataType | getType (const Int64 *) |
static DataType | getType (const float *) |
static DataType | getType (const double *) |
static DataType | getType (const Complex *) |
static DataType | getType (const DComplex *) |
static DataType | getType (const String *) |
static DataType | getType (const TableRecord *) |
static DataType | getType (const void *) |
static const String & | getTypeStr (DataType) |
Get the name of the data type. More... | |
static const String & | getTypeStr (const Bool *) |
static const String & | getTypeStr (const Char *) |
static const String & | getTypeStr (const uChar *) |
static const String & | getTypeStr (const Short *) |
static const String & | getTypeStr (const uShort *) |
static const String & | getTypeStr (const Int *) |
static const String & | getTypeStr (const uInt *) |
static const String & | getTypeStr (const Int64 *) |
static const String & | getTypeStr (const float *) |
static const String & | getTypeStr (const double *) |
static const String & | getTypeStr (const Complex *) |
static const String & | getTypeStr (const DComplex *) |
static const String & | getTypeStr (const String *) |
static const String & | getTypeStr (const TableRecord *) |
static const String & | getTypeStr (const void *) |
static int | getTypeSize (DataType) |
Get the size of data type (in local format). More... | |
static int | getCanonicalSize (DataType, Bool BECanonical=True) |
Get the size of data type in canonical format. More... | |
static void | getCanonicalFunc (DataType dt, Conversion::ValueFunction *&readFunc, Conversion::ValueFunction *&writeFunc, uInt &nrElementsPerValue, Bool BECanonical=True) |
Get the functions to convert to/from canonical format. More... | |
static Bool | isPromotable (DataType from, DataType to) |
Test if a data type can be promoted to another. More... | |
static ObjCompareFunc * | getCmpFunc (DataType) |
Get the pointer to the routine which compares two values. More... | |
static CountedPtr< BaseCompare > | getCmpObj (DataType) |
Get the object which compares two values. More... | |
static void | put (AipsIO &, const Bool *) |
Put the value into AipsIO . More... | |
static void | put (AipsIO &, const Char *) |
static void | put (AipsIO &, const uChar *) |
static void | put (AipsIO &, const Short *) |
static void | put (AipsIO &, const uShort *) |
static void | put (AipsIO &, const Int *) |
static void | put (AipsIO &, const uInt *) |
static void | put (AipsIO &, const Int64 *) |
static void | put (AipsIO &, const float *) |
static void | put (AipsIO &, const double *) |
static void | put (AipsIO &, const Complex *) |
static void | put (AipsIO &, const DComplex *) |
static void | put (AipsIO &, const String *) |
static void | put (AipsIO &, const void *) |
static void | get (AipsIO &, Bool *) |
Get the value from AipsIO . More... | |
static void | get (AipsIO &, Char *) |
static void | get (AipsIO &, uChar *) |
static void | get (AipsIO &, Short *) |
static void | get (AipsIO &, uShort *) |
static void | get (AipsIO &, Int *) |
static void | get (AipsIO &, uInt *) |
static void | get (AipsIO &, Int64 *) |
static void | get (AipsIO &, float *) |
static void | get (AipsIO &, double *) |
static void | get (AipsIO &, Complex *) |
static void | get (AipsIO &, DComplex *) |
static void | get (AipsIO &, String *) |
static void | get (AipsIO &, void *) |
static void | put (ostream &, const Bool *) |
Put the value into the ostream . More... | |
static void | put (ostream &, const Char *) |
static void | put (ostream &, const uChar *) |
static void | put (ostream &, const Short *) |
static void | put (ostream &, const uShort *) |
static void | put (ostream &, const Int *) |
static void | put (ostream &, const uInt *) |
static void | put (ostream &, const Int64 *) |
static void | put (ostream &, const float *) |
static void | put (ostream &, const double *) |
static void | put (ostream &, const Complex *) |
static void | put (ostream &, const DComplex *) |
static void | put (ostream &, const String *) |
static void | put (ostream &, const void *) |
static int | isDefined (const Bool *value, const Bool *undef) |
Check if a value is defined, i.e. More... | |
static int | isDefined (const Char *value, const Char *undef) |
static int | isDefined (const uChar *value, const uChar *undef) |
static int | isDefined (const Short *value, const Short *undef) |
static int | isDefined (const uShort *value, const uShort *undef) |
static int | isDefined (const Int *value, const Int *undef) |
static int | isDefined (const uInt *value, const uInt *undef) |
static int | isDefined (const Int64 *value, const Int64 *undef) |
static int | isDefined (const float *value, const float *undef) |
static int | isDefined (const double *value, const double *undef) |
static int | isDefined (const Complex *value, const Complex *undef) |
static int | isDefined (const DComplex *value, const DComplex *undef) |
static int | isDefined (const String *value, const String *undef) |
static int | isDefined (const void *value, const void *undef) |
Private Member Functions | |
ValType () | |
This class is not meant to be constructed. More... | |
Static Private Attributes | |
static const Bool | undefbool |
static const Char | undefchar |
static const uChar | undefuchar |
static const Short | undefshort |
static const uShort | undefushort |
static const Int | undefint |
static const uInt | undefuint |
static const Int64 | undefint64 |
static const float | undeffloat |
static const double | undefdouble |
static const Complex | undefcomplex |
static const DComplex | undefdcomplex |
static const String | undefstring |
static const String | strbool |
static const String | strchar |
static const String | struchar |
static const String | strshort |
static const String | strushort |
static const String | strint |
static const String | struint |
static const String | strint64 |
static const String | strfloat |
static const String | strdouble |
static const String | strcomplex |
static const String | strdcomplex |
static const String | strstring |
static const String | strrecord |
static const String | strtable |
static const String | strother |
static const String | strunknown |
Data types and their undefined values.
Public interface
Class ValType
describes the data types and their "undefined values".
Supported are built-in data types, Bool
, String
, Complex
and DComplex
. As a rule, the smallest possible value of a data type is used as its "undefined value"; for String
we use the null string, and for Bool
the value False.
The class does not contain data. It merely defines constants and has overloaded functions that return in some form the "undefined value", the data type, or certain other information about the data type.
|
private |
This class is not meant to be constructed.
Get the value from AipsIO
.
The void*
function is not doing anything and is for TpOther types.
Definition at line 459 of file ValType.h.
References casacore::value().
Definition at line 461 of file ValType.h.
References casacore::value().
Definition at line 463 of file ValType.h.
References casacore::value().
Definition at line 465 of file ValType.h.
References casacore::value().
Definition at line 467 of file ValType.h.
References casacore::value().
Definition at line 469 of file ValType.h.
References casacore::value().
Definition at line 471 of file ValType.h.
References casacore::value().
Definition at line 473 of file ValType.h.
References casacore::value().
|
inlinestatic |
Definition at line 475 of file ValType.h.
References casacore::value().
|
inlinestatic |
Definition at line 477 of file ValType.h.
References casacore::value().
|
inlinestatic |
Definition at line 479 of file ValType.h.
References casacore::value().
|
inlinestatic |
Definition at line 481 of file ValType.h.
References casacore::value().
Definition at line 483 of file ValType.h.
References casacore::value().
|
inlinestatic |
|
static |
Get the functions to convert to/from canonical format.
These functions take the number of pixels as the length argument. It returns the number of elements per value; normally this is 1, but for complex values it is 2 (since they convert float/double).
The argument BECanonical
determines if the big-endian or little-endian canonical format is used.
Get the size of data type in canonical format.
The argument BECanonical
determines if the big-endian or little-endian canonical format is used.
|
static |
Get the pointer to the routine which compares two values.
|
static |
Get the object which compares two values.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
static |
Get the size of data type (in local format).
|
static |
Get the name of the data type.
The void*
returns the string "Other ".
Referenced by casacore::ValTypeId_global_functions_typeid::valDataTypeId().
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Definition at line 419 of file ValType.h.
References strcomplex.
|
inlinestatic |
Definition at line 421 of file ValType.h.
References strdcomplex.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Definition at line 343 of file ValType.h.
References undefuchar.
|
inlinestatic |
Definition at line 345 of file ValType.h.
References undefshort.
|
inlinestatic |
Definition at line 347 of file ValType.h.
References undefushort.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Definition at line 353 of file ValType.h.
References undefint64.
|
inlinestatic |
Definition at line 355 of file ValType.h.
References undeffloat.
|
inlinestatic |
Definition at line 357 of file ValType.h.
References undefdouble.
|
inlinestatic |
Definition at line 359 of file ValType.h.
References undefcomplex.
|
inlinestatic |
Definition at line 361 of file ValType.h.
References undefdcomplex.
|
inlinestatic |
Definition at line 363 of file ValType.h.
References undefstring.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
static |
Test if a data type can be promoted to another.
Put the value into AipsIO
.
The void*
function is not doing anything and is for TpOther types.
Definition at line 430 of file ValType.h.
References casacore::value().
Definition at line 432 of file ValType.h.
References casacore::value().
Definition at line 434 of file ValType.h.
References casacore::value().
Definition at line 436 of file ValType.h.
References casacore::value().
Definition at line 438 of file ValType.h.
References casacore::value().
Definition at line 440 of file ValType.h.
References casacore::value().
Definition at line 442 of file ValType.h.
References casacore::value().
Definition at line 444 of file ValType.h.
References casacore::value().
|
inlinestatic |
Definition at line 446 of file ValType.h.
References casacore::value().
|
inlinestatic |
Definition at line 448 of file ValType.h.
References casacore::value().
|
inlinestatic |
Definition at line 450 of file ValType.h.
References casacore::value().
|
inlinestatic |
Definition at line 452 of file ValType.h.
References casacore::value().
Definition at line 454 of file ValType.h.
References casacore::value().
|
inlinestatic |
|
inlinestatic |
Put the value into the ostream
.
The void*
function is not doing anything and is for TpOther types.
Definition at line 488 of file ValType.h.
References casacore::value().
|
inlinestatic |
Definition at line 490 of file ValType.h.
References casacore::value().
|
inlinestatic |
Definition at line 492 of file ValType.h.
References casacore::value().
|
inlinestatic |
Definition at line 494 of file ValType.h.
References casacore::value().
|
inlinestatic |
Definition at line 496 of file ValType.h.
References casacore::value().
|
inlinestatic |
Definition at line 498 of file ValType.h.
References casacore::value().
|
inlinestatic |
Definition at line 500 of file ValType.h.
References casacore::value().
|
inlinestatic |
Definition at line 502 of file ValType.h.
References casacore::value().
|
inlinestatic |
Definition at line 504 of file ValType.h.
References casacore::value().
|
inlinestatic |
Definition at line 506 of file ValType.h.
References casacore::value().
|
inlinestatic |
Definition at line 508 of file ValType.h.
References casacore::value().
|
inlinestatic |
Definition at line 510 of file ValType.h.
References casacore::value().
|
inlinestatic |
Definition at line 512 of file ValType.h.
References casacore::value().
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Definition at line 331 of file ValType.h.
References undefcomplex.
|
inlinestatic |
Definition at line 333 of file ValType.h.
References undefdcomplex.
|
inlinestatic |
Definition at line 329 of file ValType.h.
References undefdouble.
|
inlinestatic |
Definition at line 327 of file ValType.h.
References undeffloat.
|
inlinestatic |
|
inlinestatic |
Definition at line 325 of file ValType.h.
References undefint64.
|
inlinestatic |
Definition at line 317 of file ValType.h.
References undefshort.
|
inlinestatic |
Definition at line 335 of file ValType.h.
References undefstring.
|
inlinestatic |
Definition at line 315 of file ValType.h.
References undefuchar.
|
inlinestatic |
|
inlinestatic |
Definition at line 319 of file ValType.h.
References undefushort.
|
staticprivate |
Definition at line 286 of file ValType.h.
Referenced by getTypeStr().
|
staticprivate |
Definition at line 287 of file ValType.h.
Referenced by getTypeStr().
|
staticprivate |
Definition at line 296 of file ValType.h.
Referenced by getTypeStr().
|
staticprivate |
Definition at line 297 of file ValType.h.
Referenced by getTypeStr().
|
staticprivate |
Definition at line 295 of file ValType.h.
Referenced by getTypeStr().
|
staticprivate |
Definition at line 294 of file ValType.h.
Referenced by getTypeStr().
|
staticprivate |
Definition at line 291 of file ValType.h.
Referenced by getTypeStr().
|
staticprivate |
Definition at line 293 of file ValType.h.
Referenced by getTypeStr().
|
staticprivate |
Definition at line 301 of file ValType.h.
Referenced by getTypeStr().
|
staticprivate |
Definition at line 299 of file ValType.h.
Referenced by getTypeStr().
|
staticprivate |
Definition at line 289 of file ValType.h.
Referenced by getTypeStr().
|
staticprivate |
Definition at line 298 of file ValType.h.
Referenced by getTypeStr().
|
staticprivate |
Definition at line 288 of file ValType.h.
Referenced by getTypeStr().
|
staticprivate |
Definition at line 292 of file ValType.h.
Referenced by getTypeStr().
|
staticprivate |
Definition at line 290 of file ValType.h.
Referenced by getTypeStr().
|
staticprivate |
Definition at line 272 of file ValType.h.
Referenced by getUndef(), and undefBool().
|
staticprivate |
Definition at line 273 of file ValType.h.
Referenced by getUndef(), and undefChar().
|
staticprivate |
Definition at line 282 of file ValType.h.
Referenced by getUndef(), and undefComplex().
|
staticprivate |
Definition at line 283 of file ValType.h.
Referenced by getUndef(), and undefDComplex().
|
staticprivate |
Definition at line 281 of file ValType.h.
Referenced by getUndef(), and undefDouble().
|
staticprivate |
Definition at line 280 of file ValType.h.
Referenced by getUndef(), and undefFloat().
|
staticprivate |
Definition at line 277 of file ValType.h.
Referenced by getUndef(), and undefInt().
|
staticprivate |
Definition at line 279 of file ValType.h.
Referenced by getUndef(), and undefInt64().
|
staticprivate |
Definition at line 275 of file ValType.h.
Referenced by getUndef(), and undefShort().
|
staticprivate |
Definition at line 284 of file ValType.h.
Referenced by getUndef(), and undefString().
|
staticprivate |
Definition at line 274 of file ValType.h.
Referenced by getUndef(), and undefUChar().
|
staticprivate |
Definition at line 278 of file ValType.h.
Referenced by getUndef(), and undefUInt().
|
staticprivate |
Definition at line 276 of file ValType.h.
Referenced by getUndef(), and undefUShort().