22 #include "SheafSystem/data_type_map.h" 23 #include "SheafSystem/assert_contract.h" 24 #include "SheafSystem/sheaf_file.h" 26 #include "SheafSystem/data_converter.h" 107 bool result =
dynamic_cast<const data_type_map*
>(other) != 0;
198 for(
int i=PRIMITIVE_TYPE_BEGIN; i<PRIMITIVE_TYPE_END; i++)
virtual bool invariant() const
Class invariant, intended to be redefined in each descendant. See below for template for invariant in...
hid_t _file
The hdf file handle.
virtual data_type_map * clone() const
Virtual constructor; makes a new instance of the same type as this.
size_t _max_external_size
The external size of the largest fixed length type.
data_type_map()
Default constructor.
virtual bool is_ancestor_of(const any *other) const
Conformance test; true if other conforms to this.
Abstract base class with useful features for all objects.
size_t _max_internal_size
The internal size of the largest fixed length type.
SHEAF_DLL_SPEC bool is_primitive_index(pod_index_type xindex)
True if xindex is a valid primitive index.
data_converter * operator[](int xi) const
The data converter for the type with index xi.
void disable_invariant_check() const
Disable invariant check. Intended for preventing recursive calls to invariant and for suppressing inv...
bool invariant_check() const
True if invariant checking is enabled.
Function object to convert between internal and external data formats.
data_converter * _converters[PRIMITIVE_TYPE_END]
Table of converters, one for each type defined in the file.
A collection of data converters that map data types between internal and external representations...
virtual ~data_type_map()
Destructor.
virtual bool invariant() const
Class invariant.
bool is_same_type(const any *other) const
True if other is the same type as this.
void enable_invariant_check() const
Enable invariant checking.