SheafSystem
0.0.0.0
|
Insert record_map& p into ostream& os. More...
#include <record_map.h>
RECORD_MAP FACET | |
typedef unordered::unordered_map< internal_index_type, external_index_type >::const_iterator | const_iterator |
The type of const iterator for this. More... | |
record_map () | |
Default constructor. More... | |
record_map (const record_map &xother) | |
Copy constructor. More... | |
record_map & | operator= (const record_map &xother) |
Assignment operator. More... | |
virtual | ~record_map () |
Destructor. More... | |
virtual bool | invariant () const |
The class invariant. More... | |
external_index_type | external_id (internal_index_type xinternal_id) const |
The external id corresponding to xinternal_id. More... | |
internal_index_type | internal_id (external_index_type xexternal_id) const |
The internal id corresponding to xexternal_id. More... | |
void | put_ids (internal_index_type xinternal_id, external_index_type xexternal_id) |
Defines the mapping between xinternal_id and xexternal_id. More... | |
bool | internal_ids_sequential () const |
True if sequentially assigning internal ids. More... | |
bool | external_ids_sequential () const |
True if sequentially assigning external ids. More... | |
external_index_type | put_internal_id (internal_index_type xinternal_id) |
Defines a mapping between xinternal_id and a sequentially assigned external id. Returns the external id. More... | |
internal_index_type | put_external_id (external_index_type xexternal_id) |
Defines a mapping between xexternal_id and a sequentially assigned internal id. More... | |
bool | contains_internal_id (internal_index_type xint_id) const |
True if this map contains an entry for internal index xint_id. More... | |
bool | contains_external_id (external_index_type xext_id) const |
True if this map contains an entry for external index xext_id. More... | |
bool | operator== (const record_map &xother) const |
True if same external_id and internal_id. More... | |
size_type | ct () const |
The number of entries in the map. More... | |
bool | is_empty () const |
True if there are no entries in the map. More... | |
void | clear () |
Removes all entries. More... | |
void | remove_internal_id (internal_index_type xinternal_id) |
Removes xinternal_id and its external image from the map. More... | |
void | remove_external_id (external_index_type xexternal_id) |
Removes xexternal_id and its internal image from the map. More... | |
internal_index_type | scratch_internal_id () const |
The value of the internal id scratch register. The scratch register is a convenient place for a client to store an internal id that has the same scope and lifetime as this index map. More... | |
void | put_scratch_internal_id (internal_index_type xid) |
Sets the value of the internal id scratch register to xid. More... | |
external_index_type | scratch_external_id () const |
The value of the external id scratch register. The scratch register is a convenient place for a client to store an external id that has the same scope and lifetime as this index map. More... | |
void | put_scratch_external_id (external_index_type xid) |
Sets the value of the external id scratch register to xid. More... | |
internal_index_type | internal_id_ub () const |
The maximum internal id in this map. More... | |
external_index_type | external_id_ub () const |
The maximum external id in this map. More... | |
bool | ub_is_max () const |
True if internal_id_ub and external_id_ub are in fact maxima; i.e. if there exists an entry (int_id, ext_id) in the map such that int_id == internal_id_ub() and ext_id == external_id_ub();. More... | |
const_iterator | begin () const |
The beginning of the range of internal ids contained in this. More... | |
const_iterator | end () const |
The end of the range of internal ids contained in this. More... | |
void | print () const |
Prints the data members of this on cout. Intended for use debugging. More... | |
void | print (std::ostream &xos, const record_map< internal_index_type, external_index_type > &xp) const |
Prints the data members of this on stream xos. Intended for use debugging. More... | |
Insert record_map& p into ostream& os.
A bidirectional map between an internal index space and an external index space. The map is injective (one-to-one), but neither total (not every internal index has an external index associated with it) nor surjective (not every external index has an internal index associated with it.
Definition at line 46 of file record_map.h.
typedef unordered::unordered_map<internal_index_type, external_index_type>::const_iterator sheaf::record_map< internal_index_type, external_index_type >::const_iterator |
The type of const iterator for this.
Definition at line 224 of file record_map.h.
sheaf::record_map< internal_index_type, external_index_type >::record_map | ( | ) |
Default constructor.
Definition at line 55 of file record_map.impl.h.
Referenced by sheaf::record_map< pod_index_type, pod_index_type >::record_map().
sheaf::record_map< internal_index_type, external_index_type >::record_map | ( | const record_map< internal_index_type, external_index_type > & | xother | ) |
Copy constructor.
Definition at line 90 of file record_map.impl.h.
|
virtual |
Destructor.
Definition at line 147 of file record_map.impl.h.
Referenced by sheaf::record_map< pod_index_type, pod_index_type >::operator=().
record_map< internal_index_type, external_index_type >::const_iterator sheaf::record_map< internal_index_type, external_index_type >::begin | ( | ) | const |
The beginning of the range of internal ids contained in this.
Definition at line 716 of file record_map.impl.h.
Referenced by sheaf::record_map< pod_index_type, pod_index_type >::ub_is_max().
void sheaf::record_map< internal_index_type, external_index_type >::clear | ( | ) |
Removes all entries.
Definition at line 470 of file record_map.impl.h.
Referenced by sheaf::record_map< pod_index_type, pod_index_type >::is_empty().
bool sheaf::record_map< internal_index_type, external_index_type >::contains_external_id | ( | external_index_type | xext_id | ) | const |
True if this map contains an entry for external index xext_id.
Definition at line 389 of file record_map.impl.h.
Referenced by sheaf::record_map< pod_index_type, pod_index_type >::contains_internal_id().
bool sheaf::record_map< internal_index_type, external_index_type >::contains_internal_id | ( | internal_index_type | xint_id | ) | const |
True if this map contains an entry for internal index xint_id.
Definition at line 364 of file record_map.impl.h.
Referenced by sheaf::dof_tuple_record_set::get_internal_record(), and sheaf::record_map< pod_index_type, pod_index_type >::put_external_id().
size_type sheaf::record_map< internal_index_type, external_index_type >::ct | ( | ) | const |
The number of entries in the map.
Definition at line 454 of file record_map.impl.h.
Referenced by sheaf::record_map< pod_index_type, pod_index_type >::operator==().
record_map< internal_index_type, external_index_type >::const_iterator sheaf::record_map< internal_index_type, external_index_type >::end | ( | ) | const |
The end of the range of internal ids contained in this.
Definition at line 724 of file record_map.impl.h.
Referenced by sheaf::record_map< pod_index_type, pod_index_type >::begin().
external_index_type sheaf::record_map< internal_index_type, external_index_type >::external_id | ( | internal_index_type | xinternal_id | ) | const |
The external id corresponding to xinternal_id.
Definition at line 188 of file record_map.impl.h.
Referenced by sheaf::dof_tuple_record_set::externalize(), sheaf::dof_tuple_record_set::externalize_domain(), sheaf::dof_tuple_record_set::get_internal_record(), sheaf::dof_tuple_record_set::get_next_record(), and sheaf::record_map< pod_index_type, pod_index_type >::invariant().
external_index_type sheaf::record_map< internal_index_type, external_index_type >::external_id_ub | ( | ) | const |
The maximum external id in this map.
Definition at line 669 of file record_map.impl.h.
Referenced by sheaf::record_map< pod_index_type, pod_index_type >::internal_id_ub().
bool sheaf::record_map< internal_index_type, external_index_type >::external_ids_sequential | ( | ) | const |
True if sequentially assigning external ids.
Definition at line 291 of file record_map.impl.h.
Referenced by sheaf::record_map< pod_index_type, pod_index_type >::internal_ids_sequential().
internal_index_type sheaf::record_map< internal_index_type, external_index_type >::internal_id | ( | external_index_type | xexternal_id | ) | const |
The internal id corresponding to xexternal_id.
Definition at line 211 of file record_map.impl.h.
Referenced by sheaf::record_map< pod_index_type, pod_index_type >::external_id(), and sheaf::dof_tuple_record_set::get_internal_record().
internal_index_type sheaf::record_map< internal_index_type, external_index_type >::internal_id_ub | ( | ) | const |
The maximum internal id in this map.
Definition at line 648 of file record_map.impl.h.
Referenced by sheaf::record_map< pod_index_type, pod_index_type >::put_scratch_external_id().
bool sheaf::record_map< internal_index_type, external_index_type >::internal_ids_sequential | ( | ) | const |
True if sequentially assigning internal ids.
Definition at line 283 of file record_map.impl.h.
Referenced by sheaf::record_map< pod_index_type, pod_index_type >::put_ids().
|
virtual |
The class invariant.
Definition at line 161 of file record_map.impl.h.
Referenced by sheaf::record_map< pod_index_type, pod_index_type >::~record_map().
bool sheaf::record_map< internal_index_type, external_index_type >::is_empty | ( | ) | const |
True if there are no entries in the map.
Definition at line 462 of file record_map.impl.h.
Referenced by sheaf::record_map< pod_index_type, pod_index_type >::ct().
record_map< internal_index_type, external_index_type > & sheaf::record_map< internal_index_type, external_index_type >::operator= | ( | const record_map< internal_index_type, external_index_type > & | xother | ) |
Assignment operator.
Definition at line 111 of file record_map.impl.h.
Referenced by sheaf::record_map< pod_index_type, pod_index_type >::record_map().
bool sheaf::record_map< internal_index_type, external_index_type >::operator== | ( | const record_map< internal_index_type, external_index_type > & | xother | ) | const |
True if same external_id and internal_id.
Definition at line 414 of file record_map.impl.h.
Referenced by sheaf::record_map< pod_index_type, pod_index_type >::contains_external_id().
|
inline |
Prints the data members of this on cout. Intended for use debugging.
Definition at line 732 of file record_map.impl.h.
Referenced by sheaf::record_map< pod_index_type, pod_index_type >::end(), and sheaf::record_map< pod_index_type, pod_index_type >::print().
void sheaf::record_map< internal_index_type, external_index_type >::print | ( | std::ostream & | xos, |
const record_map< internal_index_type, external_index_type > & | xp | ||
) | const |
Prints the data members of this on stream xos. Intended for use debugging.
Definition at line 748 of file record_map.impl.h.
internal_index_type sheaf::record_map< internal_index_type, external_index_type >::put_external_id | ( | external_index_type | xexternal_id | ) |
Defines a mapping between xexternal_id and a sequentially assigned internal id.
Definition at line 331 of file record_map.impl.h.
Referenced by sheaf::record_map< pod_index_type, pod_index_type >::put_internal_id().
void sheaf::record_map< internal_index_type, external_index_type >::put_ids | ( | internal_index_type | xinternal_id, |
external_index_type | xexternal_id | ||
) |
Defines the mapping between xinternal_id and xexternal_id.
Definition at line 233 of file record_map.impl.h.
Referenced by sheaf::dof_tuple_record_set::get_internal_record(), and sheaf::record_map< pod_index_type, pod_index_type >::internal_id().
external_index_type sheaf::record_map< internal_index_type, external_index_type >::put_internal_id | ( | internal_index_type | xinternal_id | ) |
Defines a mapping between xinternal_id and a sequentially assigned external id. Returns the external id.
Definition at line 299 of file record_map.impl.h.
Referenced by sheaf::record_map< pod_index_type, pod_index_type >::external_ids_sequential().
void sheaf::record_map< internal_index_type, external_index_type >::put_scratch_external_id | ( | external_index_type | xid | ) |
Sets the value of the external id scratch register to xid.
Definition at line 628 of file record_map.impl.h.
Referenced by sheaf::record_map< pod_index_type, pod_index_type >::scratch_external_id().
void sheaf::record_map< internal_index_type, external_index_type >::put_scratch_internal_id | ( | internal_index_type | xid | ) |
Sets the value of the internal id scratch register to xid.
Definition at line 592 of file record_map.impl.h.
Referenced by sheaf::record_map< pod_index_type, pod_index_type >::scratch_internal_id().
void sheaf::record_map< internal_index_type, external_index_type >::remove_external_id | ( | external_index_type | xexternal_id | ) |
Removes xexternal_id and its internal image from the map.
Definition at line 546 of file record_map.impl.h.
Referenced by sheaf::record_map< pod_index_type, pod_index_type >::remove_internal_id().
void sheaf::record_map< internal_index_type, external_index_type >::remove_internal_id | ( | internal_index_type | xinternal_id | ) |
Removes xinternal_id and its external image from the map.
Definition at line 510 of file record_map.impl.h.
Referenced by sheaf::record_map< pod_index_type, pod_index_type >::clear(), and sheaf::dof_tuple_record_set::get_internal_record().
external_index_type sheaf::record_map< internal_index_type, external_index_type >::scratch_external_id | ( | ) | const |
The value of the external id scratch register. The scratch register is a convenient place for a client to store an external id that has the same scope and lifetime as this index map.
Definition at line 612 of file record_map.impl.h.
Referenced by sheaf::record_map< pod_index_type, pod_index_type >::put_scratch_internal_id().
internal_index_type sheaf::record_map< internal_index_type, external_index_type >::scratch_internal_id | ( | ) | const |
The value of the internal id scratch register. The scratch register is a convenient place for a client to store an internal id that has the same scope and lifetime as this index map.
Definition at line 575 of file record_map.impl.h.
Referenced by sheaf::record_map< pod_index_type, pod_index_type >::remove_external_id().
bool sheaf::record_map< internal_index_type, external_index_type >::ub_is_max | ( | ) | const |
True if internal_id_ub and external_id_ub are in fact maxima; i.e. if there exists an entry (int_id, ext_id) in the map such that int_id == internal_id_ub() and ext_id == external_id_ub();.
Definition at line 690 of file record_map.impl.h.
Referenced by sheaf::record_map< pod_index_type, pod_index_type >::external_id_ub().