VTK-m
2.2
|
A short variable-length array from a window in an ArrayPortal. More...
#include <VecFromPortal.h>
Public Types | |
using | ComponentType = typename std::remove_const< typename PortalType::ValueType >::type |
Public Member Functions | |
VecFromPortal (const PortalType &portal, vtkm::IdComponent numComponents=0, vtkm::Id offset=0) | |
vtkm::IdComponent | GetNumberOfComponents () const |
template<typename T , vtkm::IdComponent DestSize> | |
void | CopyInto (vtkm::Vec< T, DestSize > &dest) const |
template<vtkm::IdComponent N> | |
operator vtkm::Vec< ComponentType, N > () const | |
vtkm::internal::ArrayPortalValueReference< PortalType > | operator[] (vtkm::IdComponent index) const |
template<typename OtherVecType > | |
VecFromPortal & | operator= (const OtherVecType &src) |
template<typename OtherVecType > | |
VecFromPortal & | operator+= (const OtherVecType &other) |
template<typename OtherVecType > | |
VecFromPortal & | operator-= (const OtherVecType &other) |
template<typename OtherVecType > | |
VecFromPortal & | operator*= (const OtherVecType &other) |
template<typename OtherVecType > | |
VecFromPortal & | operator/= (const OtherVecType &other) |
template<typename OtherVecType > | |
bool | operator== (const OtherVecType &other) |
template<typename OtherVecType > | |
bool | operator!= (const OtherVecType &other) |
const PortalType & | GetPortal () const |
vtkm::Id | GetOffset () const |
Private Member Functions | |
template<typename OtherVecType > | |
void | Multiply (const OtherVecType &other, vtkm::TypeTraitsVectorTag) |
template<typename ScalarType > | |
void | Multiply (ScalarType other, vtkm::TypeTraitsScalarTag) |
Private Attributes | |
PortalType | Portal |
vtkm::IdComponent | NumComponents |
vtkm::Id | Offset |
A short variable-length array from a window in an ArrayPortal.
The VecFromPortal
class is a Vec-like class that holds an array portal and exposes a small window of that portal as if it were a Vec
.
using vtkm::VecFromPortal< PortalType >::ComponentType = typename std::remove_const<typename PortalType::ValueType>::type |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprivate |
|
inlineprivate |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
|
private |
|
private |