casa
$Rev:20696$
|
A holder for a value of any basic type. More...
#include <ValueHolderRep.h>
A holder for a value of any basic type.
Internal
Class ValueHolderRep is the letter class for the envelope class ValueHolder. See that class for more information.
Copying ValueHolders should be as cheap as possible, so a counted referenced letter class is used.
Definition at line 65 of file ValueHolderRep.h.
casa::ValueHolderRep::ValueHolderRep | ( | Bool | value | ) | [explicit] |
Create the object for the given value.
casa::ValueHolderRep::ValueHolderRep | ( | uChar | value | ) | [explicit] |
casa::ValueHolderRep::ValueHolderRep | ( | Short | value | ) | [explicit] |
casa::ValueHolderRep::ValueHolderRep | ( | uShort | value | ) | [explicit] |
casa::ValueHolderRep::ValueHolderRep | ( | Int | value | ) | [explicit] |
casa::ValueHolderRep::ValueHolderRep | ( | uInt | value | ) | [explicit] |
casa::ValueHolderRep::ValueHolderRep | ( | Int64 | value | ) | [explicit] |
casa::ValueHolderRep::ValueHolderRep | ( | Float | value | ) | [explicit] |
casa::ValueHolderRep::ValueHolderRep | ( | Double | value | ) | [explicit] |
casa::ValueHolderRep::ValueHolderRep | ( | const Complex & | value | ) | [explicit] |
casa::ValueHolderRep::ValueHolderRep | ( | const DComplex & | value | ) | [explicit] |
casa::ValueHolderRep::ValueHolderRep | ( | const Char * | value | ) | [explicit] |
casa::ValueHolderRep::ValueHolderRep | ( | const String & | value | ) | [explicit] |
casa::ValueHolderRep::ValueHolderRep | ( | const Array< Bool > & | value | ) | [explicit] |
casa::ValueHolderRep::ValueHolderRep | ( | const Array< uChar > & | value | ) | [explicit] |
casa::ValueHolderRep::ValueHolderRep | ( | const Array< Short > & | value | ) | [explicit] |
casa::ValueHolderRep::ValueHolderRep | ( | const Array< uShort > & | value | ) | [explicit] |
casa::ValueHolderRep::ValueHolderRep | ( | const Array< Int > & | value | ) | [explicit] |
casa::ValueHolderRep::ValueHolderRep | ( | const Array< uInt > & | value | ) | [explicit] |
casa::ValueHolderRep::ValueHolderRep | ( | const Array< Int64 > & | value | ) | [explicit] |
casa::ValueHolderRep::ValueHolderRep | ( | const Array< Float > & | value | ) | [explicit] |
casa::ValueHolderRep::ValueHolderRep | ( | const Array< Double > & | value | ) | [explicit] |
casa::ValueHolderRep::ValueHolderRep | ( | const Array< Complex > & | value | ) | [explicit] |
casa::ValueHolderRep::ValueHolderRep | ( | const Array< DComplex > & | value | ) | [explicit] |
casa::ValueHolderRep::ValueHolderRep | ( | const Array< String > & | value | ) | [explicit] |
casa::ValueHolderRep::ValueHolderRep | ( | const Record & | value | ) | [explicit] |
casa::ValueHolderRep::ValueHolderRep | ( | uInt | ndim, |
Bool | dummy | ||
) |
Create an empty N-dim array.
Destructor.
casa::ValueHolderRep::ValueHolderRep | ( | const ValueHolderRep & | ) | [private] |
Forbid copy ctor and assignment.
const Array<Bool> casa::ValueHolderRep::asArrayBool | ( | ) | const |
Referenced by casa::ValueHolder::asArrayBool().
const Array<Complex> casa::ValueHolderRep::asArrayComplex | ( | ) | const |
Referenced by casa::ValueHolder::asArrayComplex().
const Array<DComplex> casa::ValueHolderRep::asArrayDComplex | ( | ) | const |
Referenced by casa::ValueHolder::asArrayDComplex().
const Array<Double> casa::ValueHolderRep::asArrayDouble | ( | ) | const |
Referenced by casa::ValueHolder::asArrayDouble().
const Array<Float> casa::ValueHolderRep::asArrayFloat | ( | ) | const |
Referenced by casa::ValueHolder::asArrayFloat().
const Array<Int> casa::ValueHolderRep::asArrayInt | ( | ) | const |
Referenced by casa::ValueHolder::asArrayInt().
const Array<Int64> casa::ValueHolderRep::asArrayInt64 | ( | ) | const |
Referenced by casa::ValueHolder::asArrayInt64().
const Array<Short> casa::ValueHolderRep::asArrayShort | ( | ) | const |
Referenced by casa::ValueHolder::asArrayShort().
const Array<String> casa::ValueHolderRep::asArrayString | ( | ) | const |
Referenced by casa::ValueHolder::asArrayString().
const Array<uChar> casa::ValueHolderRep::asArrayuChar | ( | ) | const |
Referenced by casa::ValueHolder::asArrayuChar().
const Array<uInt> casa::ValueHolderRep::asArrayuInt | ( | ) | const |
Referenced by casa::ValueHolder::asArrayuInt().
const Array<uShort> casa::ValueHolderRep::asArrayuShort | ( | ) | const |
Referenced by casa::ValueHolder::asArrayuShort().
Bool casa::ValueHolderRep::asBool | ( | ) | const |
Get the value.
It throws an exception if the data type is incorrect.
Referenced by casa::ValueHolder::asBool().
Complex casa::ValueHolderRep::asComplex | ( | ) | const |
Referenced by casa::ValueHolder::asComplex().
DComplex casa::ValueHolderRep::asDComplex | ( | ) | const |
Referenced by casa::ValueHolder::asDComplex().
Double casa::ValueHolderRep::asDouble | ( | ) | const |
Referenced by casa::ValueHolder::asDouble().
Float casa::ValueHolderRep::asFloat | ( | ) | const |
Referenced by casa::ValueHolder::asFloat().
Int casa::ValueHolderRep::asInt | ( | ) | const |
Referenced by casa::ValueHolder::asInt().
Int64 casa::ValueHolderRep::asInt64 | ( | ) | const |
Referenced by casa::ValueHolder::asInt64().
const Record& casa::ValueHolderRep::asRecord | ( | ) | const |
Referenced by casa::ValueHolder::asRecord().
Short casa::ValueHolderRep::asShort | ( | ) | const |
Referenced by casa::ValueHolder::asShort().
const String& casa::ValueHolderRep::asString | ( | ) | const |
Referenced by casa::ValueHolder::asString().
uChar casa::ValueHolderRep::asuChar | ( | ) | const |
Referenced by casa::ValueHolder::asuChar().
uInt casa::ValueHolderRep::asuInt | ( | ) | const |
Referenced by casa::ValueHolder::asuInt().
uShort casa::ValueHolderRep::asuShort | ( | ) | const |
Referenced by casa::ValueHolder::asuShort().
DataType casa::ValueHolderRep::dataType | ( | ) | const [inline] |
Get the data type (as defined in DataType.h).
Definition at line 179 of file ValueHolderRep.h.
References itsType.
Referenced by casa::ValueHolder::dataType().
static ValueHolderRep* casa::ValueHolderRep::fromRecord | ( | const Record & | rec, |
const RecordFieldId & | |||
) | [static] |
Construct the object from the value in a record.
Referenced by casa::ValueHolder::fromRecord().
void casa::ValueHolderRep::link | ( | ) | [inline] |
Definition at line 104 of file ValueHolderRep.h.
References itsCount.
ValueHolderRep& casa::ValueHolderRep::operator= | ( | const ValueHolderRep & | ) | [private] |
void casa::ValueHolderRep::toRecord | ( | Record & | , |
const RecordFieldId & | |||
) | const |
Put the value as a field in a record.
Referenced by casa::ValueHolder::toRecord().
static void casa::ValueHolderRep::unlink | ( | ValueHolderRep * | rep | ) | [inline, static] |
Definition at line 107 of file ValueHolderRep.h.
References itsCount.
std::ostream& casa::ValueHolderRep::write | ( | std::ostream & | os | ) | const |
Write the ValueHolderRep to an output stream.
Arrays are written as normal arrays using ArrayIO.h.
union { ... } [private] |
Definition at line 167 of file ValueHolderRep.h.
Int casa::ValueHolderRep::itsCount [private] |
Definition at line 173 of file ValueHolderRep.h.
Definition at line 172 of file ValueHolderRep.h.
Definition at line 170 of file ValueHolderRep.h.
Definition at line 171 of file ValueHolderRep.h.
uInt casa::ValueHolderRep::itsNdim [private] |
Definition at line 164 of file ValueHolderRep.h.
Definition at line 174 of file ValueHolderRep.h.
Definition at line 169 of file ValueHolderRep.h.
DataType casa::ValueHolderRep::itsType [private] |
Definition at line 165 of file ValueHolderRep.h.
Referenced by dataType().
Definition at line 168 of file ValueHolderRep.h.