21 #include "SheafSystem/implicit_index_space_iterator.h" 23 #include "SheafSystem/assert_contract.h" 24 #include "SheafSystem/index_space_family.h" 100 (void) index_space_iterator::operator=(xother);
106 ensure((*
this) == xother);
135 (void) this->
operator=(lother);
140 ensure((*
this) == xother);
169 ensure(is_basic_query);
194 ensure(*result == *
this);
226 ensure(is_basic_query);
266 ensure(is_basic_query);
297 ensure(
index() == xindex);
const index_space_collection * collection(pod_type xid) const
Id space collection for id xid (const version).
An abstract iterator over the ids of an id space.
virtual implicit_index_space_iterator * clone() const =0
Virtual constructor, makes a new instance of the same type as this. If the iterator is attached...
virtual pod_type family_scope(pod_type xlocal_id) const =0
Id relative to the id space family equivalent to the local id xlocal_id.
virtual const index_space_collection & host() const
The host collection.
virtual pod_type local_scope(pod_type xspace_id) const =0
Id relative to this collection equivalent to the id space family id xspace_id.
virtual pod_type index() const
Index of this space.
virtual void detach()
Detach this iterator form its state, if any.
Abstract base class with useful features for all objects.
const index_space_family & id_spaces() const
The id space family for this (const version).
An implementation of class index_space_iterator for id spaces that are implicitly represtented...
virtual void attach_to(pod_type xindex)
Attach to the state with index xindex in the id space family id_spaces().
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.
virtual bool invariant() const
Class invariant.
virtual bool is_attached() const
True if this iterator is attached to a state.
implicit_index_space_iterator()
Default constructor.
bool invariant_check() const
True if invariant checking is enabled.
const index_space_collection * _host
The host collection.
virtual bool is_ancestor_of(const any *other) const
Conformance test; true if other conforms to this.
pod_type _local_id
The id of this space in the local host id space.
Factory and container for a family of id spaces.
virtual bool invariant() const
Class invariant.
implicit_index_space_iterator & operator=(const implicit_index_space_iterator &xother)
Assignment operator.
pod_index_type pod_type
The "plain old data" index type for this.
SHEAF_DLL_SPEC bool is_valid(pod_index_type xpod_index)
True if an only if xpod_index is valid.
SHEAF_DLL_SPEC pod_index_type invalid_pod_index()
The invalid pod index value.
bool is_same_type(const any *other) const
True if other is the same type as this.
virtual bool operator==(const index_space_iterator &xother) const
True if this is equivalent to xother.
void enable_invariant_check() const
Enable invariant checking.
virtual bool operator==(const index_space_iterator &xother) const
True if this is equivalent to xother.
bool conforms_to_state(const index_space_family &xid_spaces, pod_type xindex) const
True if this conforms to the handle type required by the state with index xindex in the id space fami...
virtual ~implicit_index_space_iterator()
Destructor.