AAO DRAMA/DRAMA2 C++ Interface
DRAMA C++11 and later interface

◆ Data()

template<typename T >
T * drama::BulkData::Data ( unsigned long nitems = nullptr)
inlineinherited

Return a pointer to the actual data.

Will throw an exception if the shared memory segment has not been constructed correctly (e.g. it was generated by the default constructor - which can only be used as a target of a move assignment or move-copy operation.)

Template Parameters
TThe type of the data item. This needs to be a of standard layout, trivial (Plain old data) types, if not, compile will fail with a static assertion.
Parameters
nitemsIf non-null, the number of items which can fit in the shared memory is returned here.
Returns
A pointer to the actual data item.

References drama::CreateRunDramaTask(), and DramaTHROW.