VTK-m  2.0
Classes | Namespaces | Macros
Storage.h File Reference
#include <vtkm/Flags.h>
#include <vtkm/StaticAssert.h>
#include <vtkm/internal/ArrayPortalDummy.h>
#include <vtkm/cont/ErrorBadAllocation.h>
#include <vtkm/cont/Logging.h>
#include <vtkm/cont/Token.h>
#include <vtkm/cont/internal/Buffer.h>

Go to the source code of this file.

Classes

struct  vtkm::cont::StorageTag___
 A tag specifying client memory allocation. More...
 

Namespaces

 vtkm
 Groups connected points that have the same field value.
 
 vtkm::cont
 VTK-m Control Environment.
 

Macros

#define VTKM_STORAGE_ERROR   -2
 
#define VTKM_STORAGE_UNDEFINED   -1
 
#define VTKM_STORAGE_BASIC   1
 
#define VTKM_STORAGE   VTKM_STORAGE_BASIC
 
#define VTKM_STORAGE_NO_RESIZE
 
#define VTKM_STORAGE_NO_WRITE_PORTAL
 

Macro Definition Documentation

◆ VTKM_STORAGE

#define VTKM_STORAGE   VTKM_STORAGE_BASIC

◆ VTKM_STORAGE_BASIC

#define VTKM_STORAGE_BASIC   1

◆ VTKM_STORAGE_ERROR

#define VTKM_STORAGE_ERROR   -2

◆ VTKM_STORAGE_NO_RESIZE

#define VTKM_STORAGE_NO_RESIZE
Value:
VTKM_CONT static void ResizeBuffers(vtkm::Id numValues, \
const std::vector<vtkm::cont::internal::Buffer>& buffers, \
{ \
vtkm::cont::internal::detail::StorageNoResizeImpl( \
GetNumberOfValues(buffers), \
numValues, \
vtkm::cont::TypeToString<typename vtkm::cont::internal::StorageTraits<Storage>::Tag>()); \
} \
using ResizeBuffersEatComma = void

◆ VTKM_STORAGE_NO_WRITE_PORTAL

#define VTKM_STORAGE_NO_WRITE_PORTAL
Value:
using WritePortalType = vtkm::internal::ArrayPortalDummy< \
typename vtkm::cont::internal::StorageTraits<Storage>::ValueType>; \
VTKM_CONT static void Fill( \
const std::vector<vtkm::cont::internal::Buffer>&, \
const typename vtkm::cont::internal::StorageTraits<Storage>::ValueType&, \
{ \
"Cannot write to arrays with storage type of " + \
vtkm::cont::TypeToString<typename vtkm::cont::internal::StorageTraits<Storage>::Tag>()); \
} \
VTKM_CONT static WritePortalType CreateWritePortal( \
const std::vector<vtkm::cont::internal::Buffer>&, \
{ \
"Cannot write to arrays with storage type of " + \
vtkm::cont::TypeToString<typename vtkm::cont::internal::StorageTraits<Storage>::Tag>()); \
} \
using CreateWritePortalEatComma = void

◆ VTKM_STORAGE_UNDEFINED

#define VTKM_STORAGE_UNDEFINED   -1
vtkm::Id
vtkm::Int32 Id
Represents an ID (index into arrays).
Definition: Types.h:191
vtkm::cont::Token
A token to hold the scope of an ArrayHandle or other object.
Definition: Token.h:35
VTKM_CONT
#define VTKM_CONT
Definition: ExportMacros.h:57
vtkm::cont::DeviceAdapterId
Definition: DeviceAdapterTag.h:52
vtkm::cont::ErrorBadAllocation
This class is thrown when VTK-m attempts to manipulate memory that it should not.
Definition: ErrorBadAllocation.h:25
vtkm::CopyFlag
CopyFlag
Definition: Flags.h:16
vtkm::cont::TypeToString
VTKM_CONT_EXPORT VTKM_CONT std::string TypeToString(const std::type_info &t)
Use RTTI information to retrieve the name of the type T.