|
Vulkan Schnee 0.0.1 (22840dc8)
High-performance rendering engine
|
Read-only view for one direction of the map. More...
#include <BidirectionalMap.h>
Public Member Functions | |
| Side ()=default | |
| Default constructor. | |
| const SideValue & | at (const SideKey &key) const |
| Gets the value associated with a key. | |
| bool | contains (const SideKey &key) const |
| Checks whether a key exists on this side. | |
| size_t | size () const |
| Gets the number of mappings on this side. | |
| bool | empty () const |
| Checks whether this side has no mappings. | |
| std::unordered_map< SideKey, SideValue >::const_iterator | begin () const |
| Gets an iterator to the first mapping on this side. | |
| std::unordered_map< SideKey, SideValue >::const_iterator | end () const |
| Gets an iterator past the last mapping on this side. | |
Private Member Functions | |
| void | clear_map_only () |
Private Attributes | |
| std::unordered_map< SideKey, SideValue > | map |
Read-only view for one direction of the map.
| SideKey | Key type for this side. |
| SideValue | Value type returned from this side. |
Definition at line 27 of file BidirectionalMap.h.
|
default |
Default constructor.
|
inline |
Gets the value associated with a key.
| key | Key to look up. |
| std::out_of_range | when key does not exist. |
Definition at line 45 of file BidirectionalMap.h.
|
inline |
Gets an iterator to the first mapping on this side.
Definition at line 82 of file BidirectionalMap.h.
|
inlineprivate |
Definition at line 93 of file BidirectionalMap.h.
|
inline |
Checks whether a key exists on this side.
| key | Key to look up. |
Definition at line 58 of file BidirectionalMap.h.
|
inline |
Checks whether this side has no mappings.
Definition at line 74 of file BidirectionalMap.h.
|
inline |
Gets an iterator past the last mapping on this side.
Definition at line 88 of file BidirectionalMap.h.
|
inline |
Gets the number of mappings on this side.
Definition at line 66 of file BidirectionalMap.h.
|
private |
Definition at line 91 of file BidirectionalMap.h.