30 #ifndef CASA_VALUEHOLDERREP_H
31 #define CASA_VALUEHOLDERREP_H
42 template<
class T>
class Array;
145 std::ostream&
write (std::ostream& os)
const;
long long Int64
Define the extra non-standard types used by Casacore (like proposed uSize, Size)
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::complex< Float > Complex
const Array< Bool > asArrayBool() const
const Array< uChar > asArrayuChar() const
const Array< Short > asArrayShort() const
const Array< uInt > asArrayuInt() const
~ValueHolderRep()
Destructor.
Bool asBool() const
Get the value.
A holder for a value of any basic type.
const Array< Int > asArrayInt() const
const Array< uShort > asArrayuShort() const
const Array< Complex > asArrayComplex() const
bool operator<(const ValueHolderRep &right) const
Compare two ValueHolder objects.
The identification of a record field.
const Record & asRecord() const
ValueHolderRep & operator=(const ValueHolderRep &)
std::complex< Double > DComplex
const String & asString() const
LatticeExprNode ndim(const LatticeExprNode &expr)
1-argument function to get the dimensionality of a lattice.
DComplex asDComplex() const
A hierarchical collection of named fields of various types.
bool Bool
Define the standard types used by Casacore.
std::ostream & write(std::ostream &os) const
Write the ValueHolderRep to an output stream.
Complex asComplex() const
ValueHolderRep(Bool value)
Create the object for the given value.
const Array< String > asArrayString() const
const Array< Int64 > asArrayInt64() const
String: the storage and methods of handling collections of characters.
const Array< Float > asArrayFloat() const
const Array< DComplex > asArrayDComplex() const
void toRecord(Record &, const RecordFieldId &) const
Put the value as a field in a record.
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.
const Array< Double > asArrayDouble() const
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.