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

Public Types

using minimumUserType = int32_t
 
using rawUserType = minimumUserType
 

Public Member Functions

AccessModeFlags supportedFlags ()
 
size_t nChannels ()
 
size_t nElementsPerChannel ()
 
size_t writeQueueLength ()
 
size_t nRuntimeErrorCases ()
 
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 ([[maybe_unused]] bool enable, [[maybe_unused]] size_t type)
 

Public Attributes

Derived * derived = static_cast<Derived*>(this)
 
std::shared_ptr< RawUioAccessremote {new RawUioAccess("/dev/ctkuiodummy", "uioBackendTest.mapp")}
 

Static Public Attributes

static constexpr auto capabilities
 

Detailed Description

template<typename Derived>
struct ScalarDescriptor< Derived >

Definition at line 182 of file testUioBackendUnified.cpp.

Member Typedef Documentation

◆ minimumUserType

template<typename Derived >
using ScalarDescriptor< Derived >::minimumUserType = int32_t

Definition at line 189 of file testUioBackendUnified.cpp.

◆ rawUserType

template<typename Derived >
using ScalarDescriptor< Derived >::rawUserType = minimumUserType

Definition at line 190 of file testUioBackendUnified.cpp.

Member Function Documentation

◆ cookedToRaw()

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

Definition at line 228 of file testUioBackendUnified.cpp.

◆ generateValue()

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

Definition at line 204 of file testUioBackendUnified.cpp.

◆ getRemoteValue()

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

Definition at line 214 of file testUioBackendUnified.cpp.

◆ nChannels()

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

Definition at line 185 of file testUioBackendUnified.cpp.

◆ nElementsPerChannel()

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

Definition at line 186 of file testUioBackendUnified.cpp.

◆ nRuntimeErrorCases()

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

Definition at line 188 of file testUioBackendUnified.cpp.

◆ rawToCooked()

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

Definition at line 234 of file testUioBackendUnified.cpp.

◆ setForceRuntimeError()

template<typename Derived >
void ScalarDescriptor< Derived >::setForceRuntimeError ( [[maybe_unused] ] bool  enable,
[[maybe_unused] ] size_t  type 
)
inline

Definition at line 239 of file testUioBackendUnified.cpp.

◆ setRemoteValue()

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

Definition at line 221 of file testUioBackendUnified.cpp.

◆ supportedFlags()

template<typename Derived >
AccessModeFlags ScalarDescriptor< Derived >::supportedFlags ( )
inline

Definition at line 184 of file testUioBackendUnified.cpp.

◆ writeQueueLength()

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

Definition at line 187 of file testUioBackendUnified.cpp.

Member Data Documentation

◆ capabilities

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

Definition at line 192 of file testUioBackendUnified.cpp.

◆ derived

template<typename Derived >
Derived* ScalarDescriptor< Derived >::derived = static_cast<Derived*>(this)

Definition at line 183 of file testUioBackendUnified.cpp.

◆ remote

template<typename Derived >
std::shared_ptr<RawUioAccess> ScalarDescriptor< Derived >::remote {new RawUioAccess("/dev/ctkuiodummy", "uioBackendTest.mapp")}

Definition at line 200 of file testUioBackendUnified.cpp.


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