Viskores
1.0
viskores
cont
AssignerPartitionedDataSet.h
Go to the documentation of this file.
1
//============================================================================
2
// The contents of this file are covered by the Viskores license. See
3
// LICENSE.txt for details.
4
//
5
// By contributing to this file, all contributors agree to the Developer
6
// Certificate of Origin Version 1.1 (DCO 1.1) as stated in DCO.txt.
7
//============================================================================
8
9
//============================================================================
10
// Copyright (c) Kitware, Inc.
11
// All rights reserved.
12
// See LICENSE.txt for details.
13
//
14
// This software is distributed WITHOUT ANY WARRANTY; without even
15
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
16
// PURPOSE. See the above copyright notice for more information.
17
//============================================================================
18
#ifndef viskores_cont_AssignerPartitionedDataSet_h
19
#define viskores_cont_AssignerPartitionedDataSet_h
20
21
#include <
viskores/cont/viskores_cont_export.h
>
22
23
#include <
viskores/Types.h
>
24
#include <
viskores/internal/ExportMacros.h
>
25
#include <viskores/thirdparty/diy/Configure.h>
26
27
#include <vector>
28
29
#include <viskores/thirdparty/diy/diy.h>
30
31
#ifdef VISKORES_MSVC
32
#pragma warning(push)
33
// disable C4275: non-dll interface base class warnings
34
#pragma warning(disable : 4275)
35
#endif
36
37
namespace
viskores
38
{
39
namespace
cont
40
{
41
42
class
PartitionedDataSet;
43
57
class
VISKORES_CONT_EXPORT
AssignerPartitionedDataSet
:
public
viskoresdiy::StaticAssigner
58
{
59
public
:
63
VISKORES_CONT
64
AssignerPartitionedDataSet
(
const
viskores::cont::PartitionedDataSet
& pds);
65
66
VISKORES_CONT
67
AssignerPartitionedDataSet
(
viskores::Id
num_partitions);
68
69
VISKORES_CONT
70
~
AssignerPartitionedDataSet
()
override
;
71
74
VISKORES_CONT
75
void
local_gids(
int
rank, std::vector<int>& gids)
const override
;
76
77
VISKORES_CONT
78
int
rank(
int
gid)
const override
;
80
private
:
81
std::vector<viskores::Id>
IScanPartitionCounts
;
82
};
83
}
84
}
85
86
#ifdef VISKORES_MSVC
87
#pragma warning(pop)
88
#endif
89
90
#endif
Types.h
viskores::cont::AssignerPartitionedDataSet::IScanPartitionCounts
std::vector< viskores::Id > IScanPartitionCounts
Definition:
AssignerPartitionedDataSet.h:81
ExportMacros.h
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
Groups connected points that have the same field value.
Definition:
Atomic.h:27
viskores::cont::PartitionedDataSet
Comprises a set of viskores::cont::DataSet objects.
Definition:
PartitionedDataSet.h:34
viskores::cont::AssignerPartitionedDataSet
Assigner for PartitionedDataSet partitions.
Definition:
AssignerPartitionedDataSet.h:57
viskores_cont_export.h
Generated by
1.8.17