VTK
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
vtk::detail::TupleReference< ArrayType, TupleSize > Struct Template Reference

#include <vtkDataArrayTupleRange_AOS.h>

Public Types

using size_type = ComponentIdType
 
using value_type = APIType
 
using iterator = ComponentIterator< ArrayType, TupleSize >
 
using const_iterator = ConstComponentIterator< ArrayType, TupleSize >
 
using reference = ComponentReference< ArrayType, TupleSize >
 
using const_reference = ConstComponentReference< ArrayType, TupleSize >
 

Public Member Functions

VTK_ITER_INLINE TupleReference () noexcept
 
VTK_ITER_INLINE TupleReference (ArrayType *array, NumCompsType numComps, TupleIdType tupleId) noexcept
 
VTK_ITER_INLINE TupleReference (const TupleReference &)=default
 
VTK_ITER_INLINE TupleReference (TupleReference &&)=default
 
VTK_ITER_INLINE TupleReferenceoperator-> () noexcept
 
const VTK_ITER_INLINE TupleReferenceoperator-> () const noexcept
 
VTK_ITER_INLINE void GetTuple (APIType *tuple) const noexcept
 
VTK_ITER_INLINE void SetTuple (const APIType *tuple) noexcept
 
VTK_ITER_INLINE TupleReferenceoperator= (const TupleReference &other) noexcept
 
template<typename OArrayType , ComponentIdType OSize>
VTK_ITER_INLINE EnableIfStaticTupleSizes< TupleSize, OSize, TupleReference & > operator= (const TupleReference< OArrayType, OSize > &other) noexcept
 
template<typename OArrayType , ComponentIdType OSize>
VTK_ITER_INLINE EnableIfEitherTupleSizeIsDynamic< TupleSize, OSize, TupleReference & > operator= (const TupleReference< OArrayType, OSize > &other) noexcept
 
template<typename OArrayType , ComponentIdType OSize>
VTK_ITER_INLINE EnableIfStaticTupleSizes< TupleSize, OSize, TupleReference & > operator= (const ConstTupleReference< OArrayType, OSize > &other) noexcept
 
template<typename OArrayType , ComponentIdType OSize>
VTK_ITER_INLINE EnableIfEitherTupleSizeIsDynamic< TupleSize, OSize, TupleReference & > operator= (const ConstTupleReference< OArrayType, OSize > &other) noexcept
 
template<typename OArrayType , ComponentIdType OSize>
VTK_ITER_INLINE EnableIfStaticTupleSizes< TupleSize, OSize, bool > operator== (const TupleReference< OArrayType, OSize > &other) const noexcept
 
template<typename OArrayType , ComponentIdType OSize>
VTK_ITER_INLINE EnableIfEitherTupleSizeIsDynamic< TupleSize, OSize, bool > operator== (const TupleReference< OArrayType, OSize > &other) const noexcept
 
template<typename OArrayType , ComponentIdType OSize>
VTK_ITER_INLINE EnableIfStaticTupleSizes< TupleSize, OSize, bool > operator== (const ConstTupleReference< OArrayType, OSize > &other) const noexcept
 
template<typename OArrayType , ComponentIdType OSize>
VTK_ITER_INLINE EnableIfEitherTupleSizeIsDynamic< TupleSize, OSize, bool > operator== (const ConstTupleReference< OArrayType, OSize > &other) const noexcept
 
template<typename OArrayType , ComponentIdType OSize>
VTK_ITER_INLINE bool operator!= (const TupleReference< OArrayType, OSize > &o) const noexcept
 
template<typename OArray , ComponentIdType OSize>
VTK_ITER_INLINE bool operator!= (const ConstTupleReference< OArray, OSize > &o) const noexcept
 
template<typename OArrayType , ComponentIdType OSize>
VTK_ITER_INLINE EnableIfStaticTupleSizes< TupleSize, OSize, void > swap (TupleReference< OArrayType, OSize > other) noexcept
 
template<typename OArrayType , ComponentIdType OSize>
VTK_ITER_INLINE EnableIfEitherTupleSizeIsDynamic< TupleSize, OSize, void > swap (TupleReference< OArrayType, OSize > other) noexcept
 
VTK_ITER_INLINE reference operator[] (size_type i) noexcept
 
VTK_ITER_INLINE const_reference operator[] (size_type i) const noexcept
 
VTK_ITER_INLINE void fill (const value_type &v) noexcept
 
VTK_ITER_INLINE size_type size () const noexcept
 
VTK_ITER_INLINE iterator begin () noexcept
 
VTK_ITER_INLINE iterator end () noexcept
 
