VTK-m
2.0
|
#include <PartitionedDataSet.h>
Public Types | |
using | iterator = typename StorageVec::iterator |
using | const_iterator = typename StorageVec::const_iterator |
using | value_type = typename StorageVec::value_type |
using | reference = typename StorageVec::reference |
using | const_reference = typename StorageVec::const_reference |
Public Member Functions | |
VTKM_CONT | PartitionedDataSet (const vtkm::cont::DataSet &ds) |
Create a new PartitionedDataSet containng a single DataSet ds. More... | |
VTKM_CONT | PartitionedDataSet (const std::vector< vtkm::cont::DataSet > &partitions) |
Create a new PartitionedDataSet with a DataSet vector partitions. More... | |
VTKM_CONT | PartitionedDataSet (vtkm::Id size) |
Create a new PartitionedDataSet with the capacity set to be size. More... | |
VTKM_CONT | PartitionedDataSet ()=default |
VTKM_CONT vtkm::cont::Field | GetFieldFromPartition (const std::string &field_name, int partition_index) const |
Get the field field_name from partition partition_index. More... | |
VTKM_CONT vtkm::Id | GetNumberOfPartitions () const |
Get number of DataSet objects stored in this PartitionedDataSet. More... | |
VTKM_CONT vtkm::Id | GetGlobalNumberOfPartitions () const |
Get number of partations across all MPI ranks. More... | |
const VTKM_CONT vtkm::cont::DataSet & | GetPartition (vtkm::Id partId) const |
Get the DataSet partId. More... | |
const VTKM_CONT std::vector< vtkm::cont::DataSet > & | GetPartitions () const |
Get an STL vector of all DataSet objects stored in PartitionedDataSet. More... | |
VTKM_CONT void | AppendPartition (const vtkm::cont::DataSet &ds) |
Add DataSet ds to the end of the contained DataSet vector. More... | |
VTKM_CONT void | InsertPartition (vtkm::Id index, const vtkm::cont::DataSet &ds) |
Add DataSet ds to position index of the contained DataSet vector. More... | |
VTKM_CONT void | ReplacePartition (vtkm::Id index, const vtkm::cont::DataSet &ds) |
Replace the index positioned element of the contained DataSet vector with ds. More... | |
VTKM_CONT void | AppendPartitions (const std::vector< vtkm::cont::DataSet > &partitions) |
Append the DataSet vector partitions to the end of the contained one. More... | |
VTKM_CONT void | CopyPartitions (const vtkm::cont::PartitionedDataSet &source) |
Copies the partitions from the source. The fields on the PartitionedDataSet are not copied. More... | |
VTKM_CONT void | PrintSummary (std::ostream &stream) const |
VTKM_CONT vtkm::IdComponent | GetNumberOfFields () const |
VTKM_CONT void | AddField (const Field &field) |
template<typename T , typename Storage > | |
VTKM_CONT void | AddGlobalField (const std::string &fieldName, const vtkm::cont::ArrayHandle< T, Storage > &field) |
template<typename T > | |
VTKM_CONT void | AddGlobalField (const std::string &fieldName, const std::vector< T > &field) |
template<typename T > | |
VTKM_CONT void | AddGlobalField (const std::string &fieldName, const T *field, const vtkm::Id &n) |
template<typename T , typename Storage > | |
VTKM_CONT void | AddPartitionsField (const std::string &fieldName, const vtkm::cont::ArrayHandle< T, Storage > &field) |
template<typename T > | |
VTKM_CONT void | AddPartitionsField (const std::string &fieldName, const std::vector< T > &field) |
template<typename T > | |
VTKM_CONT void | AddPartitionsField (const std::string &fieldName, const T *field, const vtkm::Id &n) |
const VTKM_CONT vtkm::cont::Field & | GetField (vtkm::Id index) const |
VTKM_CONT vtkm::cont::Field & | GetField (vtkm::Id index) |
const VTKM_CONT vtkm::cont::Field & | GetField (const std::string &name, vtkm::cont::Field::Association assoc=vtkm::cont::Field::Association::Any) const |
VTKM_CONT vtkm::cont::Field & | GetField (const std::string &name, vtkm::cont::Field::Association assoc=vtkm::cont::Field::Association::Any) |
const VTKM_CONT vtkm::cont::Field & | GetGlobalField (const std::string &name) const |
const VTKM_CONT vtkm::cont::Field & | GetPartitionsField (const std::string &name) const |
VTKM_CONT vtkm::cont::Field & | GetGlobalField (const std::string &name) |
VTKM_CONT vtkm::cont::Field & | GetPartitionsField (const std::string &name) |
VTKM_CONT bool | HasField (const std::string &name, vtkm::cont::Field::Association assoc=vtkm::cont::Field::Association::Any) const |
VTKM_CONT bool | HasGlobalField (const std::string &name) const |
VTKM_CONT bool | HasPartitionsField (const std::string &name) const |
VTKM_CONT iterator | begin () noexcept |
VTKM_CONT iterator | end () noexcept |
VTKM_CONT const_iterator | begin () const noexcept |
VTKM_CONT const_iterator | end () const noexcept |
VTKM_CONT const_iterator | cbegin () const noexcept |
VTKM_CONT const_iterator | cend () const noexcept |
Private Types | |
using | StorageVec = std::vector< vtkm::cont::DataSet > |
Private Attributes | |
std::vector< vtkm::cont::DataSet > | Partitions |
vtkm::cont::internal::FieldCollection | Fields |
using vtkm::cont::PartitionedDataSet::const_iterator = typename StorageVec::const_iterator |
using vtkm::cont::PartitionedDataSet::const_reference = typename StorageVec::const_reference |
using vtkm::cont::PartitionedDataSet::iterator = typename StorageVec::iterator |
using vtkm::cont::PartitionedDataSet::reference = typename StorageVec::reference |
|
private |
using vtkm::cont::PartitionedDataSet::value_type = typename StorageVec::value_type |
VTKM_CONT vtkm::cont::PartitionedDataSet::PartitionedDataSet | ( | const vtkm::cont::DataSet & | ds | ) |
Create a new PartitionedDataSet containng a single DataSet ds.
|
explicit |
Create a new PartitionedDataSet with a DataSet vector partitions.
Create a new PartitionedDataSet with the capacity set to be size.
|
default |
Methods to Add and Get fields on a PartitionedDataSet
|
inline |
Methods to Add and Get fields on a PartitionedDataSet
|
inline |
Methods to Add and Get fields on a PartitionedDataSet
|
inline |
Methods to Add and Get fields on a PartitionedDataSet
|
inline |
Methods to Add and Get fields on a PartitionedDataSet
|
inline |
Methods to Add and Get fields on a PartitionedDataSet
|
inline |
Methods to Add and Get fields on a PartitionedDataSet
VTKM_CONT void vtkm::cont::PartitionedDataSet::AppendPartition | ( | const vtkm::cont::DataSet & | ds | ) |
VTKM_CONT void vtkm::cont::PartitionedDataSet::AppendPartitions | ( | const std::vector< vtkm::cont::DataSet > & | partitions | ) |
Append the DataSet vector partitions to the end of the contained one.
|
inlinenoexcept |
API to support range-based for loops on partitions.
API to support range-based for loops on partitions.
|
inlinenoexcept |
API to support range-based for loops on partitions.
|
inlinenoexcept |
API to support range-based for loops on partitions.
VTKM_CONT void vtkm::cont::PartitionedDataSet::CopyPartitions | ( | const vtkm::cont::PartitionedDataSet & | source | ) |
Copies the partitions from the source. The fields on the PartitionedDataSet are not copied.
|
inlinenoexcept |
API to support range-based for loops on partitions.
API to support range-based for loops on partitions.
|
inline |
Methods to Add and Get fields on a PartitionedDataSet
|
inline |
Methods to Add and Get fields on a PartitionedDataSet
|
inline |
Methods to Add and Get fields on a PartitionedDataSet
|
inline |
Methods to Add and Get fields on a PartitionedDataSet
VTKM_CONT vtkm::cont::Field vtkm::cont::PartitionedDataSet::GetFieldFromPartition | ( | const std::string & | field_name, |
int | partition_index | ||
) | const |
Get the field field_name from partition partition_index.
|
inline |
Methods to Add and Get fields on a PartitionedDataSet
|
inline |
Methods to Add and Get fields on a PartitionedDataSet
Get number of partations across all MPI ranks.
|
inline |
Methods to Add and Get fields on a PartitionedDataSet
Get number of DataSet objects stored in this PartitionedDataSet.
const VTKM_CONT vtkm::cont::DataSet& vtkm::cont::PartitionedDataSet::GetPartition | ( | vtkm::Id | partId | ) | const |
Get the DataSet partId.
const VTKM_CONT std::vector<vtkm::cont::DataSet>& vtkm::cont::PartitionedDataSet::GetPartitions | ( | ) | const |
Get an STL vector of all DataSet objects stored in PartitionedDataSet.
|
inline |
Methods to Add and Get fields on a PartitionedDataSet
|
inline |
Methods to Add and Get fields on a PartitionedDataSet
|
inline |
Methods to Add and Get fields on a PartitionedDataSet
|
inline |
Methods to Add and Get fields on a PartitionedDataSet
|
inline |
Methods to Add and Get fields on a PartitionedDataSet
VTKM_CONT void vtkm::cont::PartitionedDataSet::InsertPartition | ( | vtkm::Id | index, |
const vtkm::cont::DataSet & | ds | ||
) |
VTKM_CONT void vtkm::cont::PartitionedDataSet::PrintSummary | ( | std::ostream & | stream | ) | const |
VTKM_CONT void vtkm::cont::PartitionedDataSet::ReplacePartition | ( | vtkm::Id | index, |
const vtkm::cont::DataSet & | ds | ||
) |
Replace the index positioned element of the contained DataSet vector with ds.
|
private |
|
private |