DUECA/DUSIME
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
dueca::VirtualJoin< T > Class Template Reference

Data selector class. More...

#include <DataReader.hxx>

Inheritance diagram for dueca::VirtualJoin< T >:
Inheritance graph
[legend]
Collaboration diagram for dueca::VirtualJoin< T >:
Collaboration graph
[legend]

Public Member Functions

 VirtualJoin (DataReaderBase &r)
 Constructor.
 
const Taccess (DataReaderBase &r)
 access the data object.
 
const void release (ChannelReadToken &token)
 Release a previous access.
 

Public Attributes

const Tdata_ptr
 Pointer to a data copy.
 

Additional Inherited Members

- Protected Member Functions inherited from dueca::DataReaderBaseAccess
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

template<class T>
class dueca::VirtualJoin< T >

Data selector class.

The DataReader objects access data in a channel using ChannelReadToken objects. A DataReader is supplied with a time specification for the requested data interval at its construction. The data selector class template parameter defines how that interval is interpreted in accessing the data.

Behaviour of this VirtualJoin class, explained for four cases:

Constructor & Destructor Documentation

◆ VirtualJoin()

template<class T >
dueca::VirtualJoin< T >::VirtualJoin ( DataReaderBase & r)
inline

Constructor.

Essential to initialize data pointer. Also does the access.

Member Function Documentation

◆ access()

template<class T >
const T & dueca::VirtualJoin< T >::access ( DataReaderBase & r)
inline

access the data object.

Cycles through all entries until a valid data point is found


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