DUECA/DUSIME
Loading...
Searching...
No Matches
Protected Member Functions | List of all members
dueca::DataReaderBaseAccess Class Reference

Base class for DataReader access template objects. More...

#include <DataReaderBase.hxx>

Inheritance diagram for dueca::DataReaderBaseAccess:
Inheritance graph
[legend]

Protected Member Functions

const voidgetAccess (DataReaderBase &b, TimeTickType t, DataTimeSpec &ts_data, unsigned int magic)
 Get access to the data valid at a specific time.
 
const DataTimeSpect_request (DataReaderBase &b)
 Access the DataReaderBase request time.
 
DataTimeSpects_data (DataReaderBase &b)
 Access the DataReaderBase data time.
 
boolfirstaccess (DataReaderBase &b)
 Access the DataReaderBase access boolean.
 
void releaseAccess (ChannelReadToken &token, const void *data_ptr)
 Release the read access again.
 
void releaseAccess (DataReaderBase &b, const void *data_ptr)
 Release the read access again, from a base.
 
void releaseAccessKeepData (ChannelReadToken &token, const void *data_ptr)
 Release the read access, but keep the current data.
 
void selectFirstEntry (DataReaderBase &b)
 Select the first entry in a multi-entry read.
 
bool haveEntry (DataReaderBase &b)
 Is there an entry currently.
 
void selectNextEntry (DataReaderBase &b)
 Pass to the next entry.
 
const GlobalIdgetChannelId (DataReaderBase &b)
 Get the id of the channel.
 
const GlobalIdgetClientId (DataReaderBase &b)
 Get the id of the accessing client.
 
bool isSequential (DataReaderBase &b)
 Is reading sequential, or indexed-access.
 

Detailed Description

Base class for DataReader access template objects.

The DataReader class can access the data in the channel in a variety of ways. A template parameter in this class determines how the data in the channel is found; either joining data from all entries matching the data type, getting data that matches a specific time, etc.

Member Function Documentation

◆ getAccess()

const void * dueca::DataReaderBaseAccess::getAccess ( DataReaderBase & b,
TimeTickType t,
DataTimeSpec & ts_data,
unsigned int magic )
inlineprotected

Get access to the data valid at a specific time.

Uses the token of the DataReaderBase class. The token returns the data valid at, or the latest data before the requested time, check the returned time spec for the result.

Parameters
bReader base class, for token access.
tTime for which access is requested.
ts_dataTime span or time point of the returned data.
magicDatatype magic number, for verification.

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