AAO DRAMA/DRAMA2 C++ Interface
DRAMA C++11 and later interface
Public Member Functions | Public Attributes | List of all members
drama::sds::DataPointer< T > Class Template Reference

Detailed Description

template<typename T>
class drama::sds::DataPointer< T >

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.

Template Parameters
TThe 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"

Inheritance diagram for drama::sds::DataPointer< T >:

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

ptr
 STL member.
 

The documentation for this class was generated from the following file: