Indexing policy for a set-like container.
More...
#include <SetIndexingPolicy.h>
Indexing policy for a set-like container.
See ElementLinkTraits.h for a summary of the requirements for an indexing policy.
Indexes here are use IndexHolder, with the key of the container as the payload.
Definition at line 51 of file SetIndexingPolicy.h.
◆ ElementConstPointer
◆ ElementConstReference
◆ ElementType
The type we get when we dereference a link, and derived types.
Definition at line 60 of file SetIndexingPolicy.h.
◆ index_type
The type of an index, as provided to or returned from a link.
Definition at line 65 of file SetIndexingPolicy.h.
◆ iterator
◆ reference
◆ stored_index_type
The type of an index, as stored internally within a link.
Definition at line 68 of file SetIndexingPolicy.h.
◆ isValid()
Test to see if an index is valid.
- Parameters
-
◆ lookup()
Retrieve from a container the element corresponding to an index.
- Parameters
-
| index | The index to fetch. |
| data | The container. |
Will throw SG::ExcInvalidIndex if the index is invalid and SG::ExcIndexNotFound if the index is not in the container.
◆ reset()
Make an index invalid.
- Parameters
-
| index[out] | The index to reset. |
◆ reverseLookup()
Find the index of the (first) instance of ELEMENT in DATA.
- Parameters
-
| data | The container to search. |
| element | The element to find. |
| index[out] | The index in the container of element. |
Throws SG::ExcElementNotFound if the element is not in the container.
◆ storedToExternal()
Convert from stored to external index types.
- Parameters
-
The documentation for this class was generated from the following file: