AAO DRAMA/DRAMA2 C++ Interface
DRAMA C++11 and later interface
|
A class that provides direct access to the data of an SDS item, via a sub-class of std::unique_ptr<>.
Rather then Get and Put operations, it may be appropriate to access SDS data directly. This class provides a way of doing that. The user creates an item of this type specifying the type of the data item within the SDS item as the template argument.
There is an array specialization of this template which implements typical array iterator operations.
T | The type we want to access. This needs to be a of standard layout, trivial (Plain old data) types, if not, compile will fail with a static assertion. |
#include "sds.hh"
Public Member Functions | |
DataPointer (const drama::sds::Id &theId) | |
DataPointer Constructor. | |
DataPointer (drama::sds::Id *theId, bool outlives) | |
DataPointer Constructor. | |
~DataPointer () | |
DataPointer destructor. | |
unsigned long | NumBytes () const |
Return the size of the item in bytes. | |
T * | operator-> () |
STL member. | |
Public Attributes | |
T | ptr |
STL member. | |
Click here for the DRAMA home page and here for the AAO home page.
For more information, contact tony.farrell@mq.edu.au
Generated on Thu Dec 12 2024 23:07:35 for AAO DRAMA/DRAMA2 C++ Interface by 1.9.8