ChimeraTK-DeviceAccess  03.18.00
Integers_base< Derived > Struct Template Reference
+ Inheritance diagram for Integers_base< Derived >:

Public Types

typedef int32_t minimumUserType
 
typedef minimumUserType rawUserType
 

Public Member Functions

ChimeraTK::AccessModeFlags supportedFlags ()
 
size_t nChannels ()
 
size_t nElementsPerChannel ()
 
size_t writeQueueLength ()
 
size_t nRuntimeErrorCases ()
 
void ensureOpen ()
 
template<typename Type >
std::vector< std::vector< Type > > generateValue (bool raw=false)
 
template<typename Type >
std::vector< std::vector< Type > > getRemoteValue (bool raw=false)
 
void setRemoteValue ()
 
template<typename UserType , typename RawType >
RawType cookedToRaw (UserType val)
 
template<typename UserType , typename RawType >
UserType rawToCooked (RawType val)
 
void setForceRuntimeError (bool, size_t)
 

Public Attributes

Derived * derived {static_cast<Derived*>(this)}
 
boost::shared_ptr< NDRegisterAccessor< minimumUserType > > acc
 
boost::shared_ptr< NDRegisterAccessor< rawUserType > > accBackdoor
 

Static Public Attributes

static constexpr auto capabilities
 

Detailed Description

template<typename Derived>
struct Integers_base< Derived >

Definition at line 111 of file testSharedDummyBackendUnified.cpp.

Member Typedef Documentation

◆ minimumUserType

template<typename Derived >
typedef int32_t Integers_base< Derived >::minimumUserType

Definition at line 118 of file testSharedDummyBackendUnified.cpp.

◆ rawUserType

template<typename Derived >
typedef minimumUserType Integers_base< Derived >::rawUserType

Definition at line 119 of file testSharedDummyBackendUnified.cpp.

Member Function Documentation

◆ cookedToRaw()

template<typename Derived >
template<typename UserType , typename RawType >
RawType Integers_base< Derived >::cookedToRaw ( UserType  val)
inline

Definition at line 173 of file testSharedDummyBackendUnified.cpp.

◆ ensureOpen()

template<typename Derived >
void Integers_base< Derived >::ensureOpen ( )
inline

Definition at line 134 of file testSharedDummyBackendUnified.cpp.

◆ generateValue()

template<typename Derived >
template<typename Type >
std::vector<std::vector<Type> > Integers_base< Derived >::generateValue ( bool  raw = false)
inline

Definition at line 142 of file testSharedDummyBackendUnified.cpp.

◆ getRemoteValue()

template<typename Derived >
template<typename Type >
std::vector<std::vector<Type> > Integers_base< Derived >::getRemoteValue ( bool  raw = false)
inline

Definition at line 153 of file testSharedDummyBackendUnified.cpp.

◆ nChannels()

template<typename Derived >
size_t Integers_base< Derived >::nChannels ( )
inline

Definition at line 114 of file testSharedDummyBackendUnified.cpp.

◆ nElementsPerChannel()

template<typename Derived >
size_t Integers_base< Derived >::nElementsPerChannel ( )
inline

Definition at line 115 of file testSharedDummyBackendUnified.cpp.

◆ nRuntimeErrorCases()

template<typename Derived >
size_t Integers_base< Derived >::nRuntimeErrorCases ( )
inline

Definition at line 117 of file testSharedDummyBackendUnified.cpp.

◆ rawToCooked()

template<typename Derived >
template<typename UserType , typename RawType >
UserType Integers_base< Derived >::rawToCooked ( RawType  val)
inline

Definition at line 179 of file testSharedDummyBackendUnified.cpp.

◆ setForceRuntimeError()

template<typename Derived >
void Integers_base< Derived >::setForceRuntimeError ( bool  ,
size_t   
)
inline

Definition at line 184 of file testSharedDummyBackendUnified.cpp.

◆ setRemoteValue()

template<typename Derived >
void Integers_base< Derived >::setRemoteValue ( )
inline

Definition at line 163 of file testSharedDummyBackendUnified.cpp.

◆ supportedFlags()

template<typename Derived >
ChimeraTK::AccessModeFlags Integers_base< Derived >::supportedFlags ( )
inline

Definition at line 113 of file testSharedDummyBackendUnified.cpp.

◆ writeQueueLength()

template<typename Derived >
size_t Integers_base< Derived >::writeQueueLength ( )
inline

Definition at line 116 of file testSharedDummyBackendUnified.cpp.

Member Data Documentation

◆ acc

template<typename Derived >
boost::shared_ptr<NDRegisterAccessor<minimumUserType> > Integers_base< Derived >::acc
Initial value:
{
sharedDummy->getRegisterAccessor<minimumUserType>(derived->path(), 1, 0, AccessModeFlags{})}

Definition at line 129 of file testSharedDummyBackendUnified.cpp.

◆ accBackdoor

template<typename Derived >
boost::shared_ptr<NDRegisterAccessor<rawUserType> > Integers_base< Derived >::accBackdoor
Initial value:
{sharedDummy->getRegisterAccessor<rawUserType>(
std::string("MIRRORED/") + derived->path(), 1, 0, {AccessMode::raw})}

Definition at line 131 of file testSharedDummyBackendUnified.cpp.

◆ capabilities

template<typename Derived >
constexpr auto Integers_base< Derived >::capabilities
staticconstexpr
Initial value:
= TestCapabilities<>()
.disableForceDataLossWrite()
.disableSwitchReadOnly()
.disableSwitchWriteOnly()
.disableTestWriteNeverLosesData()
.disableAsyncReadInconsistency()
.enableTestRawTransfer()

Definition at line 121 of file testSharedDummyBackendUnified.cpp.

◆ derived

template<typename Derived >
Derived* Integers_base< Derived >::derived {static_cast<Derived*>(this)}

Definition at line 112 of file testSharedDummyBackendUnified.cpp.


The documentation for this struct was generated from the following file:
Integers_base::rawUserType
minimumUserType rawUserType
Definition: testSharedDummyBackendUnified.cpp:119
Integers_base::minimumUserType
int32_t minimumUserType
Definition: testSharedDummyBackendUnified.cpp:118
Integers_base::derived
Derived * derived
Definition: testSharedDummyBackendUnified.cpp:112