Viskores
1.0
|
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, viskores::IdComponent numComponents=0, viskores::Id offset=0) | |
viskores::IdComponent | GetNumberOfComponents () const |
template<typename T , viskores::IdComponent DestSize> | |
void | CopyInto (viskores::Vec< T, DestSize > &dest) const |
template<viskores::IdComponent N> | |
operator viskores::Vec< ComponentType, N > () const | |
viskores::internal::ArrayPortalValueReference< PortalType > | operator[] (viskores::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 |
viskores::Id | GetOffset () const |
Private Member Functions | |
template<typename OtherVecType > | |
void | Multiply (const OtherVecType &other, viskores::TypeTraitsVectorTag) |
template<typename ScalarType > | |
void | Multiply (ScalarType other, viskores::TypeTraitsScalarTag) |
Private Attributes | |
PortalType | Portal |
viskores::IdComponent | NumComponents |
viskores::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 viskores::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 |