VTK_ITER_INLINE const_iterator begin () const noexcept
 
VTK_ITER_INLINE const_iterator end () const noexcept
 
VTK_ITER_INLINE const_iterator cbegin () const noexcept
 
VTK_ITER_INLINE const_iterator cend () const noexcept
 

Protected Member Functions

VTK_ITER_INLINE iterator NewIterator (ComponentIdType comp) const noexcept
 
VTK_ITER_INLINE const_iterator NewConstIterator (ComponentIdType comp) const noexcept
 
VTK_ITER_INLINE void CopyReference (const TupleReference &o) noexcept
 

Protected Attributes

ArrayType * Array
 
NumCompsType NumComps
 
TupleIdType TupleId
 

Friends

struct ConstTupleReference< ArrayType, TupleSize >
 
struct TupleIterator< ArrayType, TupleSize >
 
VTK_ITER_INLINE void swap (TupleReference a, TupleReference b) noexcept
 
template<typename OArray , ComponentIdType OSize>
VTK_ITER_INLINE void swap (TupleReference a, TupleReference< OArray, OSize > b) noexcept
 

Detailed Description

template<typename ArrayType, ComponentIdType TupleSize>
struct vtk::detail::TupleReference< ArrayType, TupleSize >

Definition at line 48 of file vtkDataArrayTupleRange_AOS.h.

Member Typedef Documentation

◆ size_type

template<typename ArrayType, ComponentIdType TupleSize>
using vtk::detail::TupleReference< ArrayType, TupleSize >::size_type = ComponentIdType

Definition at line 957 of file vtkDataArrayTupleRange_Generic.h.

◆ value_type

template<typename ArrayType, ComponentIdType TupleSize>
using vtk::detail::TupleReference< ArrayType, TupleSize >::value_type = APIType

Definition at line 958 of file vtkDataArrayTupleRange_Generic.h.

◆ iterator

template<typename ArrayType, ComponentIdType TupleSize>
using vtk::detail::TupleReference< ArrayType, TupleSize >::iterator = ComponentIterator<ArrayType, TupleSize>

Definition at line 959 of file vtkDataArrayTupleRange_Generic.h.

◆ const_iterator

template<typename ArrayType, ComponentIdType TupleSize>
using vtk::detail::TupleReference< ArrayType, TupleSize >::const_iterator = ConstComponentIterator<ArrayType, TupleSize>

Definition at line 960 of file vtkDataArrayTupleRange_Generic.h.

◆ reference

template<typename ArrayType, ComponentIdType TupleSize>
using vtk::detail::TupleReference< ArrayType, TupleSize >::reference = ComponentReference<ArrayType, TupleSize>

Definition at line 961 of file vtkDataArrayTupleRange_Generic.h.

◆ const_reference

template<typename ArrayType, ComponentIdType TupleSize>
using vtk::detail::TupleReference< ArrayType, TupleSize >::const_reference = ConstComponentReference<ArrayType, TupleSize>

Definition at line 962 of file vtkDataArrayTupleRange_Generic.h.

Constructor & Destructor Documentation

◆ TupleReference() [1/4]

template<typename ArrayType, ComponentIdType TupleSize>
VTK_ITER_INLINE vtk::detail::TupleReference< ArrayType, TupleSize >::TupleReference ( )
inlinenoexcept

Definition at line 965 of file vtkDataArrayTupleRange_Generic.h.

◆ TupleReference() [2/4]

template<typename ArrayType, ComponentIdType TupleSize>
VTK_ITER_INLINE vtk::detail::TupleReference< ArrayType, TupleSize >::TupleReference ( ArrayType *  array,
NumCompsType  numComps,
TupleIdType  tupleId 
)
inlinenoexcept

Definition at line 972 of file vtkDataArrayTupleRange_Generic.h.

◆ TupleReference() [3/4]

template<typename ArrayType, ComponentIdType TupleSize>
VTK_ITER_INLINE vtk::detail::TupleReference< ArrayType, TupleSize >::TupleReference ( const TupleReference< ArrayType, TupleSize > &  )
default

◆ TupleReference() [4/4]

template<typename ArrayType, ComponentIdType TupleSize>
VTK_ITER_INLINE vtk::detail::TupleReference< ArrayType, TupleSize >::TupleReference ( TupleReference< ArrayType, TupleSize > &&  )
default

Member Function Documentation

◆ operator->() [1/2]

template<typename ArrayType, ComponentIdType TupleSize>
VTK_ITER_INLINE TupleReference* vtk::detail::TupleReference< ArrayType, TupleSize >::operator-> ( )
inlinenoexcept

