![]() |
ImFusion SDK 4.3
|
#include <ImFusion/Base/Tensor.h>
Helper class for read/write access to the data content of a Tensor. More...
Helper class for read/write access to the data content of a Tensor.
This access and is not exclusive and not meant to guarantee thread safety. When this object goes out of scope, the tensor will notify its listeners that the content has changed. If you do not plan to modify the content anyway, usage of ConstAccess is recommended instead to avoid useless listener updates.
Public Member Functions | |
Access (Access &&o) noexcept | |
Access & | operator= (const Access &&o) noexcept |
Access (const Access &)=delete | |
Access & | operator= (const Access &)=delete |
~Access () override | |
Destructor notifies all connected listeners that the content may have changed. | |
double * | data () |
Direct access to the underlying tensor data. Kindly do not delete this pointer, unless you plan on crashing the application. | |
template<typename... idxT, typename = typename std::enable_if<TensorBase::are_all_convertible<size_t, idxT...>::value>::type> | |
double & | operator() (idxT... idx) |
Access of an individual tensor element. The correct number of arguments is checked at compile time. | |
![]() | |
ConstAccess (ConstAccess &&o) noexcept | |
ConstAccess & | operator= (const ConstAccess &&o) noexcept |
ConstAccess (const ConstAccess &)=delete | |
ConstAccess & | operator= (const ConstAccess &)=delete |
const double * | data () const |
Direct const access to the underlying tensor data. Kindly do not delete this pointer, unless you plan on crashing the application. | |
template<typename... idxT, typename = typename std::enable_if<TensorBase::are_all_convertible<size_t, idxT...>::value>::type> | |
const double & | operator() (idxT... idx) const |
Const access of an individual tensor element. The correct number of arguments is checked at compile time. | |
![]() | |
SignalReceiver ()=default | |
Default constructor. | |
SignalReceiver (const SignalReceiver &other) | |
Copy constructor, does not copy any existing signal connections from other. | |
SignalReceiver & | operator= (SignalReceiver rhs) |
Assignment operator, disconnects all existing connections, does not copy any existing signal connections from rhs. | |
virtual | ~SignalReceiver () |
Virtual destructor disconnects from all connected signals. | |
Additional Inherited Members | |
![]() | |
ConstAccess (const Tensor< Order > &tensor) | |
void | onDataDeleted (const Data *data) |
![]() | |
void | disconnectAll () |
Disconnects all existing connections. | |
![]() | |
Tensor< Order > * | m_tensor |