21 #include "SheafSystem/total_poset_member.h" 22 #include "SheafSystem/assert_contract.h" 24 #include "SheafSystem/array_poset_dof_map.h" 25 #include "SheafSystem/namespace_poset.h" 26 #include "SheafSystem/pool.h" 27 #include "SheafSystem/poset.h" 28 #include "SheafSystem/poset_crg_state.h" 29 #include "SheafSystem/poset_dof_map.h" 30 #include "SheafSystem/poset_state.h" 31 #include "SheafSystem/poset_state_handle.h" 32 #include "SheafSystem/primitives_poset.h" 33 #include "SheafSystem/primitives_poset_schema.h" 34 #include "SheafSystem/subposet.h" 35 #include "SheafSystem/poset_member_iterator.h" 36 #include "SheafSystem/subposet_state.h" 37 #include "SheafSystem/zn_to_bool.h" 69 new_jem_state(const_cast<abstract_poset_member*>(&xother),
true,
true);
162 const tern& xnew_jem,
172 new_jrm_state(xhost, xexpansion, xexpansion_ct, xnew_jem, xauto_access);
198 ensure(
host() == xhost);
199 ensure(
index() == xhub_id);
219 ensure(
host() == xhost);
220 ensure(
index() ==~ xid);
232 require(!xname.empty());
242 ensure(
host() == xhost);
243 ensure(
name() == xname);
poset_state_handle * host() const
The poset which this is a handle to a component of.
virtual bool invariant() const
Class invariant.
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 total_poset_member * clone() const
Make a new handle, no state instance of current.
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.
total_poset_member()
Default constructor; creates a new, unattached total_poset_member handle.
virtual int dof_ct() const
The number of dofs in the dof tuple for jims of this poset;.
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.
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.
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 bool invariant() const
Class invariant.
Abstract base class with useful features for all objects.
virtual schema_poset_member & unrestricted_schema()
The unrestricted schema for this poset member (mutable version).
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. ...
static int row_dof_ct(const namespace_poset &xns, const poset_path &xpath, bool xauto_access=true)
The number of row dofs defined by the schema specified by xns and xpath. Synonym for dof_ct(xns...
void disable_invariant_check() const
Disable invariant check. Intended for preventing recursive calls to invariant and for suppressing inv...
bool invariant_check() const
True if invariant checking is enabled.
int_type pod_index_type
The plain old data index type.
virtual bool is_ancestor_of(const any *other) const
True if other conforms to this.
virtual ~total_poset_member()
Destructor; deletes a poset member and its attached state, if any.
virtual total_poset_member & operator=(const abstract_poset_member &xother)
Assignment operator; attaches this to the same state as xother.
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.
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 schema_poset_member & schema()
The schema for this member (mutable version).
void enable_invariant_check() const
Enable invariant checking.
A client handle for a poset member which has been prepared for use as a schema.
virtual void new_jrm_state(bool xauto_access=true)
Creates a new jrm (join-reducible member) state in host() and attaches this to it.
A client handle for an unrestricted member of a poset. A total_poset_member is guaranteed not to be r...
pod_type hub_pod() const
The pod value of this mapped to the unglued hub id space.