ChimeraTK-DeviceAccess  03.18.00
AsyncTestDummy::Accessor< UserType > Class Template Reference
+ Inheritance diagram for AsyncTestDummy::Accessor< UserType >:
+ Collaboration diagram for AsyncTestDummy::Accessor< UserType >:

Public Member Functions

 Accessor (AsyncTestDummy *backend, const RegisterPath &registerPathName, AccessModeFlags &flags)
 
void doReadTransferSynchronously () override
 
bool doWriteTransfer (ChimeraTK::VersionNumber) override
 
void doPreWrite (TransferType, VersionNumber) override
 
void doPostWrite (TransferType, VersionNumber) override
 
void doPreRead (TransferType) override
 
void doPostRead (TransferType, bool hasNewData) override
 
bool isReadOnly () const override
 
bool isReadable () const override
 
bool isWriteable () const override
 
std::vector< boost::shared_ptr< TransferElement > > getHardwareAccessingElements () override
 
std::list< boost::shared_ptr< TransferElement > > getInternalElements () override
 
- Public Member Functions inherited from ChimeraTK::NDRegisterAccessor< UserType >
 NDRegisterAccessor (std::string const &name, AccessModeFlags accessModeFlags, std::string const &unit=std::string(TransferElement::unitNotSet), std::string const &description=std::string())
 Creates an NDRegisterAccessor with the specified name (passed on to the transfer element). More...
 
UserType & accessData (size_t sample)
 Get or set register accessor's buffer content (1D version). More...
 
const UserType & accessData (size_t sample) const
 
UserType & accessData (unsigned int channel, unsigned int sample)
 Get or set register accessor's buffer content (2D version). More...
 
const UserType & accessData (unsigned int channel, unsigned int sample) const
 
std::vector< UserType > & accessChannel (unsigned int channel)
 Get or set register accessor's channel vector. More...
 
const std::vector< UserType > & accessChannel (unsigned int channel) const
 
std::vector< std::vector< UserType > > & accessChannels ()
 Get or set register accessor's 2D channel vector. More...
 
const std::vector< std::vector< UserType > > & accessChannels () const
 
unsigned int getNumberOfSamples () const
 Return number of elements per channel. More...
 
unsigned int getNumberOfChannels () const
 Return number of channels. More...
 
const std::type_info & getValueType () const override
 
template<typename COOKED_TYPE >
COOKED_TYPE getAsCooked (unsigned int channel, unsigned int sample) const
 
 DEFINE_VIRTUAL_FUNCTION_TEMPLATE_VTABLE (getAsCooked_impl, T const(unsigned int, unsigned int))
 
template<typename COOKED_TYPE >
COOKED_TYPE getAsCooked_impl (unsigned int channel, unsigned int sample) const
 
template<typename COOKED_TYPE >
void setAsCooked (unsigned int channel, unsigned int sample, COOKED_TYPE value)
 
 DEFINE_VIRTUAL_FUNCTION_TEMPLATE_VTABLE (setAsCooked_impl, void(unsigned int, unsigned int, T))
 
template<typename COOKED_TYPE >
void setAsCooked_impl (unsigned int channel, unsigned int sample, COOKED_TYPE value)
 
boost::shared_ptr< TransferElementmakeCopyRegisterDecorator () override
 

Public Attributes

size_t nPostReadCalled {0}
 

Protected Attributes

AsyncTestDummy_backend
 
- Protected Attributes inherited from ChimeraTK::NDRegisterAccessor< UserType >
std::vector< std::vector< UserType > > buffer_2D
 Buffer of converted data elements. More...
 

Additional Inherited Members

- Protected Member Functions inherited from ChimeraTK::NDRegisterAccessor< UserType >
 DEFINE_VIRTUAL_FUNCTION_TEMPLATE_VTABLE_FILLER (NDRegisterAccessor< UserType >, getAsCooked_impl, 2)
 
 DEFINE_VIRTUAL_FUNCTION_TEMPLATE_VTABLE_FILLER (NDRegisterAccessor< UserType >, setAsCooked_impl, 3)
 

Detailed Description

template<typename UserType>
class AsyncTestDummy::Accessor< UserType >

Definition at line 42 of file testAsyncRead.cpp.

Constructor & Destructor Documentation

◆ Accessor()

template<typename UserType >
AsyncTestDummy::Accessor< UserType >::Accessor ( AsyncTestDummy backend,
const RegisterPath registerPathName,
AccessModeFlags flags 
)
inline

Definition at line 44 of file testAsyncRead.cpp.

Member Function Documentation

◆ doPostRead()

template<typename UserType >
void AsyncTestDummy::Accessor< UserType >::doPostRead ( TransferType  ,
bool  hasNewData 
)
inlineoverride

Definition at line 62 of file testAsyncRead.cpp.

◆ doPostWrite()

template<typename UserType >
void AsyncTestDummy::Accessor< UserType >::doPostWrite ( TransferType  ,
VersionNumber   
)
inlineoverride

Definition at line 58 of file testAsyncRead.cpp.

◆ doPreRead()

template<typename UserType >
void AsyncTestDummy::Accessor< UserType >::doPreRead ( TransferType  )
inlineoverride

Definition at line 60 of file testAsyncRead.cpp.

◆ doPreWrite()

template<typename UserType >
void AsyncTestDummy::Accessor< UserType >::doPreWrite ( TransferType  ,
VersionNumber   
)
inlineoverride

Definition at line 56 of file testAsyncRead.cpp.

◆ doReadTransferSynchronously()

template<typename UserType >
void AsyncTestDummy::Accessor< UserType >::doReadTransferSynchronously ( )
inlineoverride

Definition at line 52 of file testAsyncRead.cpp.

◆ doWriteTransfer()

template<typename UserType >
bool AsyncTestDummy::Accessor< UserType >::doWriteTransfer ( ChimeraTK::VersionNumber  )
inlineoverride

Definition at line 54 of file testAsyncRead.cpp.

◆ getHardwareAccessingElements()

template<typename UserType >
std::vector<boost::shared_ptr<TransferElement> > AsyncTestDummy::Accessor< UserType >::getHardwareAccessingElements ( )
inlineoverride

Definition at line 75 of file testAsyncRead.cpp.

◆ getInternalElements()

template<typename UserType >
std::list<boost::shared_ptr<TransferElement> > AsyncTestDummy::Accessor< UserType >::getInternalElements ( )
inlineoverride

Definition at line 78 of file testAsyncRead.cpp.

◆ isReadable()

template<typename UserType >
bool AsyncTestDummy::Accessor< UserType >::isReadable ( ) const
inlineoverride

Definition at line 72 of file testAsyncRead.cpp.

◆ isReadOnly()

template<typename UserType >
bool AsyncTestDummy::Accessor< UserType >::isReadOnly ( ) const
inlineoverride

Definition at line 71 of file testAsyncRead.cpp.

◆ isWriteable()

template<typename UserType >
bool AsyncTestDummy::Accessor< UserType >::isWriteable ( ) const
inlineoverride

Definition at line 73 of file testAsyncRead.cpp.

Member Data Documentation

◆ _backend

template<typename UserType >
AsyncTestDummy* AsyncTestDummy::Accessor< UserType >::_backend
protected

Definition at line 83 of file testAsyncRead.cpp.

◆ nPostReadCalled

template<typename UserType >
size_t AsyncTestDummy::Accessor< UserType >::nPostReadCalled {0}

Definition at line 80 of file testAsyncRead.cpp.


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