Go to the documentation of this file.
18 #ifndef viskores_cont_Initialize_h
19 #define viskores_cont_Initialize_h
26 #include <type_traits>
86 using T = std::underlying_type<InitializeOptions>::type;
91 using T = std::underlying_type<InitializeOptions>::type;
126 #endif // viskores_cont_Initialize_h
Definition: Initialize.h:34
@ ErrorOnBadOption
If an unknown option is encountered, the program terminates with an error and a usage statement is pr...
@ Strict
If supplied, Initialize treats its own arguments as the only ones supported by the application and pr...
#define VISKORES_CONT
Definition: ExportMacros.h:65
Groups connected points that have the same field value.
Definition: Atomic.h:27
InitializeOptions operator|(const InitializeOptions &lhs, const InitializeOptions &rhs)
Definition: Initialize.h:84
Tag for a device adapter used to avoid specifying a device.
Definition: DeviceAdapterTag.h:201
InitializeOptions
Definition: Initialize.h:48
@ ErrorOnBadArgument
If an extra argument is encountered, the program terminates with an error and a usage statement is pr...
@ AddHelp
Add a help argument.
An object used to specify a device.
Definition: DeviceAdapterTag.h:66
@ RequireDevice
Issue an error if the device argument is not specified.
@ None
Placeholder used when no options are enabled.
InitializeResult Initialize(int &argc, char *argv[], InitializeOptions opts=InitializeOptions::None)
Initialize the Viskores library, parsing arguments when provided:
DeviceAdapterId Device
The device passed into --viskores-device argument.
Definition: Initialize.h:40
InitializeOptions operator&(const InitializeOptions &lhs, const InitializeOptions &rhs)
Definition: Initialize.h:89
@ DefaultAnyDevice
If no device is specified, treat it as if the user gave --viskores-device=Any.
std::string Usage
A usage statement for arguments parsed by Viskores.
Definition: Initialize.h:45