casa
$Rev:20696$
|
Read-Only access to an individual field from a Record.
#include <RecordField.h>
Public Member Functions | |
RORecordFieldPtr () | |
RORecordFieldPtr (const RecordInterface &record, Int whichField) | |
RORecordFieldPtr (const RecordInterface &record, const RecordFieldId &id) | |
RORecordFieldPtr (const RecordFieldPtr< T > &other) | |
RORecordFieldPtr (const RORecordFieldPtr< T > &other) | |
RORecordFieldPtr< T > & | operator= (const RORecordFieldPtr< T > &other) |
~RORecordFieldPtr () | |
void | attachToRecord (const RecordInterface &record, Int whichField) |
void | attachToRecord (const RecordInterface &record, const RecordFieldId &id) |
const T & | operator* () const |
const T & | get () const |
const String & | comment () const |
Int | fieldNumber () const |
void | detach () |
Bool | isAttached () const |
Private Attributes | |
RecordFieldPtr< T > | fieldPtr_p |
Read-Only access to an individual field from a Record.
Public interface
This class is entirely like RecordFieldPtr , except that it only allows Read-Only access to fields in a Record. The documentation for that class should be consulted.
Note that RecordFieldPtr is not inherited from RORecordFieldPtr, because that would give problems with the function attachToRecord. It would allow RecordFieldPtr to attach to a const RecordInterface object.
Definition at line 228 of file RecordField.h.
casa::RORecordFieldPtr< T >::RORecordFieldPtr | ( | ) | [inline] |
Definition at line 231 of file RecordField.h.
casa::RORecordFieldPtr< T >::RORecordFieldPtr | ( | const RecordInterface & | record, |
Int | whichField | ||
) | [inline] |
Definition at line 232 of file RecordField.h.
casa::RORecordFieldPtr< T >::RORecordFieldPtr | ( | const RecordInterface & | record, |
const RecordFieldId & | id | ||
) | [inline] |
Definition at line 234 of file RecordField.h.
casa::RORecordFieldPtr< T >::RORecordFieldPtr | ( | const RecordFieldPtr< T > & | other | ) | [inline] |
Definition at line 236 of file RecordField.h.
casa::RORecordFieldPtr< T >::RORecordFieldPtr | ( | const RORecordFieldPtr< T > & | other | ) | [inline] |
Definition at line 238 of file RecordField.h.
casa::RORecordFieldPtr< T >::~RORecordFieldPtr | ( | ) | [inline] |
Definition at line 243 of file RecordField.h.
void casa::RORecordFieldPtr< T >::attachToRecord | ( | const RecordInterface & | record, |
Int | whichField | ||
) | [inline] |
Definition at line 245 of file RecordField.h.
void casa::RORecordFieldPtr< T >::attachToRecord | ( | const RecordInterface & | record, |
const RecordFieldId & | id | ||
) | [inline] |
Definition at line 247 of file RecordField.h.
const String& casa::RORecordFieldPtr< T >::comment | ( | ) | const [inline] |
Definition at line 253 of file RecordField.h.
void casa::RORecordFieldPtr< T >::detach | ( | ) | [inline] |
Definition at line 258 of file RecordField.h.
Int casa::RORecordFieldPtr< T >::fieldNumber | ( | ) | const [inline] |
Definition at line 255 of file RecordField.h.
const T& casa::RORecordFieldPtr< T >::get | ( | ) | const [inline] |
Definition at line 251 of file RecordField.h.
Bool casa::RORecordFieldPtr< T >::isAttached | ( | ) | const [inline] |
Definition at line 259 of file RecordField.h.
const T& casa::RORecordFieldPtr< T >::operator* | ( | ) | const [inline] |
Definition at line 250 of file RecordField.h.
RORecordFieldPtr<T>& casa::RORecordFieldPtr< T >::operator= | ( | const RORecordFieldPtr< T > & | other | ) | [inline] |
Definition at line 240 of file RecordField.h.
RecordFieldPtr<T> casa::RORecordFieldPtr< T >::fieldPtr_p [private] |
Definition at line 262 of file RecordField.h.
Referenced by casa::RORecordFieldPtr< Array< Double > >::attachToRecord(), casa::RORecordFieldPtr< Array< Double > >::comment(), casa::RORecordFieldPtr< Array< Double > >::detach(), casa::RORecordFieldPtr< Array< Double > >::fieldNumber(), casa::RORecordFieldPtr< Array< Double > >::get(), casa::RORecordFieldPtr< Array< Double > >::isAttached(), casa::RORecordFieldPtr< Array< Double > >::operator*(), and casa::RORecordFieldPtr< Array< Double > >::operator=().