Viskores  1.0
Classes | Namespaces | Macros
Storage.h File Reference
#include <viskores/Flags.h>
#include <viskores/StaticAssert.h>
#include <viskores/internal/ArrayPortalDummy.h>
#include <viskores/cont/ErrorBadAllocation.h>
#include <viskores/cont/Logging.h>
#include <viskores/cont/Token.h>
#include <viskores/cont/internal/Buffer.h>

Go to the source code of this file.

Classes

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

Namespaces

 viskores
 Groups connected points that have the same field value.
 
 viskores::cont
 Viskores Control Environment.
 

Macros

#define VISKORES_STORAGE_ERROR   -2
 
#define VISKORES_STORAGE_UNDEFINED   -1
 
#define VISKORES_STORAGE_BASIC   1
 
#define VISKORES_STORAGE   VISKORES_STORAGE_BASIC
 
#define VISKORES_STORAGE_NO_RESIZE
 
#define VISKORES_STORAGE_NO_WRITE_PORTAL
 

Macro Definition Documentation

◆ VISKORES_STORAGE

#define VISKORES_STORAGE   VISKORES_STORAGE_BASIC

◆ VISKORES_STORAGE_BASIC

#define VISKORES_STORAGE_BASIC   1

◆ VISKORES_STORAGE_ERROR

#define VISKORES_STORAGE_ERROR   -2

◆ VISKORES_STORAGE_NO_RESIZE

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

◆ VISKORES_STORAGE_NO_WRITE_PORTAL

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

◆ VISKORES_STORAGE_UNDEFINED

#define VISKORES_STORAGE_UNDEFINED   -1
viskores::cont::ErrorBadAllocation
This class is thrown when Viskores attempts to manipulate memory that it should not.
Definition: ErrorBadAllocation.h:33
viskores::Id
viskores::Int64 Id
Base type to use to index arrays.
Definition: Types.h:235
VISKORES_CONT
#define VISKORES_CONT
Definition: ExportMacros.h:65
viskores::cont::DeviceAdapterId
An object used to specify a device.
Definition: DeviceAdapterTag.h:66
viskores::CopyFlag
CopyFlag
Identifier used to specify whether a function should deep copy data.
Definition: Flags.h:25
viskores::cont::Token
A token to hold the scope of an ArrayHandle or other object.
Definition: Token.h:43
viskores::cont::TypeToString
std::string TypeToString(const std::type_info &t)
Use RTTI information to retrieve the name of the type T.