Bitcoin ABC 0.26.3
P2P Digital Currency
|
Map whose keys are pointers, but are compared by their dereferenced values. More...
#include <indirectmap.h>
Public Types | |
typedef base::iterator | iterator |
typedef base::const_iterator | const_iterator |
typedef base::size_type | size_type |
typedef base::value_type | value_type |
Public Member Functions | |
std::pair< iterator, bool > | insert (const value_type &value) |
iterator | find (const K &key) |
const_iterator | find (const K &key) const |
iterator | lower_bound (const K &key) |
const_iterator | lower_bound (const K &key) const |
size_type | erase (const K &key) |
size_type | count (const K &key) const |
bool | empty () const |
size_type | size () const |
size_type | max_size () const |
void | clear () |
iterator | begin () |
iterator | end () |
const_iterator | begin () const |
const_iterator | end () const |
const_iterator | cbegin () const |
const_iterator | cend () const |
Private Types | |
typedef std::map< const K *, T, DereferencingComparator< const K * > > | base |
Private Attributes | |
base | m |
Map whose keys are pointers, but are compared by their dereferenced values.
Differs from a plain std::map<const K*, T, DereferencingComparator<K*> > in that methods that take a key for comparison take a K rather than taking a K* (taking a K* would be confusing, since it's the value rather than the address of the object for comparison that matters due to the dereferencing comparator).
Objects pointed to by keys must not be modified in any way that changes the result of DereferencingComparator.
Definition at line 26 of file indirectmap.h.
|
private |
Definition at line 28 of file indirectmap.h.
Definition at line 33 of file indirectmap.h.
Definition at line 32 of file indirectmap.h.
Definition at line 34 of file indirectmap.h.
Definition at line 35 of file indirectmap.h.
Definition at line 57 of file indirectmap.h.
|
inline |
Definition at line 59 of file indirectmap.h.
|
inline |
Definition at line 61 of file indirectmap.h.
|
inline |
Definition at line 62 of file indirectmap.h.
Definition at line 56 of file indirectmap.h.
Definition at line 50 of file indirectmap.h.
Definition at line 53 of file indirectmap.h.
Definition at line 58 of file indirectmap.h.
|
inline |
Definition at line 60 of file indirectmap.h.
Definition at line 49 of file indirectmap.h.
Definition at line 43 of file indirectmap.h.
|
inline |
Definition at line 44 of file indirectmap.h.
|
inline |
Definition at line 38 of file indirectmap.h.
Definition at line 45 of file indirectmap.h.
|
inline |
Definition at line 46 of file indirectmap.h.
Definition at line 55 of file indirectmap.h.
Definition at line 29 of file indirectmap.h.