ImFusion C++ SDK 4.4.0
ImFusion::Tensor< Order >::ConstAccess Class Reference

#include <ImFusion/Base/Tensor.h>

Helper class for read-only access to the data content of a Tensor. More...

Inheritance diagram for ImFusion::Tensor< Order >::ConstAccess:

Detailed Description

template<int Order>
class ImFusion::Tensor< Order >::ConstAccess

Helper class for read-only access to the data content of a Tensor.

This access and is not exclusive and not meant to guarantee thread safety.

Public Member Functions

 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.
Public Member Functions inherited from ImFusion::SignalReceiver
 SignalReceiver ()=default
 Default constructor.
 SignalReceiver (const SignalReceiver &other)
 Copy constructor, does not copy any existing signal connections from other.
SignalReceiveroperator= (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.

Protected Member Functions

 ConstAccess (const Tensor< Order > &tensor)
void onDataDeleted (const Data *data)
Protected Member Functions inherited from ImFusion::SignalReceiver
void disconnectAll ()
 Disconnects all existing connections.

Protected Attributes

Tensor< Order > * m_tensor

The documentation for this class was generated from the following files:
  • ImFusion/Base/Tensor.h
  • ImFusion/Base/TensorImpl.h
Search Tab / S to search, Esc to close