Definition at line 990 of file vtkDataArrayTupleRange_Generic.h.

◆ operator->() [2/2]

template<typename ArrayType, ComponentIdType TupleSize>
const VTK_ITER_INLINE TupleReference* vtk::detail::TupleReference< ArrayType, TupleSize >::operator-> ( ) const
inlinenoexcept

Definition at line 992 of file vtkDataArrayTupleRange_Generic.h.

◆ GetTuple()

template<typename ArrayType, ComponentIdType TupleSize>
VTK_ITER_INLINE void vtk::detail::TupleReference< ArrayType, TupleSize >::GetTuple ( APIType *  tuple) const
inlinenoexcept

Definition at line 996 of file vtkDataArrayTupleRange_Generic.h.

◆ SetTuple()

template<typename ArrayType, ComponentIdType TupleSize>
VTK_ITER_INLINE void vtk::detail::TupleReference< ArrayType, TupleSize >::SetTuple ( const APIType *  tuple)
inlinenoexcept

Definition at line 1006 of file vtkDataArrayTupleRange_Generic.h.

◆ operator=() [1/5]

template<typename ArrayType, ComponentIdType TupleSize>
VTK_ITER_INLINE TupleReference& vtk::detail::TupleReference< ArrayType, TupleSize >::operator= ( const TupleReference< ArrayType, TupleSize > &  other)
inlinenoexcept

Definition at line 1015 of file vtkDataArrayTupleRange_Generic.h.

◆ operator=() [2/5]

template<typename ArrayType, ComponentIdType TupleSize>
template<typename OArrayType , ComponentIdType OSize>
VTK_ITER_INLINE EnableIfStaticTupleSizes<TupleSize, OSize, TupleReference&> vtk::detail::TupleReference< ArrayType, TupleSize >::operator= ( const TupleReference< OArrayType, OSize > &  other)
inlinenoexcept

Definition at line 1023 of file vtkDataArrayTupleRange_Generic.h.

◆ operator=() [3/5]

template<typename ArrayType, ComponentIdType TupleSize>
template<typename OArrayType , ComponentIdType OSize>
VTK_ITER_INLINE EnableIfEitherTupleSizeIsDynamic<TupleSize, OSize, TupleReference&> vtk::detail::TupleReference< ArrayType, TupleSize >::operator= ( const TupleReference< OArrayType, OSize > &  other)
inlinenoexcept

Definition at line 1040 of file vtkDataArrayTupleRange_Generic.h.

◆ operator=() [4/5]

template<typename ArrayType, ComponentIdType TupleSize>
template<typename OArrayType , ComponentIdType OSize>
VTK_ITER_INLINE EnableIfStaticTupleSizes<TupleSize, OSize, TupleReference&> vtk::detail::TupleReference< ArrayType, TupleSize >::operator= ( const ConstTupleReference< OArrayType, OSize > &  other)
inlinenoexcept

Definition at line 1057 of file vtkDataArrayTupleRange_Generic.h.

◆ operator=() [5/5]

template<typename ArrayType, ComponentIdType TupleSize>
template<typename OArrayType , ComponentIdType OSize>
VTK_ITER_INLINE EnableIfEitherTupleSizeIsDynamic<TupleSize, OSize, TupleReference&> vtk::detail::TupleReference< ArrayType, TupleSize >::operator= ( const ConstTupleReference< OArrayType, OSize > &  other)
inlinenoexcept

Definition at line 1074 of file vtkDataArrayTupleRange_Generic.h.

◆ operator==() [1/4]

template<typename ArrayType, ComponentIdType TupleSize>
template<typename OArrayType , ComponentIdType OSize>
VTK_ITER_INLINE EnableIfStaticTupleSizes<TupleSize, OSize, bool> vtk::detail::TupleReference< ArrayType, TupleSize >::operator== ( const TupleReference< OArrayType, OSize > &  other) const
inlinenoexcept

Definition at line 1091 of file vtkDataArrayTupleRange_Generic.h.

◆ operator==() [2/4]

template<typename ArrayType, ComponentIdType TupleSize>
template<typename OArrayType , ComponentIdType OSize>
VTK_ITER_INLINE EnableIfEitherTupleSizeIsDynamic<TupleSize, OSize, bool> vtk::detail::TupleReference< ArrayType, TupleSize >::operator== ( const TupleReference< OArrayType, OSize > &  other) const
inlinenoexcept

Definition at line 1107 of file vtkDataArrayTupleRange_Generic.h.

◆ operator==() [3/4]

