SheafSystem
0.0.0.0
|
A (lower, upper) bounds pair for a poset. Specifies a portion of a poset for a bounded i/o operation. More...
#include <poset_bounds.h>
Public Member Functions | |
virtual poset_bounds * | 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... | |
poset_bounds () | |
Default constructor. More... | |
poset_bounds (const poset_bounds &xother) | |
Copy constructor. More... | |
poset_bounds (const poset_bounds_descriptor &xdesc) | |
Creates an instance to math descriptor xdesc. More... | |
virtual | ~poset_bounds () |
Destructor. More... | |
virtual poset_bounds_descriptor | descriptor () const |
A descriptor for this. More... | |
poset_bounds_descriptor::specification_mode | mode () const |
The specification mode. More... | |
pod_index_type | lb_id () const |
The index of the lower bound member, if the lower bound contains a single member. More... | |
void | put_lb_id (pod_index_type xlb_id) |
Sets the index of the lower bound member to xlb_ib, if the lower bound contains a single member. More... | |
void | put_lb_id (const scoped_index &xlb_id) |
Sets the index of the lower bound member to xlb_ib, if the lower bound contains a single member. More... | |
bool | lb_is_singleton () const |
True if the lower bound contains a single member. More... | |
bool | bounded_below () const |
True if the lower bound is not the bottom. More... | |
pod_index_type | ub_id () const |
The index of the upper bound member, if the upper bound contains a single member. More... | |
void | put_ub_id (pod_index_type xub_id) |
Sets the index of the upper bound member to xub_ib, if the upper bound contains a single member. More... | |
void | put_ub_id (const scoped_index &xub_id) |
Sets the index of the upper bound member to xub_ib, if the upper bound contains a single member. More... | |
bool | ub_is_singleton () const |
True if the upper bound contains a single member. More... | |
bool | ub_is_decomposition () const |
True if the join of the members of the upper bound is equal to the external schema. More... | |
bool | bounded_above () const |
True if the upper bound is not the top. More... | |
Public Member Functions inherited from sheaf::any | |
bool | is_same_type (const any *other) const |
True if other is the same type as this. More... | |
virtual | ~any () |
Destructor. More... | |
bool | invariant_check () const |
True if invariant checking is enabled. More... | |
void | enable_invariant_check () const |
Enable invariant checking. More... | |
void | disable_invariant_check () const |
Disable invariant check. Intended for preventing recursive calls to invariant and for suppressing invariant checking during multi-phase initialization. More... | |
int | disable_invariance_check_request_depth () const |
Number of times disable_invariant_check has been called without matching call to enable_invariant_check. More... | |
Protected Attributes | |
poset_bounds_descriptor | _descriptor |
A descriptor for this. More... | |
zn_to_bool * | _lb |
The lower bound. More... | |
bool | _lb_is_singleton |
True if the lower bound contains a single member. More... | |
bool | _bounded_below |
True if the lower bound is not the bottom. More... | |
zn_to_bool * | _ub |
The upper bound. More... | |
bool | _ub_is_singleton |
True if the upper bound contains a single member. More... | |
bool | _bounded_above |
True if the upper bound is not the top. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from sheaf::any | |
any () | |
default constructor More... | |
A (lower, upper) bounds pair for a poset. Specifies a portion of a poset for a bounded i/o operation.
Definition at line 50 of file poset_bounds.h.
sheaf::poset_bounds::poset_bounds | ( | ) |
Default constructor.
Definition at line 106 of file poset_bounds.cc.
References _bounded_above, _bounded_below, _lb, _lb_is_singleton, _ub, _ub_is_singleton, and invariant().
Referenced by clone(), is_ancestor_of(), and poset_bounds().
sheaf::poset_bounds::poset_bounds | ( | const poset_bounds & | xother | ) |
Copy constructor.
Definition at line 131 of file poset_bounds.cc.
References _bounded_above, _bounded_below, _descriptor, _lb, _lb_is_singleton, _ub, _ub_is_singleton, invariant(), lb_id(), sheaf::poset_bounds_descriptor::mode(), poset_bounds(), and ub_id().
sheaf::poset_bounds::poset_bounds | ( | const poset_bounds_descriptor & | xdesc | ) |
Creates an instance to math descriptor xdesc.
Definition at line 199 of file poset_bounds.cc.
References _bounded_above, _bounded_below, _descriptor, _lb, _lb_is_singleton, _ub, _ub_is_singleton, lb_id(), sheaf::poset_bounds_descriptor::mode(), ub_id(), and ~poset_bounds().
|
virtual |
Destructor.
Definition at line 270 of file poset_bounds.cc.
References descriptor().
Referenced by poset_bounds().
bool sheaf::poset_bounds::bounded_above | ( | ) | const |
True if the upper bound is not the top.
Definition at line 469 of file poset_bounds.cc.
References _bounded_above.
Referenced by ub_is_decomposition().
bool sheaf::poset_bounds::bounded_below | ( | ) | const |
True if the lower bound is not the bottom.
Definition at line 367 of file poset_bounds.cc.
References _bounded_below, and ub_id().
Referenced by sheaf::member_record::internalize(), and lb_is_singleton().
|
virtual |
Virtual constructor; makes a new instance of the same type as this.
Reimplemented from sheaf::any.
Reimplemented in sheaf::member_member_poset_bounds.
Definition at line 30 of file poset_bounds.cc.
References invariant(), and poset_bounds().
Referenced by sheaf::poset_scaffold::evaluate_toc_alias().
|
virtual |
A descriptor for this.
Definition at line 287 of file poset_bounds.cc.
References _descriptor, and mode().
Referenced by sheaf::poset_state_handle::bound_contains_member(), and ~poset_bounds().
|
virtual |
Class invariant.
Reimplemented from sheaf::any.
Reimplemented in sheaf::member_member_poset_bounds.
Definition at line 50 of file poset_bounds.cc.
References sheaf::any::disable_invariant_check(), sheaf::any::enable_invariant_check(), sheaf::any::invariant(), sheaf::any::invariant_check(), and is_ancestor_of().
Referenced by clone(), sheaf::member_member_poset_bounds::invariant(), and poset_bounds().
|
virtual |
Conformance test; true if other conforms to this.
Reimplemented from sheaf::any.
Reimplemented in sheaf::member_member_poset_bounds.
Definition at line 82 of file poset_bounds.cc.
References poset_bounds().
Referenced by invariant().
sheaf::pod_index_type sheaf::poset_bounds::lb_id | ( | ) | const |
The index of the lower bound member, if the lower bound contains a single member.
Definition at line 302 of file poset_bounds.cc.
References _descriptor, sheaf::poset_bounds_descriptor::lb_id(), and put_lb_id().
Referenced by sheaf::member_member_poset_bounds::attach_to_state(), sheaf::poset_state_handle::bound_contains_member(), sheaf::schema_poset_member::bound_iterator(), sheaf::poset_state_handle::bound_iterator(), sheaf::member_member_poset_bounds::descriptor(), sheaf::poset_scaffold::evaluate_toc_alias(), sheaf::member_member_poset_bounds::lb_contains_member(), mode(), poset_bounds(), put_lb_id(), sheaf::poset_general_record::transfer_poset_to_internal_buffer(), and sheaf::attributes_record_set::write_toc_bounds_attribute().
bool sheaf::poset_bounds::lb_is_singleton | ( | ) | const |
True if the lower bound contains a single member.
Definition at line 351 of file poset_bounds.cc.
References _lb_is_singleton, and bounded_below().
Referenced by sheaf::poset_state_handle::bound_contains_member(), sheaf::schema_poset_member::bound_iterator(), sheaf::poset_state_handle::bound_iterator(), sheaf::member_member_poset_bounds::invariant(), put_lb_id(), and sheaf::poset_general_record::transfer_poset_to_internal_buffer().
sheaf::poset_bounds_descriptor::specification_mode sheaf::poset_bounds::mode | ( | ) | const |
The specification mode.
Definition at line 294 of file poset_bounds.cc.
References _descriptor, lb_id(), and sheaf::poset_bounds_descriptor::mode().
Referenced by descriptor().
void sheaf::poset_bounds::put_lb_id | ( | pod_index_type | xlb_id | ) |
Sets the index of the lower bound member to xlb_ib, if the lower bound contains a single member.
Definition at line 309 of file poset_bounds.cc.
References _descriptor, lb_id(), lb_is_singleton(), and sheaf::poset_bounds_descriptor::put_lb_id().
Referenced by lb_id().
void sheaf::poset_bounds::put_lb_id | ( | const scoped_index & | xlb_id | ) |
Sets the index of the lower bound member to xlb_ib, if the lower bound contains a single member.
Definition at line 330 of file poset_bounds.cc.
References _descriptor, sheaf::scoped_index::hub_pod(), lb_id(), lb_is_singleton(), and sheaf::poset_bounds_descriptor::put_lb_id().
void sheaf::poset_bounds::put_ub_id | ( | pod_index_type | xub_id | ) |
Sets the index of the upper bound member to xub_ib, if the upper bound contains a single member.
Definition at line 389 of file poset_bounds.cc.
References _descriptor, sheaf::poset_bounds_descriptor::put_ub_id(), ub_id(), and ub_is_singleton().
Referenced by sheaf::poset_scaffold::initialize_schema_for_read(), sheaf::poset_scaffold::put_member_names_to_poset(), and ub_id().
void sheaf::poset_bounds::put_ub_id | ( | const scoped_index & | xub_id | ) |
Sets the index of the upper bound member to xub_ib, if the upper bound contains a single member.
Definition at line 410 of file poset_bounds.cc.
References _descriptor, sheaf::scoped_index::hub_pod(), sheaf::poset_bounds_descriptor::put_ub_id(), ub_id(), and ub_is_singleton().
sheaf::pod_index_type sheaf::poset_bounds::ub_id | ( | ) | const |
The index of the upper bound member, if the upper bound contains a single member.
Definition at line 382 of file poset_bounds.cc.
References _descriptor, put_ub_id(), and sheaf::poset_bounds_descriptor::ub_id().
Referenced by sheaf::member_member_poset_bounds::attach_to_state(), sheaf::storage_agent::begin_read_transaction(), sheaf::poset_state_handle::bound_contains_member(), sheaf::schema_poset_member::bound_iterator(), sheaf::poset_state_handle::bound_iterator(), bounded_below(), sheaf::member_member_poset_bounds::descriptor(), sheaf::dof_tuple_record_set::externalize(), sheaf::poset_scaffold::initialize_schema_for_read(), poset_bounds(), sheaf::poset_scaffold::put_member_names_to_poset(), put_ub_id(), and sheaf::member_member_poset_bounds::ub_contains_member().
bool sheaf::poset_bounds::ub_is_decomposition | ( | ) | const |
True if the join of the members of the upper bound is equal to the external schema.
Definition at line 447 of file poset_bounds.cc.
References _ub_is_singleton, and bounded_above().
Referenced by sheaf::poset_scaffold::initialize_schema_for_read(), sheaf::poset_scaffold::put_member_names_to_poset(), and ub_is_singleton().
bool sheaf::poset_bounds::ub_is_singleton | ( | ) | const |
True if the upper bound contains a single member.
Definition at line 431 of file poset_bounds.cc.
References _ub_is_singleton, and ub_is_decomposition().
Referenced by sheaf::poset_state_handle::bound_contains_member(), sheaf::schema_poset_member::bound_iterator(), sheaf::poset_state_handle::bound_iterator(), sheaf::dof_tuple_record_set::externalize(), sheaf::poset_scaffold::initialize_schema_for_read(), sheaf::member_member_poset_bounds::invariant(), and put_ub_id().
|
protected |
True if the upper bound is not the top.
Definition at line 217 of file poset_bounds.h.
Referenced by bounded_above(), sheaf::member_member_poset_bounds::member_member_poset_bounds(), and poset_bounds().
|
protected |
True if the lower bound is not the bottom.
Definition at line 202 of file poset_bounds.h.
Referenced by bounded_below(), sheaf::member_member_poset_bounds::member_member_poset_bounds(), and poset_bounds().
|
protected |
A descriptor for this.
Definition at line 187 of file poset_bounds.h.
Referenced by descriptor(), lb_id(), mode(), poset_bounds(), put_lb_id(), put_ub_id(), and ub_id().
|
protected |
|
protected |
True if the lower bound contains a single member.
Definition at line 197 of file poset_bounds.h.
Referenced by lb_is_singleton(), sheaf::member_member_poset_bounds::member_member_poset_bounds(), and poset_bounds().
|
protected |
|
protected |
True if the upper bound contains a single member.
Definition at line 212 of file poset_bounds.h.
Referenced by sheaf::member_member_poset_bounds::member_member_poset_bounds(), poset_bounds(), ub_is_decomposition(), and ub_is_singleton().