VTK-m  2.1
Public Types | Static Public Member Functions | List of all members
vtkm::VecTraits< T * > Struct Template Reference

#include <VecTraits.h>

Inheritance diagram for vtkm::VecTraits< T * >:
vtkm::VecTraits< T > vtkm::VecTraits< const T * >

Public Types

template<typename NewComponentType >
using ReplaceComponentType = typename VecTraits< T >::template ReplaceComponentType< NewComponentType > *
 
template<typename NewComponentType >
using ReplaceBaseComponentType = typename VecTraits< T >::template ReplaceBaseComponentType< NewComponentType > *
 
- Public Types inherited from vtkm::VecTraits< T >
using ComponentType = T
 Type of the components in the vector. More...
 
using BaseComponentType = T
 Base component type in the vector. More...
 
using HasMultipleComponents = vtkm::VecTraitsTagSingleComponent
 A tag specifying whether this vector has multiple components (i.e. More...
 
using IsSizeStatic = vtkm::VecTraitsTagSizeStatic
 A tag specifying whether the size of this vector is known at compile time. More...
 
template<typename NewComponentType >
using ReplaceComponentType = NewComponentType
 Get a vector of the same type but with a different component. More...
 
template<typename NewComponentType >
using ReplaceBaseComponentType = NewComponentType
 Get a vector of the same type but with a different base component. More...
 

Static Public Member Functions

static vtkm::IdComponent GetNumberOfComponents (const T *vector)
 
static auto GetComponent (const T *vector, vtkm::IdComponent component) -> decltype(VecTraits< T >::GetComponent(*vector, component))
 
static auto GetComponent (T *vector, vtkm::IdComponent component) -> decltype(VecTraits< T >::GetComponent(*vector, component))
 
static void SetComponent (T *vector, vtkm::IdComponent component, typename VecTraits< T >::ComponentType value)
 
template<vtkm::IdComponent destSize>
static void CopyInto (const T *src, vtkm::Vec< typename VecTraits< T >::ComponentType, destSize > &dest)
 
- Static Public Member Functions inherited from vtkm::VecTraits< T >
static constexpr vtkm::IdComponent GetNumberOfComponents (const T &)
 Returns the number of components in the given vector. More...
 
static const ComponentTypeGetComponent (const T &vector, vtkm::IdComponent)
 Returns the value in a given component of the vector. More...
 
static ComponentTypeGetComponent (T &vector, vtkm::IdComponent)
 Returns the value in a given component of the vector. More...
 
static void SetComponent (T &vector, vtkm::IdComponent, ComponentType value)
 Changes the value in a given component of the vector. More...
 
template<vtkm::IdComponent destSize>
static void CopyInto (const T &src, vtkm::Vec< ComponentType, destSize > &dest)
 Copies the components in the given vector into a given Vec object. More...
 

Additional Inherited Members

- Static Public Attributes inherited from vtkm::VecTraits< T >
static constexpr vtkm::IdComponent NUM_COMPONENTS = 1
 Number of components in the vector. More...
 

Member Typedef Documentation

◆ ReplaceBaseComponentType

template<typename T >
template<typename NewComponentType >
using vtkm::VecTraits< T * >::ReplaceBaseComponentType = typename VecTraits<T>::template ReplaceBaseComponentType<NewComponentType>*

◆ ReplaceComponentType

template<typename T >
template<typename NewComponentType >
using vtkm::VecTraits< T * >::ReplaceComponentType = typename VecTraits<T>::template ReplaceComponentType<NewComponentType>*

Member Function Documentation

◆ CopyInto()

template<typename T >
template<vtkm::IdComponent destSize>
static void vtkm::VecTraits< T * >::CopyInto ( const T *  src,
vtkm::Vec< typename VecTraits< T >::ComponentType, destSize > &  dest 
)
inlinestatic

◆ GetComponent() [1/2]

template<typename T >
static auto vtkm::VecTraits< T * >::GetComponent ( const T *  vector,
vtkm::IdComponent  component 
) -> decltype(VecTraits<T>::GetComponent(*vector, component))
inlinestatic

◆ GetComponent() [2/2]

template<typename T >
static auto vtkm::VecTraits< T * >::GetComponent ( T *  vector,
vtkm::IdComponent  component 
) -> decltype(VecTraits<T>::GetComponent(*vector, component))
inlinestatic

◆ GetNumberOfComponents()

template<typename T >
static vtkm::IdComponent vtkm::VecTraits< T * >::GetNumberOfComponents ( const T *  vector)
inlinestatic

◆ SetComponent()

template<typename T >
static void vtkm::VecTraits< T * >::SetComponent ( T *  vector,
vtkm::IdComponent  component,
typename VecTraits< T >::ComponentType  value 
)
inlinestatic

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