VTK  9.7.20261204
vtkHDFWriterImplementationData.h File Reference
#include "vtkHDF5ScopedHandle.h"
#include "vtkSmartPointer.h"
#include "vtkType.h"
#include <array>
#include <string>
#include <string_view>
#include <vector>
Include dependency graph for vtkHDFWriterImplementationData.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  vtkHDFWriterImplementationData::GeometryOffset
 Store absolute file offsets for a partition in the current time step. More...
struct  vtkHDFWriterImplementationData::PartitionedOffsets
struct  vtkHDFWriterImplementationData::Subfile
struct  vtkHDFWriterImplementationData::SubfilePartRange
struct  vtkHDFWriterImplementationData::VirtualDataset

Namespaces

namespace  vtkHDFWriterImplementationData
 VTKHDF Writer helpers for partition offsets, subfile metadata, and virtual mappings.

Typedefs

using vtkHDFWriterImplementationData::Subfiles = std::vector<Subfile>

Enumerations

enum class  vtkHDFWriterImplementationData::IndexingMode {
  vtkHDFWriterImplementationData::Points , vtkHDFWriterImplementationData::Cells , vtkHDFWriterImplementationData::Connectivity , vtkHDFWriterImplementationData::FaceConnectivity ,
  vtkHDFWriterImplementationData::FaceOffsets , vtkHDFWriterImplementationData::PolyhedronToFaces , vtkHDFWriterImplementationData::PolyhedronOffsets , vtkHDFWriterImplementationData::TreeDepths ,
  vtkHDFWriterImplementationData::Trees , vtkHDFWriterImplementationData::Descriptor , vtkHDFWriterImplementationData::HTGCoords , vtkHDFWriterImplementationData::MetaData ,
  vtkHDFWriterImplementationData::Undefined
}

Functions

bool vtkHDFWriterImplementationData::CollectOffsets (hid_t group, vtkDataObject *input, vtkMultiProcessController *controller, bool distributed, PartitionedOffsets &offsets)
 Collect temporal file extents, then add the current partition offsets.
bool vtkHDFWriterImplementationData::CollectTemporalOffsets (hid_t group, GeometryOffset &offsets)
 Collect temporal offsets from the file currently open.
vtkSmartPointer< vtkDataObject > vtkHDFWriterImplementationData::CreateEmptyPartition (vtkSmartPointer< vtkDataObject > input, vtkMultiProcessController *controller)
 Create placeholders for empty inputs to make sure all ranks have the same data type, and synchronize point/cell array names on all ranks.
bool vtkHDFWriterImplementationData::CollectSubfileAttributes (const Subfiles &subfiles, const std::string &basePath, vtkDataObject *data)
 Add schemas for point/cell arrays found in any subfile during metafile assembly.
bool vtkHDFWriterImplementationData::HasDataset (const Subfiles &subfiles, const std::string &path)
 Return true if at least one registered subfile contains the given path.
vtkHDF::ScopedH5GHandle vtkHDFWriterImplementationData::GetSubfileNonNullPart (const Subfiles &subfiles, const std::string &blockPath, int &type)
 Find the first non null part for the given path in all subfiles.
bool vtkHDFWriterImplementationData::CreateRepresentativeFromSubfile (const Subfiles &subfiles, const std::string &blockPath, vtkSmartPointer< vtkDataObject > &representative)
 Recover a block type, attributes, and field arrays from subfiles.
bool vtkHDFWriterImplementationData::CreateArraysFromNonNullPart (hid_t group, vtkDataObject *data)
 Initialize empty data object array structures from a base group.
int vtkHDFWriterImplementationData::ReadNumberOfTimeSteps (hid_t root)
 Read the existing timestep count, including composite leaves.
bool vtkHDFWriterImplementationData::IsMissingPartition (const PartitionedOffsets &offsets, unsigned int partId, int rank, bool distributed)
 Return true if the current partition in the current rank is a placeholder used only for collective writing.
bool vtkHDFWriterImplementationData::UsesDistributedOffsets (const PartitionedOffsets &offsets, const std::string &path, bool distributed)
 Return true if a given path can use distributed offsets and writing.
hsize_t vtkHDFWriterImplementationData::GetDatasetValueOffset (const PartitionedOffsets &offsets, std::size_t partition, const std::string &datasetPath, IndexingMode mode)
 Get offset value from a file-absolute partition number and path, using computed offsets from the collective offset pass.
hsize_t vtkHDFWriterImplementationData::GetDistributedDatasetSize (const PartitionedOffsets &offsets, const std::string &datasetPath)
 Return the total number of rows for the given dataset.
IndexingMode vtkHDFWriterImplementationData::GetDatasetIndexationMode (const std::string &path)
 Return the indexation mode of dataset at the given path: when the dataset adds 1 component for every new time step or part, return Single.
hsize_t vtkHDFWriterImplementationData::GetDatasetPadding (const std::string &datasetPath, IndexingMode mode, hsize_t partitions)
 Number of extra offset entries stored for the given partitions.
bool vtkHDFWriterImplementationData::GetSubfilePartRange (const Subfiles &subfiles, const std::string &basePath, std::size_t file, hsize_t step, SubfilePartRange &range)
 Locate the partitions belonging to a subfile timestep.
hsize_t vtkHDFWriterImplementationData::GetNumberOfCellsSubfile (const Subfiles &subfiles, const std::string &basePath, std::size_t subfileId, hsize_t part, bool isPolyData, const std::string &groupName)
 Look into subfile subfileId and return the number of cells in part part.
hsize_t vtkHDFWriterImplementationData::GetSubfileNumberOf (const Subfiles &subfiles, const std::string &base, const std::string_view &qualifier, std::size_t subfileId, hsize_t part, int primitive=-1)
 Retrieve a single value from the 1-dimensional (usually meta-data) group name in a given subfile subfileId.
hsize_t vtkHDFWriterImplementationData::GetSubfileDatasetSize (const Subfiles &subfiles, const std::string &datasetPath, std::size_t file, hsize_t part, bool isPolyData, hsize_t defaultSize=0)
 Read the extent contributed by one subfile partition.
bool vtkHDFWriterImplementationData::GetSubFilesDatasetSize (const Subfiles &subfiles, const std::string &datasetPath, const std::string &groupName, hsize_t &totalSize, const std::string &fallbackPath="")
 Set totalSize as the the sum of the subfiles dataset's size given a path to the dataset.
hsize_t vtkHDFWriterImplementationData::GetSubfileFieldSize (const Subfiles &subfiles, const std::string &datasetPath, std::size_t file, hsize_t partOffset, hsize_t parts)
 Return the number of tuples for all a given number of parts in a subfile, starting at offset partOffset.
vtkHDF::ScopedH5THandle vtkHDFWriterImplementationData::GetSubfileDataType (const Subfiles &subfiles, const std::string &datasetPath)
 Copy the datatype from dataset in subfile.
bool vtkHDFWriterImplementationData::BuildVirtualMappings (const Subfiles &subfiles, const VirtualDataset &dataset, hsize_t numberOfSteps)
 Build HDF5 virtual dataset mappings from a VirtualDataset description.