SheafSystem
0.0.0.0
|
The general, abstract map from dof ids to dof values. More...
#include <poset_dof_map.h>
Public Member Functions | |
virtual const std::string & | class_name () const |
The name of the actual (possibly derived) class of this instance. More... | |
virtual poset_dof_map * | clone () const =0 |
Virtual default constructor. More... | |
virtual poset_dof_map * | copy () const =0 |
Virtual copy constructor. More... | |
poset_dof_map & | operator= (const poset_dof_map &xother) |
Assignment operator. More... | |
virtual | ~poset_dof_map () |
Destructor. More... | |
virtual bool | invariant () const |
The class invariant. More... | |
virtual void | init_row_dof_map (const poset_state_handle *xhost, pod_index_type xschema_mbr_id, int xschema_version) |
Initializes this as a map for row dofs in host xhost, with schema member specified by xschema_mbr_id and schema version xschema_version. More... | |
void | init_row_dof_map (const poset_state_handle *xhost, const scoped_index &xschema_mbr_id, int xschema_version) |
Initializes this as a map for row dofs in host xhost, with schema member specified by xschema_mbr_id and schema version xschema_version. More... | |
virtual dof_tuple_type | type_id () const =0 |
An identifer for the type of dof tuple this is. More... | |
bool | is_initialized () const |
True if this has been initialized, that is, if the schema has been set and the dof map storage allocated. More... | |
virtual poset_state_handle * | host () const |
The poset which owns this. More... | |
const scoped_index & | index () const |
The index of this in host() dof tuple table. More... | |
virtual schema_poset_member & | schema () |
The schema on which this is allocated (mutable version). More... | |
virtual const schema_poset_member & | schema () const |
The schema on which this is allocated (const version). More... | |
bool | is_table_dof_map () const |
True if this is a table dof map. More... | |
int | dof_ct () const |
The number of dofs in this map. More... | |
primitive_value | dof (pod_index_type xdof_id) const |
The dof referred to by xdof_id. More... | |
primitive_value | dof (const scoped_index &xdof_id) const |
The dof referred to by xdof_id. More... | |
primitive_value | dof (const std::string &xname) const |
The dof with name xname. More... | |
void | put_dof (pod_index_type xdof_id, const primitive_value &xdof) |
Sets the dof referred to by xdof_id to xdof. More... | |
void | put_dof (const scoped_index &xdof_id, const primitive_value &xdof) |
Sets the dof referred to by xdof_id to xdof. More... | |
void | put_dof (const std::string &xname, const primitive_value &xdof) |
Sets the dof with name xname to xdof. More... | |
virtual void | get_dof (pod_index_type xdof_id, void *xdof, size_type xdof_size) const |
Copies the dof referred to by xdof_id into xdof. More... | |
void | get_dof (const scoped_index &xdof_id, void *xdof, size_type xdof_size) const |
Copies the dof referred to by xdof_id into xdof. More... | |
virtual void | put_dof (pod_index_type xdof_id, const void *xdof, size_type xdof_size) |
Sets the dof referred to by xdof_id to the value at xdof. More... | |
void | put_dof (const scoped_index &xdof_id, const void *xdof, size_type xdof_size) |
Sets the dof referred to by xdof_id to the value at xdof. More... | |
size_t | dof_tuple_ub () const |
The size of the dof tuple in bytes. More... | |
virtual void * | dof_tuple ()=0 |
The dof tuple (mutable version). More... | |
virtual const void * | dof_tuple () const =0 |
The dof tuple (const version). More... | |
virtual void | get_dof_tuple (void *xbuf, size_t xbuflen) const =0 |
Copies the entire dof tuple from internal storage into xbuf. More... | |
virtual void | put_dof_tuple (const void *xbuf, size_t xbuflen)=0 |
Copies the entire dof tuple from xbuf into internal storage. More... | |
void | get_dof_tuple (arg_list &xargs) const |
Copies the entire dof tuple from internal storage into xargs. More... | |
void | put_dof_tuple (const arg_list &xargs) |
Copies the entire dof tuple from xargs into internal storage. More... | |
void | copy_dof_tuple (const poset_dof_map &xother) |
Copies the dof tuple of xother into this. More... | |
virtual void | put_defaults () |
Sets all dofs to defualt values. More... | |
unsigned int | ref_ct () const |
The number of references to this map. More... | |
void | inc_ref_ct () |
Increase the number of references to this map by one;. More... | |
void | dec_ref_ct () |
Decrease the number of references to this map by one. More... | |
int | version () const |
The version of the host of the schema this is defined on. More... | |
virtual const index_space_handle & | client_id_space () const |
The map from library ids to clients ids for the schema this is defined on. More... | |
std::string | to_string (const schema_poset_member &xschema) const |
Return schema member dof value as a string. More... | |
std::string | to_string () const |
Return dof values as a formated string. More... | |
virtual bool | supports_xfr_opt () const |
True if this dof map type supports dof tuple transfer optimization. /. More... | |
Public Member Functions inherited from sheaf::any | |
virtual bool | is_ancestor_of (const any *other) const |
True if other conforms to this. More... | |
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 & | static_class_name () |
The name of this class. More... | |
static poset_dof_map * | new_dof_map (const std::string &xclass_name, dof_tuple_type xsheaf_base_class_id) |
Creates an uninitialized dof map of type xclass_name, if a prototype of that name exists, otherwise of type xsheaf_base_class_id. More... | |
Protected Member Functions | |
poset_dof_map () | |
Default constructor;. More... | |
poset_dof_map (const poset_dof_map &xother) | |
Copy constructor. More... | |
poset_dof_map (const poset_state_handle *xhost, bool xis_table_dof_map) | |
Creates a map for the table dofs (xis_table_dofs true) or row dofs (xis_table dofs false) for use in host xhost. More... | |
poset_dof_map (const schema_poset_member *xschema, bool xis_table_dof_map) | |
Creates a map for the table dofs (xis_table_dofs true) or row dofs (xis_table dofs false) for use in host xhost. More... | |
virtual void | put_host (const poset_state_handle *xhost) |
Sets host() to xhost. More... | |
void | put_index (const scoped_index &xindex) |
Sets the index of the member for which this provides the dofs. More... | |
void | put_dof_ct (int xdof_ct) |
Sets dof_ct() to xdof_ct. More... | |
void | put_dof_tuple_ub (size_t xub) |
Sets dof_tuple_ub() to xub. More... | |
void | put_ref_ct (int xref_ct) |
Sets ref_ct() to xref_ct). More... | |
virtual void | allocate_dofs ()=0 |
Allocates dof storage. More... | |
Protected Member Functions inherited from sheaf::any | |
any () | |
default constructor More... | |
Static Protected Member Functions | |
static dof_map_factory & | factory () |
The dof map factory. More... | |
Protected Attributes | |
poset_state_handle * | _host |
The host of the poset member for which this stores the dofs. More... | |
scoped_index | _index |
The poset member for which this stores the dofs. More... | |
schema_poset_member * | _schema |
The schema on which this is instantiated. More... | |
bool | _is_table_dof_map |
True if this is a table dof map. More... | |
int | _dof_ct |
The number of dofs in this map. More... | |
size_t | _dof_tuple_ub |
The size of the dof tuple. More... | |
unsigned int | _ref_ct |
The number of references to this map /. More... | |
Friends | |
class | poset_table_state |
class | poset_state_handle |
SHEAF_DLL_SPEC size_t | deep_size (const poset_dof_map &xp, bool xinclude_shallow) |
The deep size of the referenced object of type poset_dof_map. More... | |
The general, abstract map from dof ids to dof values.
Definition at line 59 of file poset_dof_map.h.
|
virtual |
Destructor.
Definition at line 200 of file poset_dof_map.cc.
References invariant().
Referenced by operator=().
|
protected |
Default constructor;.
Definition at line 1098 of file poset_dof_map.cc.
References sheaf::is_valid().
Referenced by factory(), and poset_dof_map().
|
protected |
Copy constructor.
Definition at line 1135 of file poset_dof_map.cc.
References _is_table_dof_map, _schema, sheaf::abstract_poset_member::attach_to_state(), sheaf::schema_poset_member::clone(), dof_ct(), dof_tuple_ub(), host(), index(), is_initialized(), is_table_dof_map(), poset_dof_map(), and schema().
|
protected |
Creates a map for the table dofs (xis_table_dofs true) or row dofs (xis_table dofs false) for use in host xhost.
Definition at line 1174 of file poset_dof_map.cc.
References sheaf::abstract_poset_member::attach_to_state(), sheaf::schema_poset_member::clone(), sheaf::is_valid(), poset_dof_map(), sheaf::poset_state_handle::schema(), and sheaf::read_write_monitor_handle::state_is_read_accessible().
|
protected |
Creates a map for the table dofs (xis_table_dofs true) or row dofs (xis_table dofs false) for use in host xhost.
Definition at line 1222 of file poset_dof_map.cc.
References sheaf::abstract_poset_member::attach_to_state(), sheaf::schema_poset_member::clone(), sheaf::poset_state_handle::dof_tuple_hub_id_space(), sheaf::poset_component::host(), sheaf::is_valid(), put_host(), and sheaf::read_write_monitor_handle::state_is_read_accessible().
|
protectedpure virtual |
|
virtual |
The name of the actual (possibly derived) class of this instance.
Reimplemented in fiber_bundle::sparse_section_dof_map, fiber_bundle::array_field_dof_map, sheaf::namespace_poset_dof_map, fiber_bundle::section_dof_map, fiber_bundle::sparse_field_dof_map, fiber_bundle::field_dof_map, fiber_bundle::array_section_dof_map, sheaf::primitives_poset_dof_map, and sheaf::array_poset_dof_map.
Definition at line 38 of file poset_dof_map.cc.
References static_class_name().
Referenced by sheaf::storage_agent::commit_dof_tuple_transaction(), sheaf::member_record::externalize(), and sheaf::dof_map_factory::insert_prototype().
|
virtual |
The map from library ids to clients ids for the schema this is defined on.
Definition at line 1040 of file poset_dof_map.cc.
References sheaf::index_space_handle::is_attached(), and supports_xfr_opt().
Referenced by sheaf::array_poset_dof_map::dof_ptr(), sheaf::namespace_poset_dof_map::namespace_poset_dof_map(), and version().
|
pure virtual |
Virtual default constructor.
Is Abstract.
Reimplemented from sheaf::any.
Implemented in fiber_bundle::sparse_section_dof_map, fiber_bundle::array_field_dof_map, fiber_bundle::sparse_field_dof_map, sheaf::namespace_poset_dof_map, fiber_bundle::array_section_dof_map, sheaf::primitives_poset_dof_map, sheaf::array_poset_dof_map, and fiber_bundle::array_sec_vd_dof_map.
Definition at line 104 of file poset_dof_map.cc.
References copy(), and sheaf::any::is_same_type().
Referenced by sheaf::dof_map_factory::new_dof_map(), new_dof_map(), and sheaf::dof_tuple_record_set::read_records().
|
pure virtual |
Virtual copy constructor.
Is Abstract.
Implemented in fiber_bundle::sparse_section_dof_map, fiber_bundle::array_field_dof_map, fiber_bundle::sparse_field_dof_map, sheaf::namespace_poset_dof_map, fiber_bundle::array_section_dof_map, sheaf::primitives_poset_dof_map, sheaf::array_poset_dof_map, and fiber_bundle::array_sec_vd_dof_map.
Definition at line 128 of file poset_dof_map.cc.
References sheaf::any::is_same_type(), and operator=().
Referenced by clone(), and sheaf::poset_state_handle::clone_row_dof_map().
void sheaf::poset_dof_map::copy_dof_tuple | ( | const poset_dof_map & | xother | ) |
Copies the dof tuple of xother into this.
Definition at line 885 of file poset_dof_map.cc.
References dof_ct(), get_dof_tuple(), put_defaults(), schema(), and sheaf::read_write_monitor_handle::state_is_read_accessible().
Referenced by fiber_bundle::sec_atp_space::new_table(), fiber_bundle::sec_at1_space::new_table(), fiber_bundle::sec_at0_space::new_table(), fiber_bundle::sec_stp_space::new_table(), fiber_bundle::sec_vd_space::new_table(), fiber_bundle::sec_tp_space::new_table(), fiber_bundle::sec_tuple_space::new_table(), fiber_bundle::sec_jcb_space::new_table(), and put_dof_tuple().
void sheaf::poset_dof_map::dec_ref_ct | ( | ) |
Decrease the number of references to this map by one.
Definition at line 993 of file poset_dof_map.cc.
References version().
Referenced by inc_ref_ct(), and sheaf::poset_table_state::~poset_table_state().
sheaf::primitive_value sheaf::poset_dof_map::dof | ( | pod_index_type | xdof_id | ) | const |
The dof referred to by xdof_id.
Definition at line 520 of file poset_dof_map.cc.
References sheaf::primitive_value::id(), and sheaf::primitive_value::value().
Referenced by dof(), dof_ct(), fiber_bundle::array_field_dof_map::get_dof(), sheaf::namespace_poset_dof_map::get_dof_tuple(), sheaf::primitives_poset_dof_map::get_dof_tuple(), sheaf::array_poset_dof_map::get_dof_tuple(), fiber_bundle::sparse_section_dof_map::get_dof_tuple(), fiber_bundle::array_section_dof_map::get_dof_tuple(), fiber_bundle::sparse_field_dof_map::get_dof_tuple(), fiber_bundle::array_field_dof_map::get_dof_tuple(), sheaf::poset_table_state::invariant(), fiber_bundle::operator<<(), fiber_bundle::array_sec_vd_dof_map::put_dof(), fiber_bundle::array_field_dof_map::put_dof(), fiber_bundle::array_section_dof_map::put_dof(), fiber_bundle::sparse_field_dof_map::put_dof(), sheaf::namespace_poset_dof_map::put_dof_tuple(), sheaf::primitives_poset_dof_map::put_dof_tuple(), sheaf::array_poset_dof_map::put_dof_tuple(), fiber_bundle::sparse_section_dof_map::put_dof_tuple(), fiber_bundle::array_section_dof_map::put_dof_tuple(), fiber_bundle::sparse_field_dof_map::put_dof_tuple(), and fiber_bundle::array_field_dof_map::put_dof_tuple().
sheaf::primitive_value sheaf::poset_dof_map::dof | ( | const scoped_index & | xdof_id | ) | const |
The dof referred to by xdof_id.
Definition at line 545 of file poset_dof_map.cc.
References dof().
sheaf::primitive_value sheaf::poset_dof_map::dof | ( | const std::string & | xname | ) | const |
The dof with name xname.
Definition at line 567 of file poset_dof_map.cc.
References put_dof().
int sheaf::poset_dof_map::dof_ct | ( | ) | const |
The number of dofs in this map.
Definition at line 493 of file poset_dof_map.cc.
References dof().
Referenced by fiber_bundle::array_field_dof_map::array_field_dof_map(), sheaf::array_poset_dof_map::array_poset_dof_map(), fiber_bundle::array_section_dof_map::array_section_dof_map(), copy_dof_tuple(), sheaf::array_poset_dof_map::dof_ptr(), sheaf::array_poset_dof_map::dof_tuple(), sheaf::array_poset_dof_map::get_dof_tuple(), sheaf::array_poset_dof_map::init_dofs(), sheaf::primitives_poset_dof_map::init_row_dof_map(), sheaf::poset_state_handle::initialize_table_dofs(), sheaf::array_poset_dof_map::invariant(), is_table_dof_map(), sheaf::namespace_poset_dof_map::namespace_poset_dof_map(), sheaf::primitives_poset_dof_map::operator=(), operator=(), poset_dof_map(), sheaf::primitives_poset_dof_map::primitives_poset_dof_map(), sheaf::array_poset_dof_map::put_dof_tuple(), and fiber_bundle::section_dof_map::section_dof_map().
|
pure virtual |
The dof tuple (mutable version).
Implemented in fiber_bundle::array_field_dof_map, fiber_bundle::sparse_field_dof_map, fiber_bundle::array_section_dof_map, fiber_bundle::sparse_section_dof_map, sheaf::array_poset_dof_map, sheaf::primitives_poset_dof_map, and sheaf::namespace_poset_dof_map.
Referenced by fiber_bundle::homogeneous_block::new_row_dof_map(), fiber_bundle::structured_block_1d::new_row_dof_map(), fiber_bundle::point_block_1d::new_row_dof_map(), fiber_bundle::structured_block_2d::new_row_dof_map(), fiber_bundle::point_block_2d::new_row_dof_map(), fiber_bundle::structured_block_3d::new_row_dof_map(), fiber_bundle::point_block_3d::new_row_dof_map(), fiber_bundle::base_space_member::new_row_dof_map(), sheaf::dof_tuple_record_set::populate_internal_dof_map(), fiber_bundle::unstructured_block_builder::put_name_mode(), fiber_bundle::base_space_poset::row_dof_tuple(), and fiber_bundle::sec_vd::value_at_point_ua().
|
pure virtual |
The dof tuple (const version).
Implemented in fiber_bundle::array_field_dof_map, fiber_bundle::sparse_field_dof_map, fiber_bundle::array_section_dof_map, fiber_bundle::sparse_section_dof_map, sheaf::array_poset_dof_map, sheaf::primitives_poset_dof_map, and sheaf::namespace_poset_dof_map.
size_t sheaf::poset_dof_map::dof_tuple_ub | ( | ) | const |
The size of the dof tuple in bytes.
Definition at line 763 of file poset_dof_map.cc.
References get_dof_tuple().
Referenced by fiber_bundle::array_field_dof_map::array_field_dof_map(), fiber_bundle::array_section_dof_map::array_section_dof_map(), sheaf::array_poset_dof_map::get_dof_tuple(), fiber_bundle::sparse_section_dof_map::get_dof_tuple(), fiber_bundle::array_section_dof_map::get_dof_tuple(), fiber_bundle::sparse_field_dof_map::get_dof_tuple(), fiber_bundle::array_field_dof_map::get_dof_tuple(), sheaf::array_poset_dof_map::init_dofs(), sheaf::primitives_poset_dof_map::init_row_dof_map(), sheaf::array_poset_dof_map::invariant(), sheaf::array_poset_dof_map::operator=(), sheaf::primitives_poset_dof_map::operator=(), fiber_bundle::array_section_dof_map::operator=(), fiber_bundle::array_field_dof_map::operator=(), operator=(), sheaf::dof_tuple_record_set::populate_internal_dof_map(), poset_dof_map(), sheaf::primitives_poset_dof_map::primitives_poset_dof_map(), put_dof(), sheaf::array_poset_dof_map::put_dof_tuple(), fiber_bundle::sparse_section_dof_map::put_dof_tuple(), fiber_bundle::array_section_dof_map::put_dof_tuple(), fiber_bundle::sparse_field_dof_map::put_dof_tuple(), fiber_bundle::array_field_dof_map::put_dof_tuple(), fiber_bundle::unstructured_block_builder::put_name_mode(), fiber_bundle::array_section_dof_map::reserve_fiber(), and fiber_bundle::section_dof_map::section_dof_map().
|
staticprotected |
The dof map factory.
Definition at line 1074 of file poset_dof_map.cc.
References poset_dof_map().
Referenced by sheaf::namespace_poset_dof_map::allocate_dofs(), fiber_bundle::sparse_section_dof_map::allocate_dofs(), fiber_bundle::array_section_dof_map::allocate_dofs(), fiber_bundle::sparse_field_dof_map::allocate_dofs(), fiber_bundle::array_field_dof_map::allocate_dofs(), sheaf::array_poset_dof_map::dof_in_bounds(), fiber_bundle::array_sec_vd_dof_map::put_dof(), sheaf::primitives_poset_dof_map::put_host(), and supports_xfr_opt().
|
virtual |
Copies the dof referred to by xdof_id into xdof.
Reimplemented in fiber_bundle::array_section_dof_map, fiber_bundle::sparse_section_dof_map, fiber_bundle::array_field_dof_map, sheaf::array_poset_dof_map, fiber_bundle::array_sec_vd_dof_map, sheaf::primitives_poset_dof_map, and sheaf::namespace_poset_dof_map.
Definition at line 663 of file poset_dof_map.cc.
Referenced by sheaf::dof_tuple_record_set::externalize_all_dofs(), sheaf::dof_tuple_record_set::populate_internal_dof_map(), put_dof(), sheaf::namespace_poset_dof_map::type_id(), and sheaf::primitives_poset_dof_map::type_id().
void sheaf::poset_dof_map::get_dof | ( | const scoped_index & | xdof_id, |
void * | xdof, | ||
size_type | xdof_size | ||
) | const |
Copies the dof referred to by xdof_id into xdof.
Definition at line 686 of file poset_dof_map.cc.
References put_dof().
|
pure virtual |
Copies the entire dof tuple from internal storage into xbuf.
Implemented in fiber_bundle::array_field_dof_map, fiber_bundle::sparse_field_dof_map, fiber_bundle::array_section_dof_map, fiber_bundle::sparse_section_dof_map, sheaf::array_poset_dof_map, sheaf::primitives_poset_dof_map, and sheaf::namespace_poset_dof_map.
Referenced by copy_dof_tuple(), and dof_tuple_ub().
void sheaf::poset_dof_map::get_dof_tuple | ( | arg_list & | xargs | ) | const |
Copies the entire dof tuple from internal storage into xargs.
Definition at line 786 of file poset_dof_map.cc.
References sheaf::arg_list::conforms_to(), sheaf::arg_list::ct(), sheaf::poset_component::index(), sheaf::poset_dof_iterator::is_done(), sheaf::poset_dof_iterator::item(), sheaf::arg_list::arg_type::name, sheaf::schema_poset_member::name(), sheaf::poset_dof_iterator::next(), sheaf::arg_list::push_back(), put_dof_tuple(), sheaf::arg_list::arg_type::put_type(), sheaf::schema_poset_member::type(), and sheaf::arg_list::arg_type::value.
|
virtual |
The poset which owns this.
Reimplemented in fiber_bundle::section_dof_map.
Definition at line 398 of file poset_dof_map.cc.
References index().
Referenced by sheaf::primitives_poset_dof_map::init_row_dof_map(), sheaf::primitives_poset_dof_map::invariant(), is_initialized(), sheaf::namespace_poset_dof_map::namespace_poset_dof_map(), sheaf::abstract_poset_member::new_jim_state(), fiber_bundle::sec_rep_descriptor::new_jim_state(), sheaf::poset_state_handle::new_member(), sheaf::primitives_poset_dof_map::operator=(), operator=(), poset_dof_map(), sheaf::primitives_poset_dof_map::primitives_poset_dof_map(), sheaf::primitives_poset_dof_map::put_host(), fiber_bundle::unstructured_block_builder::put_name_mode(), and sheaf::dof_tuple_record_set::read_records().
void sheaf::poset_dof_map::inc_ref_ct | ( | ) |
Increase the number of references to this map by one;.
Definition at line 971 of file poset_dof_map.cc.
References dec_ref_ct().
Referenced by sheaf::poset_state_handle::initialize_table_dof_tuple(), sheaf::poset_state_handle::initialize_table_dofs(), sheaf::poset_table_state::put_row_dof_tuple(), and ref_ct().
const sheaf::scoped_index & sheaf::poset_dof_map::index | ( | ) | const |
The index of this in host() dof tuple table.
Definition at line 417 of file poset_dof_map.cc.
References schema().
Referenced by sheaf::poset_state_handle::clone_row_dof_map(), host(), sheaf::primitives_poset_dof_map::init_row_dof_map(), sheaf::member_record::internalize(), sheaf::namespace_poset_dof_map::namespace_poset_dof_map(), sheaf::poset_state_handle::new_member(), fiber_bundle::sec_rep_space::new_row_dof_map(), sheaf::namespace_poset::new_row_dof_map(), sheaf::poset_state_handle::new_row_dof_map(), sheaf::primitives_poset_dof_map::operator=(), operator=(), poset_dof_map(), sheaf::primitives_poset_dof_map::primitives_poset_dof_map(), sheaf::poset_table_state::put_row_dof_tuple(), and fiber_bundle::section_dof_map::section_dof_map().
|
virtual |
Initializes this as a map for row dofs in host xhost, with schema member specified by xschema_mbr_id and schema version xschema_version.
Reimplemented in sheaf::primitives_poset_dof_map.
Definition at line 265 of file poset_dof_map.cc.
References sheaf::abstract_poset_member::attach_to_state(), sheaf::schema_poset_member::clone(), sheaf::poset_state_handle::contains_member(), sheaf::poset_state_handle::has_version(), sheaf::poset_component::host(), sheaf::is_valid(), sheaf::poset_state_handle::schema(), and sheaf::read_write_monitor_handle::state_is_read_accessible().
Referenced by sheaf::member_record::internalize(), invariant(), and sheaf::dof_tuple_record_set::read_records().
void sheaf::poset_dof_map::init_row_dof_map | ( | const poset_state_handle * | xhost, |
const scoped_index & | xschema_mbr_id, | ||
int | xschema_version | ||
) |
Initializes this as a map for row dofs in host xhost, with schema member specified by xschema_mbr_id and schema version xschema_version.
Definition at line 329 of file poset_dof_map.cc.
References sheaf::poset_state_handle::contains_member(), sheaf::poset_state_handle::has_version(), sheaf::poset_component::host(), sheaf::scoped_index::hub_pod(), is_initialized(), sheaf::is_valid(), sheaf::poset_state_handle::schema(), and sheaf::read_write_monitor_handle::state_is_read_accessible().
|
virtual |
The class invariant.
Reimplemented from sheaf::any.
Reimplemented in fiber_bundle::sparse_section_dof_map, fiber_bundle::array_field_dof_map, fiber_bundle::sparse_field_dof_map, sheaf::namespace_poset_dof_map, fiber_bundle::array_section_dof_map, sheaf::primitives_poset_dof_map, sheaf::array_poset_dof_map, fiber_bundle::array_sec_vd_dof_map, fiber_bundle::section_dof_map, and fiber_bundle::field_dof_map.
Definition at line 225 of file poset_dof_map.cc.
References init_row_dof_map().
Referenced by sheaf::array_poset_dof_map::invariant(), sheaf::primitives_poset_dof_map::invariant(), sheaf::namespace_poset_dof_map::invariant(), and ~poset_dof_map().
bool sheaf::poset_dof_map::is_initialized | ( | ) | const |
True if this has been initialized, that is, if the schema has been set and the dof map storage allocated.
Definition at line 376 of file poset_dof_map.cc.
References host().
Referenced by sheaf::array_poset_dof_map::array_poset_dof_map(), fiber_bundle::array_sec_vd_dof_map::array_sec_vd_dof_map(), fiber_bundle::array_section_dof_map::array_section_dof_map(), sheaf::deep_size(), sheaf::dof_map_factory::delete_prototype(), fiber_bundle::sparse_field_dof_map::get_component_dofs(), fiber_bundle::array_field_dof_map::get_component_dofs(), sheaf::primitives_poset_dof_map::init_row_dof_map(), init_row_dof_map(), sheaf::dof_map_factory::insert_prototype(), sheaf::primitives_poset_dof_map::invariant(), sheaf::namespace_poset_dof_map::namespace_poset_dof_map(), sheaf::dof_map_factory::new_dof_map(), new_dof_map(), fiber_bundle::field_dof_map::operator=(), fiber_bundle::section_dof_map::operator=(), fiber_bundle::array_sec_vd_dof_map::operator=(), sheaf::array_poset_dof_map::operator=(), sheaf::primitives_poset_dof_map::operator=(), fiber_bundle::array_section_dof_map::operator=(), sheaf::namespace_poset_dof_map::operator=(), fiber_bundle::sparse_field_dof_map::operator=(), fiber_bundle::array_field_dof_map::operator=(), operator=(), fiber_bundle::sparse_section_dof_map::operator=(), poset_dof_map(), sheaf::primitives_poset_dof_map::primitives_poset_dof_map(), fiber_bundle::sparse_field_dof_map::put_component_dofs(), fiber_bundle::array_field_dof_map::put_component_dofs(), fiber_bundle::section_dof_map::section_dof_map(), and fiber_bundle::sparse_section_dof_map::sparse_section_dof_map().
bool sheaf::poset_dof_map::is_table_dof_map | ( | ) | const |
True if this is a table dof map.
Definition at line 470 of file poset_dof_map.cc.
References dof_ct().
Referenced by sheaf::array_poset_dof_map::array_poset_dof_map(), fiber_bundle::array_section_dof_map::force_fiber(), fiber_bundle::array_section_dof_map::get_component(), sheaf::namespace_poset_dof_map::get_dof(), sheaf::primitives_poset_dof_map::get_dof(), sheaf::array_poset_dof_map::get_dof(), fiber_bundle::sparse_section_dof_map::get_dof(), fiber_bundle::array_section_dof_map::get_dof(), fiber_bundle::array_section_dof_map::get_fiber(), sheaf::primitives_poset_dof_map::init_row_dof_map(), sheaf::namespace_poset_dof_map::namespace_poset_dof_map(), sheaf::primitives_poset_dof_map::operator=(), operator=(), poset_dof_map(), sheaf::primitives_poset_dof_map::primitives_poset_dof_map(), fiber_bundle::array_section_dof_map::put_component(), sheaf::namespace_poset_dof_map::put_dof(), sheaf::primitives_poset_dof_map::put_dof(), sheaf::array_poset_dof_map::put_dof(), fiber_bundle::sparse_section_dof_map::put_dof(), fiber_bundle::array_section_dof_map::put_dof(), fiber_bundle::array_section_dof_map::put_fiber(), and schema().
|
static |
Creates an uninitialized dof map of type xclass_name, if a prototype of that name exists, otherwise of type xsheaf_base_class_id.
Definition at line 77 of file poset_dof_map.cc.
References clone(), and is_initialized().
Referenced by sheaf::member_record::internalize(), and static_class_name().
sheaf::poset_dof_map & sheaf::poset_dof_map::operator= | ( | const poset_dof_map & | xother | ) |
Assignment operator.
Definition at line 152 of file poset_dof_map.cc.
References _dof_ct, _dof_tuple_ub, _host, _index, _is_table_dof_map, _schema, sheaf::abstract_poset_member::attach_to_state(), sheaf::schema_poset_member::clone(), dof_ct(), dof_tuple_ub(), host(), index(), is_initialized(), is_table_dof_map(), schema(), and ~poset_dof_map().
Referenced by copy(), sheaf::array_poset_dof_map::operator=(), and sheaf::namespace_poset_dof_map::operator=().
|
virtual |
Sets all dofs to defualt values.
Definition at line 915 of file poset_dof_map.cc.
References sheaf::poset_component::index(), sheaf::poset_dof_iterator::is_done(), sheaf::poset_dof_iterator::item(), sheaf::poset_dof_iterator::next(), ref_ct(), sheaf::tuple(), and sheaf::schema_poset_member::type().
Referenced by copy_dof_tuple(), and sheaf::poset_state_handle::new_row_dof_map().
void sheaf::poset_dof_map::put_dof | ( | pod_index_type | xdof_id, |
const primitive_value & | xdof | ||
) |
Sets the dof referred to by xdof_id to xdof.
Definition at line 590 of file poset_dof_map.cc.
References sheaf::primitive_value::id(), and sheaf::primitive_value::value().
Referenced by dof(), get_dof(), sheaf::dof_tuple_record_set::internalize_all_dofs(), sheaf::dof_tuple_record_set::populate_internal_dof_map(), put_dof(), sheaf::namespace_poset_dof_map::type_id(), and sheaf::primitives_poset_dof_map::type_id().
void sheaf::poset_dof_map::put_dof | ( | const scoped_index & | xdof_id, |
const primitive_value & | xdof | ||
) |
Sets the dof referred to by xdof_id to xdof.
Definition at line 613 of file poset_dof_map.cc.
References sheaf::primitive_value::id(), and put_dof().
void sheaf::poset_dof_map::put_dof | ( | const std::string & | xname, |
const primitive_value & | xdof | ||
) |
Sets the dof with name xname to xdof.
Definition at line 638 of file poset_dof_map.cc.
References get_dof(), and sheaf::primitive_value::id().
|
virtual |
Sets the dof referred to by xdof_id to the value at xdof.
Reimplemented in fiber_bundle::array_section_dof_map, fiber_bundle::sparse_section_dof_map, sheaf::array_poset_dof_map, sheaf::primitives_poset_dof_map, and sheaf::namespace_poset_dof_map.
Definition at line 711 of file poset_dof_map.cc.
References put_dof().
void sheaf::poset_dof_map::put_dof | ( | const scoped_index & | xdof_id, |
const void * | xdof, | ||
size_type | xdof_size | ||
) |
Sets the dof referred to by xdof_id to the value at xdof.
Definition at line 734 of file poset_dof_map.cc.
References dof_tuple_ub().
|
protected |
Sets dof_ct() to xdof_ct.
Definition at line 1314 of file poset_dof_map.cc.
References put_dof_tuple_ub().
Referenced by put_index().
|
pure virtual |
Copies the entire dof tuple from xbuf into internal storage.
Implemented in fiber_bundle::array_field_dof_map, fiber_bundle::sparse_field_dof_map, fiber_bundle::array_section_dof_map, fiber_bundle::sparse_section_dof_map, sheaf::array_poset_dof_map, sheaf::primitives_poset_dof_map, and sheaf::namespace_poset_dof_map.
Referenced by get_dof_tuple(), fiber_bundle::sec_rep_descriptor::new_jim_state(), sheaf::dof_tuple_record_set::populate_internal_dof_map(), and fiber_bundle::unstructured_block_builder::put_name_mode().
void sheaf::poset_dof_map::put_dof_tuple | ( | const arg_list & | xargs | ) |
Copies the entire dof tuple from xargs into internal storage.
Definition at line 834 of file poset_dof_map.cc.
References sheaf::arg_list::conforms_to(), copy_dof_tuple(), sheaf::arg_list::ct(), sheaf::poset_component::index(), sheaf::arg_list::index(), sheaf::poset_dof_iterator::is_done(), sheaf::poset_dof_iterator::item(), sheaf::schema_poset_member::name(), sheaf::poset_dof_iterator::next(), and sheaf::arg_list::value().
|
protected |
Sets dof_tuple_ub() to xub.
Definition at line 1334 of file poset_dof_map.cc.
References put_ref_ct().
Referenced by put_dof_ct().
|
protectedvirtual |
Sets host() to xhost.
Reimplemented in sheaf::primitives_poset_dof_map.
Definition at line 1270 of file poset_dof_map.cc.
References sheaf::poset_component::is_same_state(), put_index(), sheaf::poset_state_handle::schema(), and sheaf::read_write_monitor_handle::state_is_read_accessible().
Referenced by sheaf::poset_state_handle::clone_row_dof_map(), sheaf::poset_state_handle::initialize_table_dof_tuple(), and poset_dof_map().
|
protected |
Sets the index of the member for which this provides the dofs.
Definition at line 1293 of file poset_dof_map.cc.
References sheaf::scoped_index::is_positive(), sheaf::scoped_index::is_valid(), and put_dof_ct().
Referenced by put_host(), and sheaf::poset_table_state::put_row_dof_tuple().
|
protected |
Sets ref_ct() to xref_ct).
Definition at line 1354 of file poset_dof_map.cc.
References to_string().
Referenced by put_dof_tuple_ub().
unsigned int sheaf::poset_dof_map::ref_ct | ( | ) | const |
The number of references to this map.
Definition at line 950 of file poset_dof_map.cc.
References inc_ref_ct().
Referenced by sheaf::namespace_poset_dof_map::namespace_poset_dof_map(), sheaf::primitives_poset_dof_map::operator=(), sheaf::primitives_poset_dof_map::primitives_poset_dof_map(), put_defaults(), sheaf::poset_table_state::put_row_dof_tuple(), fiber_bundle::section_dof_map::section_dof_map(), and sheaf::poset_table_state::~poset_table_state().
|
virtual |
The schema on which this is allocated (mutable version).
Reimplemented in fiber_bundle::section_dof_map.
Definition at line 432 of file poset_dof_map.cc.
Referenced by sheaf::array_poset_dof_map::allocate_dofs(), sheaf::namespace_poset_dof_map::allocate_dofs(), sheaf::array_poset_dof_map::array_poset_dof_map(), sheaf::poset_state_handle::clone_row_dof_map(), sheaf::dof_tuple_record_set::compute_ext_id(), copy_dof_tuple(), sheaf::array_poset_dof_map::dof_ptr(), sheaf::dof_tuple_record_set::externalize(), sheaf::dof_tuple_record_set::externalize_all_dofs(), sheaf::dof_tuple_record_set::externalize_domain(), sheaf::namespace_poset_dof_map::get_dof(), sheaf::primitives_poset_dof_map::get_dof(), sheaf::array_poset_dof_map::get_dof(), index(), sheaf::dof_tuple_record_set::internalize_all_dofs(), sheaf::primitives_poset_dof_map::invariant(), sheaf::poset_table_state::invariant(), sheaf::abstract_poset_member::new_jim_state(), fiber_bundle::binary_section_space_schema_poset::new_state(), fiber_bundle::product_section_space_schema_poset::new_state(), sheaf::poset_state_handle::new_state(), sheaf::primitives_poset_dof_map::operator=(), operator=(), sheaf::dof_tuple_record_set::populate_internal_dof_map(), poset_dof_map(), sheaf::primitives_poset_dof_map::primitives_poset_dof_map(), sheaf::namespace_poset_dof_map::put_dof(), sheaf::primitives_poset_dof_map::put_dof(), sheaf::array_poset_dof_map::put_dof(), sheaf::dof_tuple_record_set::read_records(), and sheaf::namespace_poset::~namespace_poset().
|
virtual |
The schema on which this is allocated (const version).
Reimplemented in fiber_bundle::section_dof_map.
Definition at line 451 of file poset_dof_map.cc.
References is_table_dof_map().
|
static |
The name of this class.
Definition at line 57 of file poset_dof_map.cc.
References new_dof_map().
Referenced by class_name().
|
virtual |
True if this dof map type supports dof tuple transfer optimization. /.
Reimplemented in fiber_bundle::sparse_field_dof_map, fiber_bundle::section_dof_map, and fiber_bundle::sparse_section_dof_map.
Definition at line 1062 of file poset_dof_map.cc.
References factory().
Referenced by client_id_space(), sheaf::dof_tuple_record_set::externalize_all_dofs(), sheaf::dof_tuple_record_set::internalize_all_dofs(), and sheaf::dof_tuple_record_set::populate_internal_dof_map().
std::string sheaf::poset_dof_map::to_string | ( | const schema_poset_member & | xschema | ) | const |
Return schema member dof value as a string.
Definition at line 1375 of file poset_dof_map.cc.
References sheaf::poset_component::index(), sheaf::schema_poset_member::name(), and to_string().
Referenced by sheaf::operator<<().
std::string sheaf::poset_dof_map::to_string | ( | ) | const |
Return dof values as a formated string.
Definition at line 1396 of file poset_dof_map.cc.
References sheaf::poset_dof_iterator::is_done(), sheaf::poset_dof_iterator::item(), and sheaf::poset_dof_iterator::next().
Referenced by put_ref_ct(), and to_string().
|
pure virtual |
An identifer for the type of dof tuple this is.
Implemented in fiber_bundle::array_section_dof_map, fiber_bundle::sparse_section_dof_map, sheaf::array_poset_dof_map, fiber_bundle::array_field_dof_map, fiber_bundle::sparse_field_dof_map, sheaf::primitives_poset_dof_map, and sheaf::namespace_poset_dof_map.
Referenced by sheaf::storage_agent::commit_dof_tuple_transaction(), and sheaf::member_record::externalize().
int sheaf::poset_dof_map::version | ( | ) | const |
The version of the host of the schema this is defined on.
Definition at line 1017 of file poset_dof_map.cc.
References client_id_space().
Referenced by dec_ref_ct(), sheaf::dof_tuple_record_set::internalize_all_dofs(), sheaf::poset_table_state::invariant(), and fiber_bundle::section_dof_map::section_dof_map().
|
friend |
The deep size of the referenced object of type poset_dof_map.
|
protected |
The number of dofs in this map.
Definition at line 413 of file poset_dof_map.h.
Referenced by sheaf::namespace_poset_dof_map::extend_to_top(), sheaf::primitives_poset_dof_map::init_row_dof_map(), sheaf::namespace_poset_dof_map::namespace_poset_dof_map(), sheaf::primitives_poset_dof_map::operator=(), operator=(), sheaf::primitives_poset_dof_map::primitives_poset_dof_map(), and fiber_bundle::section_dof_map::section_dof_map().
|
protected |
The size of the dof tuple.
Definition at line 418 of file poset_dof_map.h.
Referenced by fiber_bundle::array_section_dof_map::allocate_dofs(), fiber_bundle::array_field_dof_map::allocate_dofs(), fiber_bundle::array_section_dof_map::dof_in_bounds(), sheaf::array_poset_dof_map::dof_in_bounds(), sheaf::namespace_poset_dof_map::extend_to_top(), fiber_bundle::array_section_dof_map::fiber_in_bounds(), sheaf::primitives_poset_dof_map::init_row_dof_map(), sheaf::namespace_poset_dof_map::namespace_poset_dof_map(), sheaf::primitives_poset_dof_map::operator=(), operator=(), sheaf::primitives_poset_dof_map::primitives_poset_dof_map(), fiber_bundle::array_section_dof_map::put_dof_tuple(), and fiber_bundle::section_dof_map::section_dof_map().
|
protected |
The host of the poset member for which this stores the dofs.
Definition at line 393 of file poset_dof_map.h.
Referenced by sheaf::namespace_poset_dof_map::allocate_dofs(), sheaf::primitives_poset_dof_map::init_row_dof_map(), sheaf::primitives_poset_dof_map::operator=(), operator=(), sheaf::primitives_poset_dof_map::primitives_poset_dof_map(), sheaf::primitives_poset_dof_map::put_host(), and fiber_bundle::section_dof_map::section_dof_map().
|
protected |
The poset member for which this stores the dofs.
Definition at line 398 of file poset_dof_map.h.
Referenced by sheaf::primitives_poset_dof_map::init_row_dof_map(), sheaf::primitives_poset_dof_map::operator=(), operator=(), sheaf::primitives_poset_dof_map::primitives_poset_dof_map(), and fiber_bundle::section_dof_map::section_dof_map().
|
protected |
True if this is a table dof map.
Definition at line 408 of file poset_dof_map.h.
Referenced by sheaf::namespace_poset_dof_map::allocate_dofs(), sheaf::primitives_poset_dof_map::init_row_dof_map(), sheaf::primitives_poset_dof_map::operator=(), operator=(), poset_dof_map(), sheaf::primitives_poset_dof_map::primitives_poset_dof_map(), and fiber_bundle::section_dof_map::section_dof_map().
|
protected |
The number of references to this map /.
Definition at line 424 of file poset_dof_map.h.
Referenced by sheaf::primitives_poset_dof_map::init_row_dof_map(), sheaf::primitives_poset_dof_map::operator=(), sheaf::primitives_poset_dof_map::primitives_poset_dof_map(), and fiber_bundle::section_dof_map::section_dof_map().
|
protected |
The schema on which this is instantiated.
Definition at line 403 of file poset_dof_map.h.
Referenced by sheaf::namespace_poset_dof_map::extend_to_top(), sheaf::primitives_poset_dof_map::init_row_dof_map(), sheaf::primitives_poset_dof_map::operator=(), operator=(), poset_dof_map(), sheaf::primitives_poset_dof_map::primitives_poset_dof_map(), sheaf::primitives_poset_dof_map::put_host(), fiber_bundle::section_dof_map::section_dof_map(), and sheaf::primitives_poset_dof_map::~primitives_poset_dof_map().