SheafSystem
0.0.0.0
|
A record_set containing records of type member_record. More...
#include <member_record_set.h>
Public Member Functions | |
virtual member_record_set * | 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... | |
member_record_set (const sheaf_file &xfile, int xbuffer_ub, const poset_scaffold &xscaffold, const dof_tuple_record_set &xdof_tuple_records) | |
Creates an instance attached to the record_set with name xname in the file xfile, using record packets of size xpacket_ub. More... | |
member_record_set (const member_record_set &xother) | |
Copy constructor. More... | |
virtual | ~member_record_set () |
Destructor. More... | |
virtual const std::string & | suffix () const |
The name suffix for this data set. More... | |
void | internalize (pod_index_type xmax_row_int_id) |
Internalize the members of scafold().structure() from disk. More... | |
void | internalize (const scoped_index &xmax_row_int_id) |
Internalize the members of scafold().structure() from disk. More... | |
void | externalize (pod_index_type xmax_row_int_id) |
Externalize the members of scafold().structure() to disk. More... | |
void | externalize (const scoped_index &xmax_row_int_id) |
Externalize the members of scafold().structure() to disk. More... | |
dof_tuple_record_set & | dof_tuple_records () |
The dof tuple record set associated with this. More... | |
const member_record & | record () const |
The current member record. More... | |
Public Member Functions inherited from sheaf::record_set | |
record_set (const sheaf_file &xfile, int xrecord_buffer_ub, const poset_scaffold &xscaffold) | |
Creates an instance attached to the record_set with name xname in the file xfile, using record packets of size xpacket_ub. More... | |
record_set (const record_set &xother) | |
Copy constructor. More... | |
virtual | ~record_set () |
Destructor. More... | |
const sheaf_file & | file () const |
The file this record_set belongs to. More... | |
std::string | name () const |
The name of this data set. More... | |
std::string | alias () const |
The standard alias for this data set. More... | |
std::string | data_set_name (const std::string &xname) const |
The data set name for a poset with name xname. More... | |
std::string | data_set_alias (const std::string &xname) const |
The data set alias for a poset with name xname. More... | |
std::string | poset_name () const |
The name of the poset this represents, extracted from the name of the dataset. More... | |
poset_scaffold & | scaffold () |
Scaffold for constructing poset associated with this record set (mutable version). More... | |
const poset_scaffold & | scaffold () const |
Scaffold for constructing poset associated with this record set (const version). More... | |
poset_data_type_map & | type_map () |
Data type map for records in this record set (mutable version) More... | |
const poset_data_type_map & | type_map () const |
Data type map for records in this record set (const version) More... | |
virtual void | open () |
Opens the record_set. More... | |
bool | is_open () const |
True if this record_set is open. More... | |
virtual void | close () |
Closes the record_set. More... | |
int | record_buffer_ct () const |
The number of active records in record buffer. More... | |
void | inc_record_buffer_ct () |
The increment the number of active records in record buffer. More... | |
void | reset_record_buffer_ct () |
The set the number of active records in record buffer to 0. More... | |
int | record_buffer_ub () const |
The maximum number of records the buffer can hold. More... | |
bool | record_buffer_is_empty () const |
True if there are no active records in the buffer. More... | |
bool | record_buffer_is_full () const |
True if there are no inactive records in the buffer. 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... | |
Static Public Member Functions | |
static pod_index_type | first_member_record () |
The first record used for members; the record following the id space records. More... | |
Static Public Member Functions inherited from sheaf::record_set | |
static const std::string & | name_space_alias () |
The reserved, standard alias for the namespace in the file. More... | |
static const std::string & | name_space_prefix () |
The reserved, standard prefix for namespace dataser names. More... | |
Protected Member Functions | |
virtual hid_t | create_dataset () |
Creates the HDF dataset associated with this. More... | |
virtual void | create_int_data_type () |
Creates a new HDF internal data type. More... | |
void | read_record (const record_index &xext_id) |
Read and internalizes all the records. More... | |
void | read_selection () |
Read the records specified by the selection into the record buffer. More... | |
void | write_selection () |
Write the records specified by the selection into the file. More... | |
void | make_internal_dataspace () |
Create the internal dataspace. More... | |
Protected Member Functions inherited from sheaf::record_set | |
void | extend_dataset (const hsize_t *xdims, int xdims_ub) |
Extends the dataset dimensions to at least the dimensions given xdims, an array of length xdims_ub. More... | |
void | create_alias () |
Creates a soft link from alias to the data set. More... | |
void | set_name_from_alias () |
Sets the primary name of the dataset from the alias. More... | |
hid_t | hdf_id () |
The HDF id for this record set. More... | |
hid_t | ext_dataspace_hdf_id () |
The HDF id for the external dataspace of this record set. More... | |
hid_t | ext_data_type_hdf_id () |
The HDF external data type id for this record set. More... | |
int | ext_dataspace_rank () |
The rank of the dataspace for the record_set. More... | |
hsize_t | ext_dataspace_dim (int xi) |
The dimension of xi-th index of the external dataspace. More... | |
hid_t | int_dataspace_hdf_id () |
The hdf5 id of the internal dataspace associated with the record buffer. More... | |
hid_t | int_data_type_hdf_id () |
The HDF internal data type id for this record set. More... | |
virtual void | read_dataset_attributes () |
Opens and reads the dataset attribute objects from the file. A stub in this class, intended to be redefined in descendants. More... | |
virtual void | write_dataset_attributes () |
Writes the dataset attribute objects into the file. A stub in this class, intended to be redefined in descendants. More... | |
void | read_attribute (const char *&xatt_values, size_type &xatt_ct, const data_converter *xatt_conv, const std::string &xatt_name) |
Reads the attribute with name xatt_name from the file. More... | |
void | write_attribute (const void *xatt_values, size_type xatt_ct, const data_converter *xatt_conv, const std::string &xatt_name) |
Writes the attribute with name xatt_name into the file. More... | |
Protected Member Functions inherited from sheaf::any | |
any () | |
default constructor More... | |
Additional Inherited Members | |
Protected Attributes inherited from sheaf::record_set | |
sheaf_file & | _file |
The file this record_set belongs to. More... | |
std::string | _name |
The name of this record_set. More... | |
std::string | _alias |
The standard alias for this record_set. More... | |
poset_scaffold & | _scaffold |
The poset scaffold associated with this. More... | |
hid_t | _hdf_id |
The HDF id for this record set. More... | |
hid_t | _ext_dataspace_hdf_id |
The HDF id for the external dataspace of this record set. More... | |
hid_t | _ext_data_type_hdf_id |
The HDF external data type id for this record set. More... | |
int | _ext_dataspace_rank |
The rank of the dataspace for the record_set. More... | |
hsize_t * | _ext_dataspace_dims |
The current dimensions of the external dataspace. More... | |
int | _record_buffer_ct |
The number of active records in record buffer. More... | |
int | _record_buffer_ub |
The maximum number of records the buffer can hold. More... | |
hid_t | _int_dataspace_hdf_id |
The hdf5 id of the dataspace associated with the record buffer. More... | |
hid_t | _int_data_type_hdf_id |
The HDF internal data type id for this record set. More... | |
Static Protected Attributes inherited from sheaf::record_set | |
static const hid_t | NOT_AN_HDF_ID = -1 |
Value indicating an invalid HDf object id. /. More... | |
A record_set containing records of type member_record.
Definition at line 53 of file member_record_set.h.
sheaf::member_record_set::member_record_set | ( | const sheaf_file & | xfile, |
int | xbuffer_ub, | ||
const poset_scaffold & | xscaffold, | ||
const dof_tuple_record_set & | xdof_tuple_records | ||
) |
Creates an instance attached to the record_set with name xname in the file xfile, using record packets of size xpacket_ub.
Definition at line 144 of file member_record_set.cc.
References sheaf::record_set::_alias, sheaf::record_set::_ext_dataspace_dims, sheaf::record_set::_ext_dataspace_rank, sheaf::record_set::_name, sheaf::record_set::alias(), sheaf::explicit_index_space_handle::attach_to(), sheaf::record_set::data_set_alias(), sheaf::record_set::data_set_name(), invariant(), sheaf::sheaf_file::is_open(), sheaf::record_set::is_open(), sheaf::poset_scaffold::member_id_space(), sheaf::poset_state_handle::member_id_spaces(), sheaf::record_set::name(), sheaf::index_space_handle::name(), sheaf::interval_index_space_handle::new_space(), sheaf::record_set::record_buffer_is_empty(), sheaf::record_set::record_buffer_ub(), sheaf::record_set::scaffold(), and sheaf::poset_scaffold::structure().
Referenced by is_ancestor_of().
sheaf::member_record_set::member_record_set | ( | const member_record_set & | xother | ) |
Copy constructor.
Not Implemented.
Definition at line 213 of file member_record_set.cc.
References invariant(), and ~member_record_set().
|
virtual |
Destructor.
Definition at line 238 of file member_record_set.cc.
References sheaf::record_set::_ext_dataspace_dims, sheaf::index_space_family::delete_space(), sheaf::poset_state_handle::get_read_access(), sheaf::poset_state_handle::member_id_spaces(), sheaf::poset_state_handle::release_access(), sheaf::poset_scaffold::structure(), and suffix().
Referenced by member_record_set().
|
virtual |
Virtual constructor; makes a new instance of the same type as this.
Reimplemented from sheaf::record_set.
Definition at line 59 of file member_record_set.cc.
References invariant().
|
protectedvirtual |
Creates the HDF dataset associated with this.
Implements sheaf::record_set.
Definition at line 698 of file member_record_set.cc.
References sheaf::record_set::_ext_dataspace_hdf_id, sheaf::record_set::_int_data_type_hdf_id, sheaf::record_set::_record_buffer_ub, create_int_data_type(), sheaf::record_set::file(), sheaf::record_set::hdf_id(), and sheaf::record_set::name().
Referenced by first_member_record().
|
protectedvirtual |
Creates a new HDF internal data type.
Implements sheaf::record_set.
Definition at line 769 of file member_record_set.cc.
References sheaf::record_set::_int_data_type_hdf_id, sheaf::record_set::file(), sheaf::record_set::int_data_type_hdf_id(), sheaf::record_set::is_open(), read_record(), and sheaf::record_set::type_map().
Referenced by create_dataset().
sheaf::dof_tuple_record_set & sheaf::member_record_set::dof_tuple_records | ( | ) |
The dof tuple record set associated with this.
Definition at line 670 of file member_record_set.cc.
References record().
Referenced by externalize(), sheaf::member_record::externalize(), and sheaf::member_record::internalize().
void sheaf::member_record_set::externalize | ( | pod_index_type | xmax_row_int_id | ) |
Externalize the members of scafold().structure() to disk.
Definition at line 526 of file member_record_set.cc.
References sheaf::abstract_poset_member::attach_to_state(), sheaf::abstract_poset_member::clone(), sheaf::poset_state_handle::contains_member(), sheaf::member_record::delete_equivalence_iterator(), sheaf::poset_component::detach_from_state(), sheaf::member_record::externalize(), sheaf::explicit_index_space_handle::get_iterator(), sheaf::poset_component::host(), sheaf::record_set::inc_record_buffer_ct(), sheaf::index_space_iterator::is_done(), sheaf::record_set::is_open(), sheaf::record_set::name(), sheaf::member_record::new_equivalence_iterator(), sheaf::index_space_iterator::next(), sheaf::index_space_iterator::pod(), sheaf::scoped_index::pod(), sheaf::poset_component::put_version(), record(), sheaf::record_set::record_buffer_ct(), sheaf::record_set::record_buffer_is_empty(), sheaf::record_set::record_buffer_is_full(), sheaf::record_set::record_buffer_ub(), sheaf::explicit_index_space_handle::release_iterator(), sheaf::record_set::reset_record_buffer_ct(), sheaf::record_set::scaffold(), sheaf::poset_scaffold::structure(), and sheaf::poset_state_handle::top().
Referenced by sheaf::storage_agent::commit_transaction(), externalize(), and internalize().
void sheaf::member_record_set::externalize | ( | const scoped_index & | xmax_row_int_id | ) |
Externalize the members of scafold().structure() to disk.
Definition at line 646 of file member_record_set.cc.
References dof_tuple_records(), externalize(), sheaf::scoped_index::hub_pod(), sheaf::record_set::is_open(), record(), and sheaf::record_set::scaffold().
|
static |
The first record used for members; the record following the id space records.
Definition at line 685 of file member_record_set.cc.
References create_dataset().
Referenced by make_internal_dataspace(), and record().
void sheaf::member_record_set::internalize | ( | pod_index_type | xmax_row_int_id | ) |
Internalize the members of scafold().structure() from disk.
Definition at line 292 of file member_record_set.cc.
References sheaf::abstract_poset_member::attach_to_state(), sheaf::poset_state_handle::begin_jim_edit_mode(), sheaf::poset_state_handle::bottom(), sheaf::abstract_poset_member::clear_cover(), sheaf::abstract_poset_member::clone(), sheaf::subposet::contains_member(), sheaf::DOWN, sheaf::poset_state_handle::end_jim_edit_mode(), sheaf::poset_scaffold::initialize_dof_tuple_id_space(), sheaf::interval_index_space_handle::interval_begin(), sheaf::record_set::is_open(), sheaf::is_valid(), sheaf::poset_state_handle::member_id(), sheaf::record_set::name(), sheaf::NOT_STRICT, sheaf::poset_scaffold::resident(), sheaf::record_set::scaffold(), sheaf::poset_scaffold::structure(), sheaf::poset_state_handle::top(), and sheaf::UPPER.
Referenced by sheaf::storage_agent::begin_read_transaction(), internalize(), and suffix().
void sheaf::member_record_set::internalize | ( | const scoped_index & | xmax_row_int_id | ) |
Internalize the members of scafold().structure() from disk.
Definition at line 504 of file member_record_set.cc.
References externalize(), sheaf::scoped_index::hub_pod(), internalize(), sheaf::record_set::is_open(), and sheaf::record_set::scaffold().
|
virtual |
Class invariant.
Reimplemented from sheaf::record_set.
Definition at line 83 of file member_record_set.cc.
References is_ancestor_of().
Referenced by clone(), and member_record_set().
|
virtual |
Conformance test; true if other conforms to this.
Reimplemented from sheaf::record_set.
Definition at line 118 of file member_record_set.cc.
References member_record_set().
Referenced by invariant().
|
protected |
Create the internal dataspace.
Definition at line 976 of file member_record_set.cc.
References sheaf::record_set::_int_data_type_hdf_id, sheaf::record_set::_int_dataspace_hdf_id, sheaf::record_set::_record_buffer_ct, sheaf::crg_interval::begin(), sheaf::poset_crg_state::clean_cover(), sheaf::gathered_insertion_index_space_handle::clear(), sheaf::poset_state_handle::crg(), sheaf::DOWN, sheaf::crg_interval::end(), sheaf::poset_crg_state::explicit_down_set_members(), sheaf::member_record::external_size(), sheaf::interval_index_space_record::externalize(), first_member_record(), sheaf::poset_component::host(), sheaf::abstract_poset_member::hub_id(), sheaf::poset_crg_state::implicit_member(), sheaf::record_set::inc_record_buffer_ct(), sheaf::index_iterator::index(), sheaf::depth_first_itr< T >::index(), sheaf::scattered_insertion_index_space_handle::insert(), sheaf::interval_index_space_handle::insert_interval(), sheaf::subposet::insert_member(), sheaf::interval_index_space_record::internalize(), sheaf::member_record::interval(), sheaf::implicit_crg_interval::interval_member(), sheaf::index_iterator::is_done(), sheaf::depth_first_itr< T >::is_done(), sheaf::record_set::is_open(), sheaf::member_record::is_resident(), sheaf::poset_state_handle::member_iterator(), sheaf::record_set::name(), sheaf::poset_state_handle::name(), sheaf::index_iterator::next(), sheaf::depth_first_itr< T >::next(), sheaf::NOT_STRICT, sheaf::scoped_index::pod(), sheaf::interval_index_space_handle::print_map_rep(), read_record(), read_selection(), record(), sheaf::record_set::record_buffer_ct(), sheaf::record_set::record_buffer_is_empty(), sheaf::record_set::record_buffer_ub(), sheaf::record_set::reset_record_buffer_ct(), sheaf::poset_scaffold::resident(), sheaf::record_set::scaffold(), sheaf::poset_scaffold::structure(), sheaf::depth_first_itr< T >::truncate(), sheaf::UPPER, sheaf::WHOLE_INDEX, and write_selection().
Referenced by read_selection(), and write_selection().
|
protected |
Read and internalizes all the records.
Definition at line 799 of file member_record_set.cc.
References sheaf::index_space_handle::hub_id_space(), sheaf::index_space_handle::hub_pod(), sheaf::record_set::inc_record_buffer_ct(), sheaf::member_record::internalize(), sheaf::scoped_index::pod(), read_selection(), sheaf::record_set::record_buffer_ct(), sheaf::record_set::record_buffer_ub(), and sheaf::record_set::reset_record_buffer_ct().
Referenced by create_int_data_type(), and make_internal_dataspace().
|
protected |
Read the records specified by the selection into the record buffer.
Definition at line 873 of file member_record_set.cc.
References sheaf::record_set::_ext_dataspace_hdf_id, sheaf::record_set::_hdf_id, sheaf::record_set::_int_data_type_hdf_id, sheaf::record_set::_int_dataspace_hdf_id, sheaf::record_set::is_open(), make_internal_dataspace(), sheaf::record_set::record_buffer_ct(), and write_selection().
Referenced by make_internal_dataspace(), and read_record().
const sheaf::member_record & sheaf::member_record_set::record | ( | ) | const |
The current member record.
Definition at line 677 of file member_record_set.cc.
References first_member_record().
Referenced by dof_tuple_records(), externalize(), and make_internal_dataspace().
|
virtual |
The name suffix for this data set.
Reimplemented from sheaf::record_set.
Definition at line 268 of file member_record_set.cc.
References internalize().
Referenced by ~member_record_set().
|
protected |
Write the records specified by the selection into the file.
Definition at line 921 of file member_record_set.cc.
References sheaf::record_set::_ext_data_type_hdf_id, sheaf::record_set::_ext_dataspace_hdf_id, sheaf::record_set::_hdf_id, sheaf::record_set::_int_dataspace_hdf_id, sheaf::record_set::_record_buffer_ct, sheaf::explicit_index_space_handle::end(), sheaf::record_set::extend_dataset(), sheaf::record_set::is_open(), make_internal_dataspace(), sheaf::poset_scaffold::member_id_space(), and sheaf::record_set::scaffold().
Referenced by make_internal_dataspace(), and read_selection().