21 #include "SheafSystem/primitives_index_space_handle.h" 22 #include "SheafSystem/assert_contract.h" 23 #include "SheafSystem/index_space_family.h" 24 #include "SheafSystem/primitives_index_space_state.h" 61 ensure((*
this) == xother);
74 require(xid_spaces.
contains(xindex));
86 ensure(
index() == xindex);
95 const std::string& xname)
111 ensure(
name() == xname);
133 ensure((*
this) == xother);
171 ensure(&
state() == &xstate);
193 ensure(is_basic_query);
215 ensure(is_basic_query);
246 ensure((*
this) == xother);
267 ensure(*result == *
this);
301 ensure(is_basic_query);
virtual void attach_to(pod_type xindex)
Attach to the state with index xindex in the id space family id_spaces().
virtual pod_type index() const
Index of this space.
virtual ~primitives_index_space_handle()
Destructor.
An abstract handle to a space of alternate integer identifiers (aliases) for a subset of a hub set of...
virtual const index_space_family & id_spaces() const
The id space family for this (const version).
virtual bool is_attached() const =0
True if this handle is attached to a state.
primitives_index_space_state & state()
The primitives id space state (mutable version).
Abstract base class with useful features for all objects.
A implementation of abstract class explicit_index_space_state for the primitives row dof id space...
An implementation of class index_space_handle for an explicit_index_space_state.
std::string name() const
Name of this space.
pod_index_type pod_type
The "plain old data" index type for this.
virtual bool is_attached() const
True if this handle is attached to a state.
virtual bool invariant() const
Class invariant.
primitives_index_space_handle()
Default constructor.
virtual bool invariant() const
Class invariant.
primitives_index_space_handle & operator=(const primitives_index_space_handle &xother)
Assignment operator; attach this handle to the state of xother. synonym for attach_to(xother).
A collection of id space states. This is a virtual class with provides an interface for accessing the...
void disable_invariant_check() const
Disable invariant check. Intended for preventing recursive calls to invariant and for suppressing inv...
virtual bool contains(pod_type xlocal_id) const =0
True if this collection contains the id space with local id xlocal_id.
An implementation of class explicit_index_space_handle that has a primitives id space state...
bool invariant_check() const
True if invariant checking is enabled.
virtual bool conforms_to_state(const index_space_collection &xhost, pod_type xlocal_id) const
True if this conforms to the handle type required by the state with local scope id xlocal_id in the h...
virtual bool is_ancestor_of(const any *other) const
Conformance test; true if other conforms to this.
bool contains(pod_type xid) const
True, if this contains an id space with id xid.
virtual primitives_index_space_handle * clone() const
Virtual constructor, makes a new instance of the same type as this. If the handle is attached...
Factory and container for a family of id spaces.
bool is_same_type(const any *other) const
True if other is the same type as this.
void enable_invariant_check() const
Enable invariant checking.