30 #ifndef CASA_VALUEHOLDERREP_H
31 #define CASA_VALUEHOLDERREP_H
34 #include <casacore/casa/aips.h>
35 #include <casacore/casa/Arrays/ArrayFwd.h>
36 #include <casacore/casa/Utilities/DataType.h>
145 std::ostream&
write (std::ostream& os)
const;
String: the storage and methods of handling collections of characters.
const Array< Int > asArrayInt() const
ValueHolderRep(const Array< Int > &value)
ValueHolderRep(Int64 value)
ValueHolderRep(const Array< Short > &value)
ValueHolderRep(const Array< uInt > &value)
ValueHolderRep & operator=(const ValueHolderRep &)
const Array< uInt > asArrayuInt() const
ValueHolderRep(const Array< Bool > &value)
const Array< Complex > asArrayComplex() const
const Array< Short > asArrayShort() const
ValueHolderRep(const DComplex &value)
Bool asBool() const
Get the value.
const String & asString() const
ValueHolderRep(uInt value)
ValueHolderRep(const Array< DComplex > &value)
ValueHolderRep(Bool value)
Create the object for the given value.
ValueHolderRep(uShort value)
ValueHolderRep(const Array< String > &value)
Complex asComplex() const
const Array< String > asArrayString() const
ValueHolderRep(const Complex &value)
bool operator<(const ValueHolderRep &right) const
Compare two ValueHolder objects.
ValueHolderRep(const Array< Int64 > &value)
void toRecord(Record &, const RecordFieldId &) const
Put the value as a field in a record.
ValueHolderRep(const Array< Complex > &value)
ValueHolderRep(uInt ndim, Bool dummy)
Create an empty N-dim array.
ValueHolderRep(const Char *value)
const Array< Float > asArrayFloat() const
ValueHolderRep(const Record &value)
const Array< uShort > asArrayuShort() const
const Array< DComplex > asArrayDComplex() const
const Array< Bool > asArrayBool() const
ValueHolderRep(Short value)
ValueHolderRep(const ValueHolderRep &)
Forbid copy ctor and assignment.
const Record & asRecord() const
const Array< Double > asArrayDouble() const
ValueHolderRep(const Array< Float > &value)
ValueHolderRep(uChar value)
ValueHolderRep(const String &value)
ValueHolderRep(Float value)
const Array< uChar > asArrayuChar() const
ValueHolderRep(const Array< Double > &value)
const Array< Int64 > asArrayInt64() const
ValueHolderRep(const Array< uChar > &value)
static ValueHolderRep * fromRecord(const Record &rec, const RecordFieldId &)
Construct the object from the value in a record.
DataType dataType() const
Get the data type (as defined in DataType.h).
std::ostream & write(std::ostream &os) const
Write the ValueHolderRep to an output stream.
ValueHolderRep(Double value)
ValueHolderRep(const Array< uShort > &value)
DComplex asDComplex() const
ValueHolderRep(Int value)
~ValueHolderRep()
Destructor.
std::complex< Float > Complex
std::complex< Double > DComplex
this file contains all the compiler specific defines
LatticeExprNode ndim(const LatticeExprNode &expr)
1-argument function to get the dimensionality of a lattice.
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.
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.