21 #include "SheafSystem/poset_member.h" 22 #include "SheafSystem/assert_contract.h" 26 #include "SheafSystem/array_poset_dof_map.h" 27 #include "SheafSystem/namespace_poset.h" 28 #include "SheafSystem/pool.h" 29 #include "SheafSystem/poset.h" 30 #include "SheafSystem/poset_crg_state.h" 31 #include "SheafSystem/poset_dof_map.h" 32 #include "SheafSystem/poset_state.h" 33 #include "SheafSystem/poset_state_handle.h" 34 #include "SheafSystem/postorder_iterator.h" 35 #include "SheafSystem/primitives_poset.h" 36 #include "SheafSystem/primitives_poset_schema.h" 37 #include "SheafSystem/subposet.h" 38 #include "SheafSystem/subposet_member_iterator.h" 39 #include "SheafSystem/subposet_state.h" 40 #include "SheafSystem/zn_to_bool.h" 74 new_jem_state(const_cast<abstract_poset_member*>(&xother),
true,
true);
169 const tern& xnew_jem,
178 new_jrm_state(xhost, xexpansion, xexpansion_ct, xnew_jem, xauto_access);
204 ensure(
host() == xhost);
205 ensure(
index() == xhub_id);
224 ensure(
host() == xhost);
225 ensure(
index() ==~ xid);
237 require(!xname.empty());
247 ensure(
host() == xhost);
248 ensure(
name() == xname);
293 require(xschema != 0);
320 require(xother != 0);
384 result =
dynamic_cast<const poset_member*
>(xother) != 0;
poset_state_handle * host() const
The poset which this is a handle to a component of.
virtual bool is_restricted() const
True if handle is a restriction of the state, that is, if schema() is not the same as host()->schema(...
virtual void new_jim_state(poset_dof_map *xdof_map=0, bool xcopy_dof_map=false, bool xauto_access=true)
Creates a new jim (join-irreducible member) state in host() and attaches this to it. If xdof_map == 0 a new dof map is created. If xdof_map != 0 and xcopy_dof_map == false, xdof_map is used as the dof map. If xdof_map != 0 and xcopy_dof_map is true, a copy of xdof_map is used.
The default name space; a poset which contains other posets as members.
bool state_is_read_accessible() const
True if this is attached and if the state is accessible for read or access control is disabled...
A three state "bool". Does not provide the operations of ternary logic and is intended for use mostly...
A client handle for a general, abstract partially order set.
virtual schema_poset_member & schema()
The restricted schema for this poset member (mutable version).
A path defined by a poset name and a member name separated by a forward slash ('/'). For example: "cell_definitions/triangle".
bool is_same_state(const poset_state_handle *xhost, pod_index_type xhub_id) const
True is this is attached to state with hub id xhub_id in host xhost.
virtual poset_member * clone() const
Make a new handle, no state instance of current.
const scoped_index & index() const
The index of the component state this handle is attached to.
std::string name() const
A name for this.
The general, abstract map from dof ids to dof values.
virtual void restrict_to(const abstract_poset_member *xschema)
Restricts this handle to the down set of xschema.
Abstract base class with useful features for all objects.
virtual schema_poset_member & unrestricted_schema()
The unrestricted schema for this poset member (mutable version).
bool has_same_host(const poset_component *xother) const
True if xother is attached to the same host as this or if both are unattached.
A client handle for a restrictable member of a poset. A poset_member is a poset_member which can ...
An index within the external ("client") scope of a given id space.
virtual bool is_attached() const
True if this handle is attached to a non-void state.
virtual bool contains_member(pod_index_type xmbr_hub_id, bool xauto_access=true) const
True if some version of this poset contains poset member with hub id xmbr_hub_id. ...
bool le(pod_index_type xother_index) const
True if this is less than or equal to the member with index xother_index.
virtual poset_member & operator=(const abstract_poset_member &xother)
Assignment operator; attaches this to the same state as xother.
void disable_invariant_check() const
Disable invariant check. Intended for preventing recursive calls to invariant and for suppressing inv...
virtual ~poset_member()
Destructor; deletes a poset member and its attached state, if any.
bool invariant_check() const
True if invariant checking is enabled.
virtual void restrict_to_same(const abstract_poset_member *xother)
Restricts this handle to the same restriction as xother.
virtual void restrict_to_same(const abstract_poset_member *xother)
Restricts this handle to the same restriction as xother.
virtual bool invariant() const
Class invariant.
virtual bool invariant() const
Class invariant.
virtual void unrestrict()
Removes any restriction; schema to the schema of host.
int_type pod_index_type
The plain old data index type.
virtual void restrict_to(const abstract_poset_member *xschema)
Restricts this handle to the down set of xschema.
void attach_to_state(const namespace_poset *xns, const poset_path &xpath, bool xauto_access=true)
Attach to the state specified by path xpath in the namespace xns.
virtual bool is_ancestor_of(const any *other) const
True if other conforms to this.
An abstract client handle for a member of a poset.
virtual void new_jem_state(abstract_poset_member *xother, bool xgreatest, bool xauto_access)
Creates a new jrm state in host() which is the greatest jem (xgreatest true) or least jem (xgreatest ...
virtual void unrestrict()
Removes any restriction; schema to the schema of host.
virtual bool is_same_restriction(const abstract_poset_member *xother) const
True if this is the same restriction as xother, that is, if schema().is_same_state(xother.schema()).
void enable_invariant_check() const
Enable invariant checking.
poset_member()
Default constructor; creates a new, unattached poset_member handle.
virtual void new_jrm_state(bool xauto_access=true)
Creates a new jrm (join-reducible member) state in host() and attaches this to it.