30 #ifndef CASA_VALUEHOLDER_H
31 #define CASA_VALUEHOLDER_H
217 {
return vh.
itsRep->write (os); }
226 {
return itsRep->dataType(); }
228 {
return itsRep->toRecord (rec,
id); }
233 {
return itsRep->asBool(); }
235 {
return itsRep->asuChar(); }
237 {
return itsRep->asShort(); }
239 {
return itsRep->asuShort(); }
241 {
return itsRep->asInt(); }
243 {
return itsRep->asuInt(); }
245 {
return itsRep->asInt64(); }
247 {
return itsRep->asFloat(); }
249 {
return itsRep->asDouble(); }
251 {
return itsRep->asComplex(); }
253 {
return itsRep->asDComplex(); }
255 {
return itsRep->asString(); }
257 {
return itsRep->asArrayBool(); }
259 {
return itsRep->asArrayuChar(); }
261 {
return itsRep->asArrayShort(); }
263 {
return itsRep->asArrayuShort(); }
265 {
return itsRep->asArrayInt(); }
267 {
return itsRep->asArrayuInt(); }
269 {
return itsRep->asArrayInt64(); }
271 {
return itsRep->asArrayFloat(); }
273 {
return itsRep->asArrayDouble(); }
275 {
return itsRep->asArrayComplex(); }
277 {
return itsRep->asArrayDComplex(); }
279 {
return itsRep->asArrayString(); }
281 {
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.
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
virtual void reference(const Array< T, Alloc > &other)
After invocation, this array and other reference the same storage.
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