SheafSystem
0.0.0.0
|
An abstract, indexed collection of records on secondary storage. More...
#include <record_set.h>
Public Member Functions | |
virtual record_set * | clone () const |
Virtual constructor; makes a new instance of the same type as this. Not implemented since this class is abstract. 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... | |
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... | |
virtual const std::string & | suffix () const |
The name suffix 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 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 ()=0 |
Creates a new HDF datset. Defined in descendants. More... | |
virtual void | create_int_data_type ()=0 |
Creates a new HDF internal data type. Defined in descendants. More... | |
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... | |
Protected Attributes | |
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 | |
static const hid_t | NOT_AN_HDF_ID = -1 |
Value indicating an invalid HDf object id. /. More... | |
An abstract, indexed collection of records on secondary storage.
Design overview:
A record is a group of related data items that the i/o subsystem wants to process as a unit for some reason. There are 5 types of records: poset_general_record various general attributes of a poset member_names_record (index, name) pairs for each entry in the member names table subposet_names_record (index, name) pairs for each entry in the subposet names table id_space_names_record (index, name) pair for each id space member_record all member specific data, including dof_tuple_id, links, and subposet membership, id space membership table_dof_tuple_record. all the dofs for a single table dof tuple dof_tuple_record. all the dofs for a single row dof tuple
A record_set is a single index array of records. There are three types of record sets: attributes_record_set poset_general_record, table_dof_tuple_record, member_names_record, subposet_names_record, and id_space_names_record member_record_set one member_record for each member dof_tuple_record_set one dof_tuple_record for each dof_tuple
The attributes_record_set and member_record_set are implemented as HDF datasets containing dataspaces of rank 1 and datatype variable length of char. The single index of the dataspace is the record index and the poset_general_, table_dof_tuple_, member_names_, subposet_names_, id_space_names_and member_ records are all implemented as instances of HDF variable length of char.
HDF variable length data types require two buffers be allocated: 1) a "hdf buffer" storing the hvl_t structs that store the address and length of the variable length data and 2) an "external buffer" storing the actual variable length data. this buffer is called "external" because it contains data in external format. In addition, there is an "internal buffer" that stores the data in internal form. The internal buffer collects together the data in the record from whatever diverse locations it is stored in the poset object.
Definition at line 150 of file record_set.h.
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.
Definition at line 136 of file record_set.cc.
References _ext_data_type_hdf_id, _ext_dataspace_hdf_id, _hdf_id, _int_data_type_hdf_id, _int_dataspace_hdf_id, _record_buffer_ct, invariant(), sheaf::sheaf_file::is_open(), is_open(), NOT_AN_HDF_ID, record_buffer_ct(), and record_buffer_ub().
Referenced by is_ancestor_of().
sheaf::record_set::record_set | ( | const record_set & | xother | ) |
Copy constructor.
Not Implemented.
Definition at line 174 of file record_set.cc.
References invariant(), and ~record_set().
|
virtual |
Destructor.
Definition at line 192 of file record_set.cc.
References file().
Referenced by record_set().
std::string sheaf::record_set::alias | ( | ) | const |
The standard alias for this data set.
Definition at line 247 of file record_set.cc.
References _alias, and name_space_alias().
Referenced by sheaf::attributes_record_set::attributes_record_set(), create_alias(), sheaf::dof_tuple_record_set::dof_tuple_record_set(), sheaf::member_record_set::member_record_set(), name(), open(), and set_name_from_alias().
|
virtual |
Virtual constructor; makes a new instance of the same type as this. Not implemented since this class is abstract.
Not Implemented.
Reimplemented from sheaf::any.
Reimplemented in sheaf::attributes_record_set, sheaf::dof_tuple_record_set, and sheaf::member_record_set.
Definition at line 43 of file record_set.cc.
References invariant().
|
virtual |
Closes the record_set.
Definition at line 588 of file record_set.cc.
References _ext_data_type_hdf_id, _ext_dataspace_hdf_id, _hdf_id, _int_data_type_hdf_id, _int_dataspace_hdf_id, file(), is_open(), NOT_AN_HDF_ID, record_buffer_ct(), and write_dataset_attributes().
Referenced by sheaf::storage_agent::begin_read_transaction(), sheaf::storage_agent::commit_dof_tuple_transaction(), sheaf::storage_agent::commit_transaction(), and is_open().
|
protected |
Creates a soft link from alias to the data set.
Definition at line 849 of file record_set.cc.
References _alias, _name, alias(), file(), hdf_id(), is_open(), name(), and set_name_from_alias().
Referenced by extend_dataset(), and open().
|
protectedpure virtual |
Creates a new HDF datset. Defined in descendants.
Implemented in sheaf::dof_tuple_record_set, sheaf::member_record_set, and sheaf::attributes_record_set.
Definition at line 718 of file record_set.cc.
References create_int_data_type(), file(), and NOT_AN_HDF_ID.
Referenced by open(), and record_buffer_is_full().
|
protectedpure virtual |
Creates a new HDF internal data type. Defined in descendants.
Implemented in sheaf::dof_tuple_record_set, sheaf::member_record_set, and sheaf::attributes_record_set.
Definition at line 742 of file record_set.cc.
References extend_dataset(), file(), int_data_type_hdf_id(), and is_open().
Referenced by create_dataset(), and open().
std::string sheaf::record_set::data_set_alias | ( | const std::string & | xname | ) | const |
The data set alias for a poset with name xname.
Definition at line 340 of file record_set.cc.
References name_space_alias(), poset_name(), scaffold(), and suffix().
Referenced by sheaf::attributes_record_set::attributes_record_set(), data_set_name(), sheaf::dof_tuple_record_set::dof_tuple_record_set(), and sheaf::member_record_set::member_record_set().
std::string sheaf::record_set::data_set_name | ( | const std::string & | xname | ) | const |
The data set name for a poset with name xname.
Definition at line 308 of file record_set.cc.
References data_set_alias(), name_space_prefix(), scaffold(), and suffix().
Referenced by sheaf::attributes_record_set::attributes_record_set(), sheaf::dof_tuple_record_set::dof_tuple_record_set(), sheaf::member_record_set::member_record_set(), and suffix().
|
protected |
The HDF external data type id for this record set.
Definition at line 943 of file record_set.cc.
References _ext_data_type_hdf_id, and ext_dataspace_rank().
Referenced by ext_dataspace_hdf_id().
|
protected |
The dimension of xi-th index of the external dataspace.
Definition at line 960 of file record_set.cc.
References _ext_dataspace_dims, ext_dataspace_rank(), int_dataspace_hdf_id(), and is_open().
Referenced by ext_dataspace_rank(), and extend_dataset().
|
protected |
The HDF id for the external dataspace of this record set.
Definition at line 936 of file record_set.cc.
References _ext_dataspace_hdf_id, and ext_data_type_hdf_id().
Referenced by hdf_id().
|
protected |
The rank of the dataspace for the record_set.
Definition at line 950 of file record_set.cc.
References _ext_dataspace_rank, and ext_dataspace_dim().
Referenced by ext_data_type_hdf_id(), ext_dataspace_dim(), extend_dataset(), open(), and sheaf::dof_tuple_record_set::write_selection().
|
protected |
Extends the dataset dimensions to at least the dimensions given xdims, an array of length xdims_ub.
Definition at line 764 of file record_set.cc.
References _ext_dataspace_dims, _ext_dataspace_hdf_id, _hdf_id, create_alias(), ext_dataspace_dim(), ext_dataspace_rank(), and is_open().
Referenced by create_int_data_type(), sheaf::member_record_set::write_selection(), and sheaf::dof_tuple_record_set::write_selection().
const sheaf::sheaf_file & sheaf::record_set::file | ( | ) | const |
The file this record_set belongs to.
Definition at line 213 of file record_set.cc.
Referenced by close(), create_alias(), sheaf::attributes_record_set::create_dataset(), sheaf::member_record_set::create_dataset(), sheaf::dof_tuple_record_set::create_dataset(), create_dataset(), sheaf::attributes_record_set::create_int_data_type(), sheaf::member_record_set::create_int_data_type(), sheaf::dof_tuple_record_set::create_int_data_type(), create_int_data_type(), sheaf::dof_tuple_record_set::open(), open(), set_name_from_alias(), and ~record_set().
|
protected |
The HDF id for this record set.
Definition at line 929 of file record_set.cc.
References _hdf_id, and ext_dataspace_hdf_id().
Referenced by create_alias(), sheaf::attributes_record_set::create_dataset(), sheaf::member_record_set::create_dataset(), sheaf::dof_tuple_record_set::create_dataset(), and set_name_from_alias().
void sheaf::record_set::inc_record_buffer_ct | ( | ) |
The increment the number of active records in record buffer.
Definition at line 643 of file record_set.cc.
References _record_buffer_ct, and reset_record_buffer_ct().
Referenced by sheaf::member_record_set::externalize(), sheaf::member_record_set::make_internal_dataspace(), sheaf::member_record_set::read_record(), and record_buffer_ct().
|
protected |
The HDF internal data type id for this record set.
Definition at line 989 of file record_set.cc.
References _int_data_type_hdf_id, NOT_AN_HDF_ID, and read_dataset_attributes().
Referenced by sheaf::attributes_record_set::create_int_data_type(), sheaf::member_record_set::create_int_data_type(), sheaf::dof_tuple_record_set::create_int_data_type(), create_int_data_type(), and int_dataspace_hdf_id().
|
protected |
The hdf5 id of the internal dataspace associated with the record buffer.
Definition at line 982 of file record_set.cc.
References _int_dataspace_hdf_id, and int_data_type_hdf_id().
Referenced by ext_dataspace_dim().
|
virtual |
Class invariant.
Reimplemented from sheaf::any.
Reimplemented in sheaf::attributes_record_set, sheaf::dof_tuple_record_set, and sheaf::member_record_set.
Definition at line 71 of file record_set.cc.
References is_ancestor_of().
Referenced by clone(), sheaf::dof_tuple_record_set::invariant(), sheaf::attributes_record_set::invariant(), open(), and record_set().
|
virtual |
Conformance test; true if other conforms to this.
Reimplemented from sheaf::any.
Reimplemented in sheaf::attributes_record_set, sheaf::dof_tuple_record_set, and sheaf::member_record_set.
Definition at line 110 of file record_set.cc.
References record_set().
Referenced by invariant().
bool sheaf::record_set::is_open | ( | ) | const |
True if this record_set is open.
Definition at line 567 of file record_set.cc.
References _hdf_id, and close().
Referenced by sheaf::attributes_record_set::attributes_record_set(), close(), create_alias(), sheaf::attributes_record_set::create_int_data_type(), sheaf::member_record_set::create_int_data_type(), sheaf::dof_tuple_record_set::create_int_data_type(), create_int_data_type(), sheaf::dof_tuple_record_set::dof_tuple_record_set(), ext_dataspace_dim(), extend_dataset(), sheaf::dof_tuple_record_set::externalize(), sheaf::member_record_set::externalize(), sheaf::dof_tuple_record_set::externalize_domain(), sheaf::dof_tuple_record_set::externalize_one_domain(), sheaf::member_record_set::internalize(), sheaf::dof_tuple_record_set::internalize(), sheaf::member_record_set::make_internal_dataspace(), sheaf::member_record_set::member_record_set(), sheaf::dof_tuple_record_set::open(), open(), read_attribute(), sheaf::attributes_record_set::read_dataset_attributes(), read_dataset_attributes(), sheaf::dof_tuple_record_set::read_records(), sheaf::member_record_set::read_selection(), sheaf::dof_tuple_record_set::read_selection(), sheaf::attributes_record_set::read_toc_bounds_attribute(), record_set(), set_name_from_alias(), sheaf::attributes_record_set::write_dataset_attributes(), write_dataset_attributes(), sheaf::member_record_set::write_selection(), sheaf::dof_tuple_record_set::write_selection(), and sheaf::attributes_record_set::write_toc_bounds_attribute().
std::string sheaf::record_set::name | ( | ) | const |
The name of this data set.
Definition at line 224 of file record_set.cc.
References _name, and alias().
Referenced by sheaf::attributes_record_set::attributes_record_set(), create_alias(), sheaf::attributes_record_set::create_dataset(), sheaf::member_record_set::create_dataset(), sheaf::dof_tuple_record_set::create_dataset(), sheaf::dof_tuple_record_set::dof_tuple_record_set(), sheaf::dof_tuple_record_set::externalize(), sheaf::member_record_set::externalize(), file(), sheaf::member_record_set::internalize(), sheaf::dof_tuple_record_set::internalize(), sheaf::member_record_set::make_internal_dataspace(), sheaf::member_record_set::member_record_set(), open(), and set_name_from_alias().
|
static |
The reserved, standard alias for the namespace in the file.
Definition at line 268 of file record_set.cc.
References name_space_prefix(), and sheaf::poset_path::reserved_prefix().
Referenced by alias(), and data_set_alias().
|
static |
The reserved, standard prefix for namespace dataser names.
Definition at line 276 of file record_set.cc.
References sheaf::poset_path::reserved_prefix(), and suffix().
Referenced by data_set_name(), name_space_alias(), and poset_name().
|
virtual |
Opens the record_set.
Reimplemented in sheaf::dof_tuple_record_set.
Definition at line 450 of file record_set.cc.
References _alias, _ext_data_type_hdf_id, _ext_dataspace_dims, _ext_dataspace_hdf_id, _file, _hdf_id, _name, alias(), create_alias(), create_dataset(), create_int_data_type(), ext_dataspace_rank(), file(), invariant(), is_open(), sheaf::sheaf_file::mode(), name(), read_dataset_attributes(), and set_name_from_alias().
Referenced by sheaf::storage_agent::begin_read_transaction(), sheaf::storage_agent::commit_transaction(), sheaf::dof_tuple_record_set::open(), and type_map().
std::string sheaf::record_set::poset_name | ( | ) | const |
The name of the poset this represents, extracted from the name of the dataset.
Definition at line 373 of file record_set.cc.
References _name, name_space_prefix(), scaffold(), and suffix().
Referenced by sheaf::storage_agent::begin_read_transaction(), and data_set_alias().
|
protected |
Reads the attribute with name xatt_name from the file.
Definition at line 1045 of file record_set.cc.
References _hdf_id, sheaf::data_converter::internal_size(), sheaf::data_converter::internal_type(), is_open(), sheaf::poset_state_handle::name(), scaffold(), sheaf::poset_scaffold::structure(), and write_attribute().
Referenced by write_dataset_attributes().
|
protectedvirtual |
Opens and reads the dataset attribute objects from the file. A stub in this class, intended to be redefined in descendants.
Reimplemented in sheaf::attributes_record_set.
Definition at line 1000 of file record_set.cc.
References is_open(), and write_dataset_attributes().
Referenced by int_data_type_hdf_id(), and open().
int sheaf::record_set::record_buffer_ct | ( | ) | const |
The number of active records in record buffer.
Definition at line 635 of file record_set.cc.
References _record_buffer_ct, and inc_record_buffer_ct().
Referenced by sheaf::attributes_record_set::attributes_record_set(), close(), sheaf::attributes_record_set::create_int_data_type(), sheaf::dof_tuple_record_set::dof_tuple_record_set(), sheaf::member_record_set::externalize(), sheaf::member_record_set::make_internal_dataspace(), sheaf::member_record_set::read_record(), sheaf::member_record_set::read_selection(), and record_set().
bool sheaf::record_set::record_buffer_is_empty | ( | ) | const |
True if there are no active records in the buffer.
Definition at line 695 of file record_set.cc.
References _record_buffer_ct, and record_buffer_is_full().
Referenced by sheaf::member_record_set::externalize(), sheaf::member_record_set::make_internal_dataspace(), sheaf::member_record_set::member_record_set(), record_buffer_ub(), and reset_record_buffer_ct().
bool sheaf::record_set::record_buffer_is_full | ( | ) | const |
True if there are no inactive records in the buffer.
Definition at line 705 of file record_set.cc.
References _record_buffer_ct, _record_buffer_ub, and create_dataset().
Referenced by sheaf::member_record_set::externalize(), and record_buffer_is_empty().
int sheaf::record_set::record_buffer_ub | ( | ) | const |
The maximum number of records the buffer can hold.
Definition at line 685 of file record_set.cc.
References _record_buffer_ub, and record_buffer_is_empty().
Referenced by sheaf::attributes_record_set::attributes_record_set(), sheaf::attributes_record_set::create_dataset(), sheaf::attributes_record_set::create_int_data_type(), sheaf::dof_tuple_record_set::dof_tuple_record_set(), sheaf::member_record_set::externalize(), sheaf::dof_tuple_record_set::get_internal_record(), sheaf::attributes_record_set::invariant(), sheaf::member_record_set::make_internal_dataspace(), sheaf::member_record_set::member_record_set(), sheaf::member_record_set::read_record(), record_set(), and reset_record_buffer_ct().
void sheaf::record_set::reset_record_buffer_ct | ( | ) |
The set the number of active records in record buffer to 0.
Definition at line 662 of file record_set.cc.
References _record_buffer_ct, record_buffer_is_empty(), and record_buffer_ub().
Referenced by sheaf::dof_tuple_record_set::externalize(), sheaf::member_record_set::externalize(), sheaf::dof_tuple_record_set::externalize_domain(), inc_record_buffer_ct(), sheaf::member_record_set::make_internal_dataspace(), sheaf::member_record_set::read_record(), and sheaf::dof_tuple_record_set::read_records().
sheaf::poset_scaffold & sheaf::record_set::scaffold | ( | ) |
Scaffold for constructing poset associated with this record set (mutable version).
Definition at line 416 of file record_set.cc.
References _scaffold.
Referenced by sheaf::dof_tuple_record_set::attach_transfer_schema(), sheaf::attributes_record_set::attributes_record_set(), sheaf::dof_tuple_record_set::compute_ext_id(), sheaf::dof_tuple_record_set::create_int_data_type(), data_set_alias(), data_set_name(), sheaf::dof_tuple_record_set::dof_tuple_record_set(), sheaf::dof_tuple_record_set::externalize(), sheaf::member_record_set::externalize(), sheaf::attributes_record_set::externalize(), sheaf::dof_tuple_record_set::externalize_all_dofs(), sheaf::dof_tuple_record_set::externalize_domain(), sheaf::dof_tuple_record_set::externalize_one_domain(), sheaf::member_record_set::internalize(), sheaf::dof_tuple_record_set::internalize(), sheaf::attributes_record_set::internalize(), sheaf::dof_tuple_record_set::internalize_all_dofs(), sheaf::member_record_set::make_internal_dataspace(), sheaf::member_record_set::member_record_set(), poset_name(), read_attribute(), sheaf::dof_tuple_record_set::read_records(), sheaf::attributes_record_set::read_toc_bounds_attribute(), sheaf::dof_tuple_record_set::schematize(), sheaf::member_record_set::write_selection(), sheaf::dof_tuple_record_set::write_selection(), and sheaf::attributes_record_set::write_toc_bounds_attribute().
const sheaf::poset_scaffold & sheaf::record_set::scaffold | ( | ) | const |
Scaffold for constructing poset associated with this record set (const version).
Definition at line 424 of file record_set.cc.
References _scaffold, and type_map().
|
protected |
|
virtual |
The name suffix for this data set.
Reimplemented in sheaf::attributes_record_set, sheaf::member_record_set, and sheaf::dof_tuple_record_set.
Definition at line 284 of file record_set.cc.
References data_set_name().
Referenced by data_set_alias(), data_set_name(), name_space_prefix(), and poset_name().
sheaf::poset_data_type_map & sheaf::record_set::type_map | ( | ) |
Data type map for records in this record set (mutable version)
Definition at line 432 of file record_set.cc.
References _scaffold, and sheaf::poset_scaffold::type_map().
Referenced by sheaf::attributes_record_set::create_int_data_type(), sheaf::member_record_set::create_int_data_type(), sheaf::dof_tuple_record_set::create_int_data_type(), sheaf::dof_tuple_record_set::dof_tuple_record_set(), sheaf::dof_tuple_record_set::externalize_all_dofs(), sheaf::dof_tuple_record_set::internalize_all_dofs(), sheaf::dof_tuple_record_set::invariant(), sheaf::attributes_record_set::read_toc_bounds_attribute(), scaffold(), and sheaf::attributes_record_set::write_toc_bounds_attribute().
const sheaf::poset_data_type_map & sheaf::record_set::type_map | ( | ) | const |
Data type map for records in this record set (const version)
Definition at line 442 of file record_set.cc.
References _scaffold, open(), and sheaf::poset_scaffold::type_map().
|
protected |
Writes the attribute with name xatt_name into the file.
Definition at line 1135 of file record_set.cc.
References _hdf_id, sheaf::data_converter::external_type(), sheaf::data_converter::internal_type(), and NOT_AN_HDF_ID.
Referenced by read_attribute().
|
protectedvirtual |
Writes the dataset attribute objects into the file. A stub in this class, intended to be redefined in descendants.
Reimplemented in sheaf::attributes_record_set.
Definition at line 1022 of file record_set.cc.
References is_open(), and read_attribute().
Referenced by close(), and read_dataset_attributes().
|
protected |
The standard alias for this record_set.
Definition at line 395 of file record_set.h.
Referenced by alias(), sheaf::attributes_record_set::attributes_record_set(), create_alias(), sheaf::dof_tuple_record_set::dof_tuple_record_set(), sheaf::member_record_set::member_record_set(), open(), and set_name_from_alias().
|
protected |
The HDF external data type id for this record set.
Definition at line 415 of file record_set.h.
Referenced by close(), sheaf::attributes_record_set::create_int_data_type(), ext_data_type_hdf_id(), open(), record_set(), and sheaf::member_record_set::write_selection().
|
protected |
The current dimensions of the external dataspace.
Definition at line 425 of file record_set.h.
Referenced by sheaf::attributes_record_set::attributes_record_set(), sheaf::dof_tuple_record_set::dof_tuple_record_set(), ext_dataspace_dim(), extend_dataset(), sheaf::member_record_set::member_record_set(), open(), sheaf::dof_tuple_record_set::write_selection(), sheaf::attributes_record_set::~attributes_record_set(), sheaf::dof_tuple_record_set::~dof_tuple_record_set(), and sheaf::member_record_set::~member_record_set().
|
protected |
The HDF id for the external dataspace of this record set.
Definition at line 410 of file record_set.h.
Referenced by close(), sheaf::attributes_record_set::create_dataset(), sheaf::member_record_set::create_dataset(), sheaf::dof_tuple_record_set::create_dataset(), sheaf::attributes_record_set::create_int_data_type(), ext_dataspace_hdf_id(), extend_dataset(), open(), sheaf::member_record_set::read_selection(), sheaf::dof_tuple_record_set::read_selection(), record_set(), sheaf::member_record_set::write_selection(), and sheaf::dof_tuple_record_set::write_selection().
|
protected |
The rank of the dataspace for the record_set.
Definition at line 420 of file record_set.h.
Referenced by sheaf::attributes_record_set::attributes_record_set(), sheaf::dof_tuple_record_set::dof_tuple_record_set(), ext_dataspace_rank(), and sheaf::member_record_set::member_record_set().
|
protected |
The file this record_set belongs to.
Definition at line 385 of file record_set.h.
|
protected |
The HDF id for this record set.
Definition at line 405 of file record_set.h.
Referenced by close(), sheaf::attributes_record_set::create_int_data_type(), extend_dataset(), hdf_id(), is_open(), open(), read_attribute(), sheaf::member_record_set::read_selection(), sheaf::dof_tuple_record_set::read_selection(), sheaf::attributes_record_set::read_toc_bounds_attribute(), record_set(), write_attribute(), sheaf::member_record_set::write_selection(), sheaf::dof_tuple_record_set::write_selection(), and sheaf::attributes_record_set::write_toc_bounds_attribute().
|
protected |
The HDF internal data type id for this record set.
Definition at line 452 of file record_set.h.
Referenced by close(), sheaf::attributes_record_set::create_dataset(), sheaf::member_record_set::create_dataset(), sheaf::dof_tuple_record_set::create_dataset(), sheaf::attributes_record_set::create_int_data_type(), sheaf::member_record_set::create_int_data_type(), sheaf::dof_tuple_record_set::create_int_data_type(), int_data_type_hdf_id(), sheaf::attributes_record_set::internalize(), sheaf::member_record_set::make_internal_dataspace(), sheaf::dof_tuple_record_set::open(), sheaf::member_record_set::read_selection(), sheaf::dof_tuple_record_set::read_selection(), record_set(), and sheaf::dof_tuple_record_set::write_selection().
|
protected |
The hdf5 id of the dataspace associated with the record buffer.
Definition at line 447 of file record_set.h.
Referenced by sheaf::attributes_record_set::attributes_record_set(), close(), sheaf::attributes_record_set::create_int_data_type(), sheaf::dof_tuple_record_set::dof_tuple_record_set(), int_dataspace_hdf_id(), sheaf::attributes_record_set::internalize(), sheaf::member_record_set::make_internal_dataspace(), sheaf::member_record_set::read_selection(), sheaf::dof_tuple_record_set::read_selection(), record_set(), sheaf::member_record_set::write_selection(), and sheaf::dof_tuple_record_set::write_selection().
|
protected |
The name of this record_set.
Definition at line 390 of file record_set.h.
Referenced by sheaf::attributes_record_set::attributes_record_set(), create_alias(), sheaf::dof_tuple_record_set::dof_tuple_record_set(), sheaf::member_record_set::member_record_set(), name(), open(), poset_name(), and set_name_from_alias().
|
protected |
The number of active records in record buffer.
Definition at line 436 of file record_set.h.
Referenced by sheaf::attributes_record_set::attributes_record_set(), sheaf::attributes_record_set::create_int_data_type(), inc_record_buffer_ct(), sheaf::member_record_set::make_internal_dataspace(), record_buffer_ct(), record_buffer_is_empty(), record_buffer_is_full(), record_set(), reset_record_buffer_ct(), and sheaf::member_record_set::write_selection().
|
protected |
The maximum number of records the buffer can hold.
Definition at line 441 of file record_set.h.
Referenced by sheaf::attributes_record_set::attributes_record_set(), sheaf::member_record_set::create_dataset(), sheaf::dof_tuple_record_set::create_dataset(), sheaf::attributes_record_set::create_int_data_type(), sheaf::dof_tuple_record_set::dof_tuple_record_set(), sheaf::dof_tuple_record_set::externalize(), sheaf::attributes_record_set::externalize(), sheaf::dof_tuple_record_set::externalize_domain(), sheaf::dof_tuple_record_set::get_internal_record(), sheaf::attributes_record_set::internalize(), sheaf::dof_tuple_record_set::open(), record_buffer_is_full(), and record_buffer_ub().
|
protected |
The poset scaffold associated with this.
Definition at line 400 of file record_set.h.
Referenced by scaffold(), and type_map().
|
staticprotected |
Value indicating an invalid HDf object id. /.
Definition at line 431 of file record_set.h.
Referenced by close(), create_dataset(), int_data_type_hdf_id(), record_set(), and write_attribute().