SheafSystem
0.0.0.0
|
A collection of data converters that map data types between internal and external representations. More...
#include <data_type_map.h>
Public Member Functions | |
virtual data_type_map * | clone () const |
Virtual constructor; makes a new instance of the same type as this. More... | |
virtual bool | invariant () const |
Class invariant. More... | |
virtual bool | is_ancestor_of (const any *other) const |
Conformance test; true if other conforms to this. More... | |
virtual | ~data_type_map () |
Destructor. More... | |
hid_t | file () const |
The hdf file this type map is associated with. More... | |
data_converter * | operator[] (int xi) const |
The data converter for the type with index xi. More... | |
data_converter * | converter (primitive_type xpt) const |
The data converter for primitive type xpt. More... | |
size_t | max_internal_size () const |
The internal size of the largest fixed length type. More... | |
size_t | max_external_size () const |
The external size of the largest fixed length type. More... | |
size_t | max_size () const |
The maximum size, internal or external, of any fixed length type. More... | |
Public Member Functions inherited from sheaf::any | |
bool | is_same_type (const any *other) const |
True if other is the same type as this. More... | |
virtual | ~any () |
Destructor. More... | |
bool | invariant_check () const |
True if invariant checking is enabled. More... | |
void | enable_invariant_check () const |
Enable invariant checking. More... | |
void | disable_invariant_check () const |
Disable invariant check. Intended for preventing recursive calls to invariant and for suppressing invariant checking during multi-phase initialization. More... | |
int | disable_invariance_check_request_depth () const |
Number of times disable_invariant_check has been called without matching call to enable_invariant_check. More... | |
Protected Member Functions | |
data_type_map () | |
Default constructor. More... | |
data_type_map (const data_type_map &xother) | |
Copy constructor. More... | |
Protected Member Functions inherited from sheaf::any | |
any () | |
default constructor More... | |
Protected Attributes | |
hid_t | _file |
The hdf file handle. More... | |
size_t | _max_internal_size |
The internal size of the largest fixed length type. More... | |
size_t | _max_external_size |
The external size of the largest fixed length type. More... | |
data_converter * | _converters [PRIMITIVE_TYPE_END] |
Table of converters, one for each type defined in the file. More... | |
A collection of data converters that map data types between internal and external representations.
Definition at line 49 of file data_type_map.h.
|
virtual |
Destructor.
Definition at line 123 of file data_type_map.cc.
References operator[]().
Referenced by is_ancestor_of().
|
protected |
Default constructor.
Definition at line 170 of file data_type_map.cc.
References _file, _max_external_size, and _max_internal_size.
Referenced by clone(), and operator[]().
|
protected |
Copy constructor.
Definition at line 191 of file data_type_map.cc.
References _converters, _file, _max_external_size, _max_internal_size, and invariant().
|
virtual |
Virtual constructor; makes a new instance of the same type as this.
Reimplemented from sheaf::any.
Reimplemented in sheaf::poset_data_type_map, and sheaf::file_data_type_map.
Definition at line 40 of file data_type_map.cc.
References data_type_map(), invariant(), and sheaf::any::is_same_type().
|
inline |
The data converter for primitive type xpt.
Definition at line 102 of file data_type_map.h.
|
inline |
The hdf file this type map is associated with.
Definition at line 88 of file data_type_map.h.
|
virtual |
Class invariant.
Reimplemented from sheaf::any.
Reimplemented in sheaf::poset_data_type_map, and sheaf::file_data_type_map.
Definition at line 63 of file data_type_map.cc.
References sheaf::any::disable_invariant_check(), sheaf::any::enable_invariant_check(), sheaf::any::invariant(), sheaf::any::invariant_check(), and is_ancestor_of().
Referenced by clone(), data_type_map(), and sheaf::poset_data_type_map::invariant().
|
virtual |
Conformance test; true if other conforms to this.
Reimplemented from sheaf::any.
Reimplemented in sheaf::poset_data_type_map, and sheaf::file_data_type_map.
Definition at line 96 of file data_type_map.cc.
References ~data_type_map().
Referenced by invariant().
|
inline |
The external size of the largest fixed length type.
Definition at line 118 of file data_type_map.h.
|
inline |
The internal size of the largest fixed length type.
Definition at line 110 of file data_type_map.h.
|
inline |
The maximum size, internal or external, of any fixed length type.
Definition at line 126 of file data_type_map.h.
Referenced by sheaf::dof_tuple_record_set::dof_tuple_record_set().
sheaf::data_converter * sheaf::data_type_map::operator[] | ( | int | xi | ) | const |
The data converter for the type with index xi.
Definition at line 144 of file data_type_map.cc.
References _converters, data_type_map(), and sheaf::is_primitive_index().
Referenced by ~data_type_map().
|
protected |
Table of converters, one for each type defined in the file.
Definition at line 163 of file data_type_map.h.
Referenced by data_type_map(), operator[](), and sheaf::file_data_type_map::~file_data_type_map().
|
protected |
The hdf file handle.
Definition at line 148 of file data_type_map.h.
Referenced by data_type_map(), and sheaf::file_data_type_map::~file_data_type_map().
|
protected |
The external size of the largest fixed length type.
Definition at line 158 of file data_type_map.h.
Referenced by data_type_map().
|
protected |
The internal size of the largest fixed length type.
Definition at line 153 of file data_type_map.h.
Referenced by data_type_map().