template<typename ArrayType, ComponentIdType TupleSize>
template<typename OArrayType , ComponentIdType OSize>
VTK_ITER_INLINE EnableIfStaticTupleSizes<TupleSize, OSize, bool> vtk::detail::TupleReference< ArrayType, TupleSize >::operator== ( const ConstTupleReference< OArrayType, OSize > &  other) const
inlinenoexcept

Definition at line 1123 of file vtkDataArrayTupleRange_Generic.h.

◆ operator==() [4/4]

template<typename ArrayType, ComponentIdType TupleSize>
template<typename OArrayType , ComponentIdType OSize>
VTK_ITER_INLINE EnableIfEitherTupleSizeIsDynamic<TupleSize, OSize, bool> vtk::detail::TupleReference< ArrayType, TupleSize >::operator== ( const ConstTupleReference< OArrayType, OSize > &  other) const
inlinenoexcept

Definition at line 1139 of file vtkDataArrayTupleRange_Generic.h.

◆ operator!=() [1/2]

template<typename ArrayType, ComponentIdType TupleSize>
template<typename OArrayType , ComponentIdType OSize>
VTK_ITER_INLINE bool vtk::detail::TupleReference< ArrayType, TupleSize >::operator!= ( const TupleReference< OArrayType, OSize > &  o) const
inlinenoexcept

Definition at line 1154 of file vtkDataArrayTupleRange_Generic.h.

◆ operator!=() [2/2]

template<typename ArrayType, ComponentIdType TupleSize>
template<typename OArray , ComponentIdType OSize>
VTK_ITER_INLINE bool vtk::detail::TupleReference< ArrayType, TupleSize >::operator!= ( const ConstTupleReference< OArray, OSize > &  o) const
inlinenoexcept

Definition at line 1160 of file vtkDataArrayTupleRange_Generic.h.

◆ swap() [1/2]

template<typename ArrayType, ComponentIdType TupleSize>
template<typename OArrayType , ComponentIdType OSize>
VTK_ITER_INLINE EnableIfStaticTupleSizes<TupleSize, OSize, void> vtk::detail::TupleReference< ArrayType, TupleSize >::swap ( TupleReference< OArrayType, OSize >  other)
inlinenoexcept

Definition at line 1167 of file vtkDataArrayTupleRange_Generic.h.

◆ swap() [2/2]

template<typename ArrayType, ComponentIdType TupleSize>
template<typename OArrayType , ComponentIdType OSize>
VTK_ITER_INLINE EnableIfEitherTupleSizeIsDynamic<TupleSize, OSize, void> vtk::detail::TupleReference< ArrayType, TupleSize >::swap ( TupleReference< OArrayType, OSize >  other)
inlinenoexcept

Definition at line 1183 of file vtkDataArrayTupleRange_Generic.h.

◆ operator[]() [1/2]

template<typename ArrayType, ComponentIdType TupleSize>
VTK_ITER_INLINE reference vtk::detail::TupleReference< ArrayType, TupleSize >::operator[] ( size_type  i)
inlinenoexcept

Definition at line 1206 of file vtkDataArrayTupleRange_Generic.h.

◆ operator[]() [2/2]

template<typename ArrayType, ComponentIdType TupleSize>
VTK_ITER_INLINE const_reference vtk::detail::TupleReference< ArrayType, TupleSize >::operator[] ( size_type  i) const
inlinenoexcept

Definition at line 1212 of file vtkDataArrayTupleRange_Generic.h.

◆ fill()

template<typename ArrayType, ComponentIdType TupleSize>
VTK_ITER_INLINE void vtk::detail::TupleReference< ArrayType, TupleSize >::fill ( const value_type v)
inlinenoexcept

Definition at line 1219 of file vtkDataArrayTupleRange_Generic.h.

◆ size()

template<typename ArrayType, ComponentIdType TupleSize>
VTK_ITER_INLINE size_type vtk::detail::TupleReference< ArrayType, TupleSize >::size ( ) const
inlinenoexcept

Definition at line 1222 of file vtkDataArrayTupleRange_Generic.h.

◆ begin() [1/2]

template<typename ArrayType, ComponentIdType TupleSize>
VTK_ITER_INLINE iterator vtk::detail::TupleReference< ArrayType, TupleSize >::begin ( )
inlinenoexcept

Definition at line 1225 of file vtkDataArrayTupleRange_Generic.h.

◆ end() [1/2]

template<typename ArrayType, ComponentIdType TupleSize>
VTK_ITER_INLINE iterator vtk::detail::TupleReference< ArrayType, TupleSize >::end ( )
inlinenoexcept

