Fw/DataStructures/docs/MapEntryBase.md
MapEntryBase is an abstract class template
defined in Fw/DataStructures.
It provides the user-facing interface for a map entry.
MapEntryBase has the following template parameters.
| Kind | Name | Purpose |
|---|---|---|
typename | K | The type of a key in the map |
typename | V | The type of a value in the map |
Because this is an abstract base class, the copy constructor and copy assignment operator are deleted.
MapEntryBase provides a protected zero-argument constructor
and a protected virtual destructor.
It uses the default implementations.
virtual const K& getKey() const = 0
Return a const reference to the key stored in the entry.
virtual const V& getValue() const = 0
Return a const reference to the value stored in the entry.