ChimeraTK-DeviceAccess  03.18.00
ChimeraTK::proxies::DummyRegisterElement< T > Class Template Reference

Temporary proxy class for use in the DummyRegister and DummyMultiplexedRegister classes. More...

#include <DummyRegisterAccessor.h>

+ Collaboration diagram for ChimeraTK::proxies::DummyRegisterElement< T >:

Public Member Functions

 DummyRegisterElement (FixedPointConverter *_fpc, int _nbytes, int32_t *_buffer)
 
 operator T () const
 Implicit type conversion to user type T. More...
 
DummyRegisterElement< T > & operator= (T rhs)
 assignment operator More...
 
DummyRegisterElement< T > operator++ ()
 pre-increment operator More...
 
DummyRegisterElement< T > operator-- ()
 pre-decrement operator More...
 
operator++ (int)
 post-increment operator More...
 
operator-- (int)
 post-decrement operator More...
 

Protected Member Functions

 DummyRegisterElement ()
 constructor when used as a base class in DummyRegister More...
 

Protected Attributes

FixedPointConverterfpcptr
 fixed point converter to be used for this element More...
 
int nbytes
 number of bytes per word More...
 
int32_t * buffer
 raw buffer of this element More...
 

Detailed Description

template<typename T>
class ChimeraTK::proxies::DummyRegisterElement< T >

Temporary proxy class for use in the DummyRegister and DummyMultiplexedRegister classes.

Will be returned in place of l.h.s. references to the register elements, to allow read-write access to registers governed by a FixedPointConverter.

Definition at line 20 of file DummyRegisterAccessor.h.

Constructor & Destructor Documentation

◆ DummyRegisterElement() [1/2]

template<typename T >
ChimeraTK::proxies::DummyRegisterElement< T >::DummyRegisterElement ( FixedPointConverter _fpc,
int  _nbytes,
int32_t *  _buffer 
)
inline

Definition at line 22 of file DummyRegisterAccessor.h.

◆ DummyRegisterElement() [2/2]

template<typename T >
ChimeraTK::proxies::DummyRegisterElement< T >::DummyRegisterElement ( )
inlineprotected

constructor when used as a base class in DummyRegister

Definition at line 65 of file DummyRegisterAccessor.h.

Member Function Documentation

◆ operator T()

template<typename T >
ChimeraTK::proxies::DummyRegisterElement< T >::operator T ( ) const
inline

Implicit type conversion to user type T.

This covers already a lot of operations like arithmetic and comparison

Definition at line 28 of file DummyRegisterAccessor.h.

◆ operator++() [1/2]

template<typename T >
DummyRegisterElement<T> ChimeraTK::proxies::DummyRegisterElement< T >::operator++ ( )
inline

pre-increment operator

Definition at line 38 of file DummyRegisterAccessor.h.

+ Here is the call graph for this function:

◆ operator++() [2/2]

template<typename T >
T ChimeraTK::proxies::DummyRegisterElement< T >::operator++ ( int  )
inline

post-increment operator

Definition at line 50 of file DummyRegisterAccessor.h.

+ Here is the call graph for this function:

◆ operator--() [1/2]

template<typename T >
DummyRegisterElement<T> ChimeraTK::proxies::DummyRegisterElement< T >::operator-- ( )
inline

pre-decrement operator

Definition at line 44 of file DummyRegisterAccessor.h.

+ Here is the call graph for this function:

◆ operator--() [2/2]

template<typename T >
T ChimeraTK::proxies::DummyRegisterElement< T >::operator-- ( int  )
inline

post-decrement operator

Definition at line 57 of file DummyRegisterAccessor.h.

+ Here is the call graph for this function:

◆ operator=()

template<typename T >
DummyRegisterElement<T>& ChimeraTK::proxies::DummyRegisterElement< T >::operator= ( rhs)
inline

assignment operator

Definition at line 31 of file DummyRegisterAccessor.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ buffer

template<typename T >
int32_t* ChimeraTK::proxies::DummyRegisterElement< T >::buffer
protected

raw buffer of this element

Definition at line 74 of file DummyRegisterAccessor.h.

◆ fpcptr

template<typename T >
FixedPointConverter* ChimeraTK::proxies::DummyRegisterElement< T >::fpcptr
protected

fixed point converter to be used for this element

Definition at line 68 of file DummyRegisterAccessor.h.

◆ nbytes

template<typename T >
int ChimeraTK::proxies::DummyRegisterElement< T >::nbytes
protected

number of bytes per word

Definition at line 71 of file DummyRegisterAccessor.h.


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