chihaya
Validating delayed array operations in HDF5
|
Validation options. More...
#include <utils_public.hpp>
Public Attributes | |
bool | details_only = false |
std::unordered_map< std::string, std::function< ArrayDetails(const H5::Group &, const ritsuko::Version &, Options &)> > | array_validate_registry |
std::unordered_map< std::string, std::function< ArrayDetails(const H5::Group &, const ritsuko::Version &, Options &)> > | operation_validate_registry |
Validation options.
This is used to configure options for a single call to validate()
. It can be used to override validation functions without modifying the global validation registries, e.g., for parallelized applications. The options may also mutate throughout the duration of the call, allowing callers to collect statistics across the recursive invocations of validate()
on the same Options
object.
std::unordered_map<std::string, std::function<ArrayDetails(const H5::Group&, const ritsuko::Version&, Options&)> > chihaya::Options::array_validate_registry |
Custom registry of functions to be used by validate()
on arrays. If a custom function is provided for an array type, it is used instead of the default function .
bool chihaya::Options::details_only = false |
Whether to skip extensive validation and just return the ArrayDetails
. If this is set to true, it is assumed that the array/operation is already valid.
std::unordered_map<std::string, std::function<ArrayDetails(const H5::Group&, const ritsuko::Version&, Options&)> > chihaya::Options::operation_validate_registry |
Custom registry of functions to be used by validate()
on operations. If a custom function is provided for an operation type, it is used instead of the default function .