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

Example data access class. More...

#include <DataReader.hxx>

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

Public Member Functions

 MatchIntervalStartOrEarlier (DataReaderBase &r)
 Constructor.
 
const Taccess (DataReaderBase &r)
 extrapolate the data object data, which became valid for a time data_time, to a time in the future or past wish_time.
 
const void release (ChannelReadToken &token)
 Release a previous access.
 

Public Attributes

const Tdata_ptr
 Pointer to a data copy.
 

Detailed Description

template<class T>
class dueca::MatchIntervalStartOrEarlier< T >

Example data access class.

A datareader is supplied with a time specification for the requested data interval. The data access class template parameter defines how that interval is interpreted in accessing the data.

Behaviour of this MatchIntervalStartOrEarlier class, explained for four cases:

Note that for this access, the combinations time access reading with stream data and serial reading with event data make most sense.

Constructor & Destructor Documentation

◆ MatchIntervalStartOrEarlier()

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

Constructor.

Essential to initialize data pointer to NULL

Member Function Documentation

◆ access()

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

extrapolate the data object data, which became valid for a time data_time, to a time in the future or past wish_time.

This one actually does nothing but return the unchanged data object.

Parameters
rBase class for the calling datareader object.
Returns
A reference to the extrapolated data.

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