![]() |
SheafSystem
0.0.0.0
|
A record buffer for transferring file id map data for the member record data set between the kernel and the i/o subsystem. More...
#include <map_record.h>
Public Member Functions | |
| map_record (member_record_set &xhost) | |
| Creates an instance in record set xhost for reading or writing member data. More... | |
| map_record (const map_record &xother) | |
| Copy constructor. More... | |
| virtual | ~map_record () |
| Destructor. More... | |
| void | externalize (hvl_t *xhdf_buffer, const interval_index_map &xmap) |
| Converts the record from internal to external form. More... | |
| void | internalize (hvl_t *xhdf_buffer, interval_index_map &xmap) |
| Converts the record from external to internal form. More... | |
| virtual map_record * | 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... | |
Public Member Functions inherited from sheaf::variable_length_record | |
| variable_length_record (const variable_length_record &xother) | |
| Copy constructor. More... | |
| virtual | ~variable_length_record () |
| Destructor. More... | |
| variable_length_record (const poset_scaffold &xscaffold) | |
| Creates an instance with type map xtype_map. More... | |
| void * | buf () const |
| The buffer. More... | |
| size_t | buf_ub () const |
| The size of the buffer, in bytes. More... | |
Public Member Functions inherited from sheaf::record | |
| record (const record &xother) | |
| Copy constructor. More... | |
| virtual | ~record () |
| Destructor. More... | |
| record (const poset_scaffold &xscaffold) | |
| Creates an instance with type map xtype_map. More... | |
| record_index | external_index () const |
| The external index of this record. More... | |
| void | put_external_index (const record_index &xindex) |
| Sets the index of this record to xindex. More... | |
| poset_scaffold & | scaffold () |
| The scaffold for the poset associated with this record (mutable version). More... | |
| const poset_scaffold & | scaffold () const |
| The scaffold for the poset associated with this record (const version). More... | |
| poset_data_type_map & | type_map () |
| The data type map used to convert data for this record (mutable version). More... | |
| const poset_data_type_map & | type_map () const |
| The data type map used to convert data for this record (const version). 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... | |
Additional Inherited Members | |
Protected Member Functions inherited from sheaf::variable_length_record | |
| void | put_buf (const void *xbuf, size_t xub) |
| Sets the buffer to xbuf. More... | |
| bool | delete_buffer () |
| True if this allocated the buffer and the dtor should delete it. More... | |
| void | put_delete_buffer (bool xval) |
| Sets delete_buffer to value xval. More... | |
| void * | item (size_t xoffset) const |
| Pointer to record item beginning at offset xoffset. More... | |
| bool | is_internal () const |
| True if the internal buffer has been initialized. More... | |
| void | put_is_internal (bool xis_internal) |
| Sets is_internal to xis_internal. More... | |
| bool | is_external () const |
| True if the external buffer has been initialized. More... | |
| void | put_is_external (bool xis_external) |
| Sets is_external to xis_external. More... | |
Protected Member Functions inherited from sheaf::any | |
| any () | |
| default constructor More... | |
A record buffer for transferring file id map data for the member record data set between the kernel and the i/o subsystem.
Definition at line 43 of file map_record.h.
| sheaf::map_record::map_record | ( | member_record_set & | xhost | ) |
Creates an instance in record set xhost for reading or writing member data.
Definition at line 36 of file map_record.cc.
References sheaf::variable_length_record::buf(), sheaf::variable_length_record::buf_ub(), invariant(), sheaf::variable_length_record::is_external(), sheaf::variable_length_record::is_internal(), sheaf::variable_length_record::put_is_external(), and sheaf::variable_length_record::put_is_internal().
Referenced by clone().
| sheaf::map_record::map_record | ( | const map_record & | xother | ) |
Copy constructor.
Not Implemented.
Definition at line 64 of file map_record.cc.
References invariant(), and ~map_record().
|
virtual |
Destructor.
Definition at line 81 of file map_record.cc.
References externalize().
Referenced by map_record().
|
virtual |
Virtual constructor; makes a new instance of the same type as this.
Reimplemented from sheaf::variable_length_record.
Definition at line 490 of file map_record.cc.
References invariant(), sheaf::any::is_same_type(), and map_record().
Referenced by internalize().
| void sheaf::map_record::externalize | ( | hvl_t * | xhdf_buffer, |
| const interval_index_map & | xmap | ||
| ) |
Converts the record from internal to external form.
Definition at line 105 of file map_record.cc.
References sheaf::variable_length_record::buf(), sheaf::variable_length_record::buf_ub(), internalize(), sheaf::variable_length_record::is_external(), sheaf::variable_length_record::is_internal(), sheaf::poset_state_handle::name(), sheaf::variable_length_record::put_buf(), sheaf::variable_length_record::put_delete_buffer(), sheaf::variable_length_record::put_is_external(), sheaf::variable_length_record::put_is_internal(), sheaf::record::scaffold(), and sheaf::poset_scaffold::structure().
Referenced by ~map_record().
| void sheaf::map_record::internalize | ( | hvl_t * | xhdf_buffer, |
| interval_index_map & | xmap | ||
| ) |
Converts the record from external to internal form.
Definition at line 326 of file map_record.cc.
References sheaf::variable_length_record::buf(), sheaf::variable_length_record::buf_ub(), clone(), sheaf::variable_length_record::is_external(), sheaf::variable_length_record::is_internal(), sheaf::poset_state_handle::name(), sheaf::variable_length_record::put_buf(), sheaf::variable_length_record::put_is_external(), sheaf::variable_length_record::put_is_internal(), sheaf::record::scaffold(), and sheaf::poset_scaffold::structure().
Referenced by externalize().
|
virtual |
Class invariant.
Reimplemented from sheaf::variable_length_record.
Definition at line 513 of file map_record.cc.
References sheaf::any::disable_invariant_check(), sheaf::any::enable_invariant_check(), sheaf::variable_length_record::invariant(), sheaf::any::invariant_check(), and is_ancestor_of().
Referenced by clone(), and map_record().
|
virtual |
Conformance test; true if other conforms to this.
Reimplemented from sheaf::variable_length_record.
Definition at line 546 of file map_record.cc.
Referenced by invariant().