|
| PartitionedDataSet (const vtkm::cont::DataSet &ds) |
| Create a new PartitionedDataSet containng a single DataSet ds. More...
|
|
| PartitionedDataSet (const std::vector< vtkm::cont::DataSet > &partitions) |
| Create a new PartitionedDataSet with a DataSet vector partitions. More...
|
|
| PartitionedDataSet (vtkm::Id size) |
| Create a new PartitionedDataSet with the capacity set to be size. More...
|
|
| PartitionedDataSet ()=default |
|
vtkm::cont::Field | GetFieldFromPartition (const std::string &field_name, int partition_index) const |
| Get the field field_name from partition partition_index. More...
|
|
vtkm::Id | GetNumberOfPartitions () const |
| Get number of DataSet objects stored in this PartitionedDataSet. More...
|
|
vtkm::Id | GetGlobalNumberOfPartitions () const |
| Get number of partations across all MPI ranks. More...
|
|
const vtkm::cont::DataSet & | GetPartition (vtkm::Id partId) const |
| Get the DataSet partId. More...
|
|
const std::vector< vtkm::cont::DataSet > & | GetPartitions () const |
| Get an STL vector of all DataSet objects stored in PartitionedDataSet. More...
|
|
void | AppendPartition (const vtkm::cont::DataSet &ds) |
| Add DataSet ds to the end of the list of partitions. More...
|
|
void | InsertPartition (vtkm::Id index, const vtkm::cont::DataSet &ds) |
| Add DataSet ds to position index of the contained DataSet vector. More...
|
|
void | ReplacePartition (vtkm::Id index, const vtkm::cont::DataSet &ds) |
| Replace the index positioned element of the contained DataSet vector with ds. More...
|
|
void | AppendPartitions (const std::vector< vtkm::cont::DataSet > &partitions) |
| Append the DataSet vector partitions to the end of list of partitions. More...
|
|
vtkm::IdComponent | GetNumberOfFields () const |
| Methods to Add and Get fields on a PartitionedDataSet. More...
|
|
void | AddField (const Field &field) |
| Adds a field that is applied to the meta-partition structure. More...
|
|
void | AddField (const std::string &name, vtkm::cont::Field::Association association, const vtkm::cont::UnknownArrayHandle &data) |
| Adds a field that is applied to the meta-partition structure. More...
|
|
template<typename T , typename Storage > |
void | AddGlobalField (const std::string &fieldName, const vtkm::cont::ArrayHandle< T, Storage > &field) |
| Add a field with a global association. More...
|
|
template<typename T > |
void | AddGlobalField (const std::string &fieldName, const std::vector< T > &field) |
|
template<typename T > |
void | AddGlobalField (const std::string &fieldName, const T *field, const vtkm::Id &n) |
|
template<typename T , typename Storage > |
void | AddPartitionsField (const std::string &fieldName, const vtkm::cont::ArrayHandle< T, Storage > &field) |
| Add a field where each entry is associated with a whole partition. More...
|
|
template<typename T > |
void | AddPartitionsField (const std::string &fieldName, const std::vector< T > &field) |
|
template<typename T > |
void | AddPartitionsField (const std::string &fieldName, const T *field, const vtkm::Id &n) |
|
const vtkm::cont::Field & | GetField (vtkm::Id index) const |
|
vtkm::cont::Field & | GetField (vtkm::Id index) |
|
const vtkm::cont::Field & | GetField (const std::string &name, vtkm::cont::Field::Association assoc=vtkm::cont::Field::Association::Any) const |
|
vtkm::cont::Field & | GetField (const std::string &name, vtkm::cont::Field::Association assoc=vtkm::cont::Field::Association::Any) |
| Get a field associated with the partitioned data structure. More...
|
|
const vtkm::cont::Field & | GetGlobalField (const std::string &name) const |
| Get a global field. More...
|
|
const vtkm::cont::Field & | GetPartitionsField (const std::string &name) const |
| Get a field associated with the partitions. More...
|
|
vtkm::cont::Field & | GetGlobalField (const std::string &name) |
|
vtkm::cont::Field & | GetPartitionsField (const std::string &name) |
|
bool | HasField (const std::string &name, vtkm::cont::Field::Association assoc=vtkm::cont::Field::Association::Any) const |
| Query whether the partitioned data set has the named field. More...
|
|
bool | HasGlobalField (const std::string &name) const |
| Query whether the partitioned data set has the named global field. More...
|
|
bool | HasPartitionsField (const std::string &name) const |
| Query whether the partitioned data set has the named partition field. More...
|
|
void | CopyPartitions (const vtkm::cont::PartitionedDataSet &source) |
| Copies the partitions from the source. The fields on the PartitionedDataSet are not copied. More...
|
|
void | PrintSummary (std::ostream &stream) const |
|
|
PartitionedDataSet provides an iterator interface that allows you to iterate over the contained partitions using the for (auto ds : pds) syntax.
|
iterator | begin () noexcept |
|
iterator | end () noexcept |
|
const_iterator | begin () const noexcept |
|
const_iterator | end () const noexcept |
|
const_iterator | cbegin () const noexcept |
|
const_iterator | cend () const noexcept |
|
Comprises a set of vtkm::cont::DataSet
objects.