VTK-m  1.5
Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
vtkm::cont::Field Class Reference

A Field encapsulates an array on some piece of the mesh, such as the points, a cell set, a point logical dimension, or the whole mesh. More...

#include <Field.h>

Inheritance diagram for vtkm::cont::Field:
Inheritance graph
[legend]
Collaboration diagram for vtkm::cont::Field:
Collaboration graph
[legend]

Public Types

enum  Association { Association::ANY, Association::WHOLE_MESH, Association::POINTS, Association::CELL_SET }
 

Public Member Functions

VTKM_CONT Field ()=default
 
VTKM_CONT Field (std::string name, Association association, const vtkm::cont::VariantArrayHandle &data)
 
template<typename T , typename Storage >
VTKM_CONT Field (std::string name, Association association, const vtkm::cont::ArrayHandle< T, Storage > &data)
 
 Field (const vtkm::cont::Field &src)
 
 Field (vtkm::cont::Field &&src) noexcept
 
virtual VTKM_CONT ~Field ()
 
VTKM_CONT Fieldoperator= (const vtkm::cont::Field &src)
 
VTKM_CONT Fieldoperator= (vtkm::cont::Field &&src) noexcept
 
VTKM_CONT const std::string & GetName () const
 
VTKM_CONT Association GetAssociation () const
 
const vtkm::cont::VariantArrayHandleGetData () const
 
vtkm::cont::VariantArrayHandleGetData ()
 
VTKM_CONT bool IsFieldCell () const
 
VTKM_CONT bool IsFieldPoint () const
 
VTKM_CONT vtkm::Id GetNumberOfValues () const
 
template<typename TypeList >
VTKM_CONT void GetRange (vtkm::Range *range, TypeList) const
 
template<typename TypeList >
VTKM_CONT const vtkm::cont::ArrayHandle< vtkm::Range > & GetRange (TypeList) const
 
VTKM_CONT const vtkm::cont::ArrayHandle< vtkm::Range > & GetRange () const
 
VTKM_CONT void GetRange (vtkm::Range *range) const
 
template<typename T , typename StorageTag >
VTKM_CONT void SetData (const vtkm::cont::ArrayHandle< T, StorageTag > &newdata)
 
VTKM_CONT void SetData (const vtkm::cont::VariantArrayHandle &newdata)
 
virtual VTKM_CONT void PrintSummary (std::ostream &out) const
 
virtual VTKM_CONT void ReleaseResourcesExecution ()
 

Private Member Functions

template<typename TypeList >
VTKM_CONT const vtkm::cont::ArrayHandle< vtkm::Range > & GetRangeImpl (TypeList) const
 

Private Attributes

std::string Name
 name of field More...
 
Association FieldAssociation = Association::ANY
 
vtkm::cont::VariantArrayHandle Data
 
vtkm::cont::ArrayHandle< vtkm::RangeRange
 
bool ModifiedFlag = true
 

Detailed Description

A Field encapsulates an array on some piece of the mesh, such as the points, a cell set, a point logical dimension, or the whole mesh.

Member Enumeration Documentation

Enumerator
ANY 
WHOLE_MESH 
POINTS 
CELL_SET 

Constructor & Destructor Documentation

VTKM_CONT vtkm::cont::Field::Field ( )
default
VTKM_CONT vtkm::cont::Field::Field ( std::string  name,
Association  association,
const vtkm::cont::VariantArrayHandle data 
)
template<typename T , typename Storage >
VTKM_CONT vtkm::cont::Field::Field ( std::string  name,
Association  association,
const vtkm::cont::ArrayHandle< T, Storage > &  data 
)
inline
vtkm::cont::Field::Field ( const vtkm::cont::Field src)
vtkm::cont::Field::Field ( vtkm::cont::Field &&  src)
noexcept
virtual VTKM_CONT vtkm::cont::Field::~Field ( )
virtual

Member Function Documentation

VTKM_CONT Association vtkm::cont::Field::GetAssociation ( ) const
inline
const vtkm::cont::VariantArrayHandle& vtkm::cont::Field::GetData ( ) const
vtkm::cont::VariantArrayHandle& vtkm::cont::Field::GetData ( )
VTKM_CONT const std::string& vtkm::cont::Field::GetName ( ) const
inline
VTKM_CONT vtkm::Id vtkm::cont::Field::GetNumberOfValues ( ) const
inline
template<typename TypeList >
VTKM_CONT void vtkm::cont::Field::GetRange ( vtkm::Range range,
TypeList   
) const
inline
template<typename TypeList >
VTKM_CONT const vtkm::cont::ArrayHandle<vtkm::Range>& vtkm::cont::Field::GetRange ( TypeList  ) const
inline
VTKM_CONT const vtkm::cont::ArrayHandle<vtkm::Range>& vtkm::cont::Field::GetRange ( ) const
inline
VTKM_CONT void vtkm::cont::Field::GetRange ( vtkm::Range range) const
inline
template<typename TypeList >
VTKM_CONT const vtkm::cont::ArrayHandle<vtkm::Range>& vtkm::cont::Field::GetRangeImpl ( TypeList  ) const
inlineprivate
VTKM_CONT bool vtkm::cont::Field::IsFieldCell ( ) const
inline
VTKM_CONT bool vtkm::cont::Field::IsFieldPoint ( ) const
inline
VTKM_CONT Field& vtkm::cont::Field::operator= ( const vtkm::cont::Field src)
VTKM_CONT Field& vtkm::cont::Field::operator= ( vtkm::cont::Field &&  src)
noexcept
virtual VTKM_CONT void vtkm::cont::Field::PrintSummary ( std::ostream &  out) const
virtual

Reimplemented in vtkm::cont::CoordinateSystem.

virtual VTKM_CONT void vtkm::cont::Field::ReleaseResourcesExecution ( )
inlinevirtual

Reimplemented in vtkm::cont::CoordinateSystem.

template<typename T , typename StorageTag >
VTKM_CONT void vtkm::cont::Field::SetData ( const vtkm::cont::ArrayHandle< T, StorageTag > &  newdata)
inline
VTKM_CONT void vtkm::cont::Field::SetData ( const vtkm::cont::VariantArrayHandle newdata)
inline

Member Data Documentation

vtkm::cont::VariantArrayHandle vtkm::cont::Field::Data
private
Association vtkm::cont::Field::FieldAssociation = Association::ANY
private
bool vtkm::cont::Field::ModifiedFlag = true
mutableprivate
std::string vtkm::cont::Field::Name
private

name of field

vtkm::cont::ArrayHandle<vtkm::Range> vtkm::cont::Field::Range
mutableprivate

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