Viskores  1.0
Public Types | Static Public Member Functions | Static Public Attributes | List of all members
viskores::VecTraits< viskores::Range > Struct Reference

#include <Range.h>

Public Types

using ComponentType = viskores::Float64
 
using BaseComponentType = viskores::Float64
 
using HasMultipleComponents = viskores::VecTraitsTagMultipleComponents
 
using IsSizeStatic = viskores::VecTraitsTagSizeStatic
 
template<typename NewComponentType >
using ReplaceComponentType = viskores::Vec< NewComponentType, NUM_COMPONENTS >
 
template<typename NewComponentType >
using ReplaceBaseComponentType = viskores::Vec< NewComponentType, NUM_COMPONENTS >
 

Static Public Member Functions

static constexpr viskores::IdComponent GetNumberOfComponents (const viskores::Range &)
 
static const ComponentTypeGetComponent (const viskores::Range &range, viskores::IdComponent component)
 
static ComponentTypeGetComponent (viskores::Range &range, viskores::IdComponent component)
 
static void SetComponent (viskores::Range &range, viskores::IdComponent component, ComponentType value)
 
template<viskores::IdComponent destSize>
static void CopyInto (const viskores::Range &src, viskores::Vec< ComponentType, destSize > &dest)
 

Static Public Attributes

static constexpr viskores::IdComponent NUM_COMPONENTS = 2
 

Member Typedef Documentation

◆ BaseComponentType

◆ ComponentType

◆ HasMultipleComponents

◆ IsSizeStatic

◆ ReplaceBaseComponentType

template<typename NewComponentType >
using viskores::VecTraits< viskores::Range >::ReplaceBaseComponentType = viskores::Vec<NewComponentType, NUM_COMPONENTS>

◆ ReplaceComponentType

template<typename NewComponentType >
using viskores::VecTraits< viskores::Range >::ReplaceComponentType = viskores::Vec<NewComponentType, NUM_COMPONENTS>

Member Function Documentation

◆ CopyInto()

template<viskores::IdComponent destSize>
static void viskores::VecTraits< viskores::Range >::CopyInto ( const viskores::Range src,
viskores::Vec< ComponentType, destSize > &  dest 
)
inlinestatic

◆ GetComponent() [1/2]

static const ComponentType& viskores::VecTraits< viskores::Range >::GetComponent ( const viskores::Range range,
viskores::IdComponent  component 
)
inlinestatic

◆ GetComponent() [2/2]

static ComponentType& viskores::VecTraits< viskores::Range >::GetComponent ( viskores::Range range,
viskores::IdComponent  component 
)
inlinestatic

◆ GetNumberOfComponents()

static constexpr viskores::IdComponent viskores::VecTraits< viskores::Range >::GetNumberOfComponents ( const viskores::Range )
inlinestaticconstexpr

◆ SetComponent()

static void viskores::VecTraits< viskores::Range >::SetComponent ( viskores::Range range,
viskores::IdComponent  component,
ComponentType  value 
)
inlinestatic

Member Data Documentation

◆ NUM_COMPONENTS

constexpr viskores::IdComponent viskores::VecTraits< viskores::Range >::NUM_COMPONENTS = 2
staticconstexpr

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