Definition at line 1227 of file vtkDataArrayTupleRange_Generic.h.

◆ begin() [2/2]

template<typename ArrayType, ComponentIdType TupleSize>
VTK_ITER_INLINE const_iterator vtk::detail::TupleReference< ArrayType, TupleSize >::begin ( ) const
inlinenoexcept

Definition at line 1230 of file vtkDataArrayTupleRange_Generic.h.

◆ end() [2/2]

template<typename ArrayType, ComponentIdType TupleSize>
VTK_ITER_INLINE const_iterator vtk::detail::TupleReference< ArrayType, TupleSize >::end ( ) const
inlinenoexcept

Definition at line 1232 of file vtkDataArrayTupleRange_Generic.h.

◆ cbegin()

template<typename ArrayType, ComponentIdType TupleSize>
VTK_ITER_INLINE const_iterator vtk::detail::TupleReference< ArrayType, TupleSize >::cbegin ( ) const
inlinenoexcept

Definition at line 1235 of file vtkDataArrayTupleRange_Generic.h.

◆ cend()

template<typename ArrayType, ComponentIdType TupleSize>
VTK_ITER_INLINE const_iterator vtk::detail::TupleReference< ArrayType, TupleSize >::cend ( ) const
inlinenoexcept

Definition at line 1237 of file vtkDataArrayTupleRange_Generic.h.

◆ NewIterator()

template<typename ArrayType, ComponentIdType TupleSize>
VTK_ITER_INLINE iterator vtk::detail::TupleReference< ArrayType, TupleSize >::NewIterator ( ComponentIdType  comp) const
inlineprotectednoexcept

Definition at line 1244 of file vtkDataArrayTupleRange_Generic.h.

◆ NewConstIterator()

template<typename ArrayType, ComponentIdType TupleSize>
VTK_ITER_INLINE const_iterator vtk::detail::TupleReference< ArrayType, TupleSize >::NewConstIterator ( ComponentIdType  comp) const
inlineprotectednoexcept

Definition at line 1251 of file vtkDataArrayTupleRange_Generic.h.

◆ CopyReference()

template<typename ArrayType, ComponentIdType TupleSize>
VTK_ITER_INLINE void vtk::detail::TupleReference< ArrayType, TupleSize >::CopyReference ( const TupleReference< ArrayType, TupleSize > &  o)
inlineprotectednoexcept

Definition at line 1258 of file vtkDataArrayTupleRange_Generic.h.

Friends And Related Function Documentation

◆ ConstTupleReference< ArrayType, TupleSize >

template<typename ArrayType, ComponentIdType TupleSize>
friend struct ConstTupleReference< ArrayType, TupleSize >
friend

Definition at line 1239 of file vtkDataArrayTupleRange_Generic.h.

◆ TupleIterator< ArrayType, TupleSize >

template<typename ArrayType, ComponentIdType TupleSize>
friend struct TupleIterator< ArrayType, TupleSize >
friend

Definition at line 1240 of file vtkDataArrayTupleRange_Generic.h.

◆ swap [1/2]

template<typename ArrayType, ComponentIdType TupleSize>
VTK_ITER_INLINE void swap ( TupleReference< ArrayType, TupleSize >  a,
TupleReference< ArrayType, TupleSize >  b 
)
friend

Definition at line 1197 of file vtkDataArrayTupleRange_Generic.h.

◆ swap [2/2]

template<typename ArrayType, ComponentIdType TupleSize>
template<typename OArray , ComponentIdType OSize>
VTK_ITER_INLINE void swap ( TupleReference< ArrayType, TupleSize >  a,
TupleReference< OArray, OSize >  b 
)
friend

Definition at line 1200 of file vtkDataArrayTupleRange_Generic.h.

Member Data Documentation

◆ Array

template<typename ArrayType, ComponentIdType TupleSize>
ArrayType* vtk::detail::TupleReference< ArrayType, TupleSize >::Array
mutableprotected

Definition at line 1266 of file vtkDataArrayTupleRange_Generic.h.

◆ NumComps

template<typename ArrayType, ComponentIdType TupleSize>
NumCompsType vtk::detail::TupleReference< ArrayType, TupleSize >::NumComps
protected

Definition at line 1267 of file vtkDataArrayTupleRange_Generic.h.

◆ TupleId

template<typename ArrayType, ComponentIdType TupleSize>
TupleIdType vtk::detail::TupleReference< ArrayType, TupleSize >::TupleId
protected

Definition at line 1268 of file vtkDataArrayTupleRange_Generic.h.


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