VTK-m
2.3
Main Page
Related Pages
Modules
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
~
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
Enumerations
Enumerator
Related Functions
Files
File List
File Members
All
a
c
d
e
f
h
i
k
m
o
p
q
r
s
t
u
v
w
x
y
Variables
Typedefs
Macros
e
k
m
q
s
t
u
v
vtkm
cont
internal
RuntimeDeviceOption.h
Go to the documentation of this file.
1
//============================================================================
2
// Copyright (c) Kitware, Inc.
3
// All rights reserved.
4
// See LICENSE.txt for details.
5
//
6
// This software is distributed WITHOUT ANY WARRANTY; without even
7
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
8
// PURPOSE. See the above copyright notice for more information.
9
//============================================================================
10
#ifndef vtk_m_cont_internal_RuntimeDeviceOption_h
11
#define vtk_m_cont_internal_RuntimeDeviceOption_h
12
13
#include <
vtkm/cont/vtkm_cont_export.h
>
14
15
#include <
vtkm/cont/internal/OptionParser.h
>
16
#include <
vtkm/cont/internal/OptionParserArguments.h
>
17
18
namespace
vtkm
19
{
20
namespace
cont
21
{
22
namespace
internal
23
{
24
25
enum class
RuntimeDeviceOptionSource
26
{
27
COMMAND_LINE,
28
ENVIRONMENT,
29
IN_CODE,
30
NOT_SET
31
};
32
33
class
VTKM_CONT_EXPORT
RuntimeDeviceOption
34
{
35
public
:
40
VTKM_CONT
RuntimeDeviceOption(
const
vtkm::Id
& index,
const
std::string& envName);
41
42
VTKM_CONT
virtual
~RuntimeDeviceOption() noexcept;
43
48
VTKM_CONT
void
Initialize
(const option::Option* options);
49
51
VTKM_CONT
void
SetOptionFromEnvironment();
52
54
VTKM_CONT
void
SetOptionFromOptionsArray(const option::Option* options);
55
57
VTKM_CONT
void
SetOption(const
vtkm
::
Id
& value);
58
59
VTKM_CONT
vtkm
::
Id
GetValue() const;
60
VTKM_CONT
RuntimeDeviceOptionSource GetSource() const;
61
VTKM_CONT
bool
IsSet() const;
62
63
private:
64
const
vtkm
::
Id
Index
;
65
const std::
string
EnvName;
66
RuntimeDeviceOptionSource Source;
67
vtkm
::
Id
Value;
68
};
69
70
}
// namespace vtkm::cont::internal
71
}
// namespace vtkm::cont
72
}
// namespace vtkm
73
74
#endif // vtk_m_cont_internal_RuntimeDeviceOption_h
vtkm
Groups connected points that have the same field value.
Definition:
Atomic.h:19
VTKM_CONT_EXPORT
#define VTKM_CONT_EXPORT
Definition:
vtkm_cont_export.h:44
Index
int Index
Definition:
ChooseCudaDevice.h:87
vtkm_cont_export.h
VTKM_CONT
#define VTKM_CONT
Definition:
ExportMacros.h:57
vtkm::Id
vtkm::Int64 Id
Base type to use to index arrays.
Definition:
Types.h:227
OptionParserArguments.h
vtkm::cont::Initialize
InitializeResult Initialize(int &argc, char *argv[], InitializeOptions opts=InitializeOptions::None)
Initialize the VTKm library, parsing arguments when provided:
OptionParser.h
Generated by
1.8.17