#include <sds.h>
This is Data helper class for the ArrayAccess methods of the SdsId:: class. The main point here is to set up a releationship between an SDS data type and the relevant underlying Sds code - SdsCodeType of the SDS scalar array we wish to access. Once the relationship is set up (by creating an subclass using this template) and a call is made to SdsId::ArrayAccess(), then the methods of this class allow access to the data using the index operator.
Public Methods | |
| SdsCodeType | Code () const |
| Return the SDS type code of the item being accessed. | |
| unsigned long | Size () const |
| Return the number of elements in the array. | |
| T const & | operator[] (const unsigned long index) const |
| SDS array subscript operator (const version). | |
| T & | operator[] (const unsigned long index) |
| SDS array subscript operator (non-const version). | |
| T * | DataAddressRW () |
| Access the data directly. | |
| const T * | DataAddressRO () const |
| Access the data directly - read only. | |
Protected Methods | |
| SdsArrayAccessHelper (SdsCodeType c) | |
| Constructor - only available to sub-classes. | |
|
||||||||||
|
Constructor - only available to sub-classes. Construct an SdsArrayAccessHelper item. Only sub-classes can invoke this.
|
|
|||||||||
|
Return the SDS type code of the item being accessed.
|
|
|||||||||
|
Access the data directly - read only. Returns the address of the raw data. The user is responsible for ensuring that any accesses are within the correct range - not more then Size() elements. |
|
|||||||||
|
Access the data directly. read/write. Returns the address of the raw data. The user is responsible for ensuring that any accesses are within the correct range - not more then Size() elements. |
|
||||||||||
|
SDS array subscript operator (non-const version). Set/Access the data using the subscript operator- the only way of getting at the data at the moment.
|
|
||||||||||
|
SDS array subscript operator (const version). Access the data using the subscript operator- the only way of getting at the data at the moment.
|
|
|||||||||
|
Return the number of elements in the array.
|
Click here for the DRAMA home page and here for the AAO home page.
For more information, contact tjf@aaoepp.aao.gov.au Generated on Tue Nov 3 09:09:56 2009 for AAO DRAMA C++ Interfaces by
1.2.18