30 #ifndef CASA_VALUEHOLDER_H
31 #define CASA_VALUEHOLDER_H
216 {
return vh.
itsRep->write (os); }
225 {
return itsRep->dataType(); }
227 {
return itsRep->toRecord (rec,
id); }
232 {
return itsRep->asBool(); }
234 {
return itsRep->asuChar(); }
236 {
return itsRep->asShort(); }
238 {
return itsRep->asuShort(); }
240 {
return itsRep->asInt(); }
242 {
return itsRep->asuInt(); }
244 {
return itsRep->asInt64(); }
246 {
return itsRep->asFloat(); }
248 {
return itsRep->asDouble(); }
250 {
return itsRep->asComplex(); }
252 {
return itsRep->asDComplex(); }
254 {
return itsRep->asString(); }
256 {
return itsRep->asArrayBool(); }
258 {
return itsRep->asArrayuChar(); }
260 {
return itsRep->asArrayShort(); }
262 {
return itsRep->asArrayuShort(); }
264 {
return itsRep->asArrayInt(); }
266 {
return itsRep->asArrayuInt(); }
268 {
return itsRep->asArrayInt64(); }
270 {
return itsRep->asArrayFloat(); }
272 {
return itsRep->asArrayDouble(); }
274 {
return itsRep->asArrayComplex(); }
276 {
return itsRep->asArrayDComplex(); }
278 {
return itsRep->asArrayString(); }
280 {
return itsRep->asRecord(); }
DataType dataType() const
Get the data type (as defined in DataType.h).
void getValue(Array< Int > &value) const
const String & asString() const
Bool asBool() const
Get the value.
long long Int64
Define the extra non-standard types used by Casacore (like proposed uSize, Size)
const Array< Int > asArrayInt() const
void getValue(Int64 &value) const
void getValue(Array< uShort > &value) const
void getValue(Bool &value) const
Get the data in a way useful for templates.
static ValueHolderRep * fromRecord(const Record &rec, const RecordFieldId &)
Construct the object from the value in a record.
void getValue(DComplex &value) const
ValueHolder & operator=(const ValueHolder &)
Assignment (reference semantics).
std::complex< Float > Complex
const Array< String > asArrayString() const
void getValue(Array< uInt > &value) const
void getValue(Float &value) const
void getValue(uChar &value) const
DComplex asDComplex() const
void getValue(Int &value) const
const Array< uShort > asArrayuShort() const
void getValue(Complex &value) const
void getValue(String &value) const
const Array< Double > asArrayDouble() const
ValueHolder(ValueHolderRep *rep)
Create a ValueHolder from a ValueHolderRep.
void getValue(uInt &value) const
const Array< uChar > asArrayuChar() const
A holder for a value of any basic type.
virtual void reference(const Array< T > &other)
After invocation, this array and other reference the same storage.
void getValue(Short &value) const
Bool isNull() const
Is this a null object?
Referenced counted pointer for constant data.
The identification of a record field.
void getValue(Array< Int64 > &value) const
const Array< Int64 > asArrayInt64() const
Complex asComplex() const
void getValue(Double &value) const
static ValueHolder fromRecord(const Record &, const RecordFieldId &)
Construct the object from the value in a record.
void getValue(Array< Double > &value) const
const Array< Short > asArrayShort() const
void getValue(Array< Short > &value) const
void getValue(Array< DComplex > &value) const
std::complex< Double > DComplex
A holder for a value of any basic Casacore data type.
const Array< Float > asArrayFloat() const
const Array< Complex > asArrayComplex() const
LatticeExprNode ndim(const LatticeExprNode &expr)
1-argument function to get the dimensionality of a lattice.
void toRecord(Record &, const RecordFieldId &) const
Put the value as a field in a record.
A hierarchical collection of named fields of various types.
bool Bool
Define the standard types used by Casacore.
const Array< Bool > asArrayBool() const
void getValue(Array< Float > &value) const
ValueHolder()
Construct a null object.
void getValue(Array< Bool > &value) const
bool operator<(const ValueHolder &right) const
Compare two ValueHolder objects.
void getValue(Array< Complex > &value) const
String: the storage and methods of handling collections of characters.
CountedPtr< ValueHolderRep > itsRep
const Array< DComplex > asArrayDComplex() const
const Record & asRecord() const
~ValueHolder()
Destructor.
void getValue(Array< String > &value) const
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.
void getValue(Array< uChar > &value) const
void getValue(uShort &value) const
friend std::ostream & operator<<(std::ostream &os, const ValueHolder &vh)
Write the ValueHolder to an output stream.
const Array< uInt > asArrayuInt() const
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.