Dynalib Utils
Public Member Functions | List of all members
MapEntry< K, V > Class Template Reference

#include <DynaHashMap.h>

Inheritance diagram for MapEntry< K, V >:
Inheritance graph
[legend]
Collaboration diagram for MapEntry< K, V >:
Collaboration graph
[legend]

Public Member Functions

 MapEntry (K *key, V *value, bool ownsValue)
 
 MapEntry (const MapEntry< K, V > &entry)
 
virtual ~MapEntry ()
 
MapEntry< K, V > * copy () override
 
K * getKey () const
 
V * getValue () const
 
bool isOwnsValue ()
 
void setOwnsValue (bool ownsValue)
 
const V * setValue (V *newValue)
 
bool operator== (const MapEntry< K, V > &other) const override
 

Detailed Description

template<typename K, typename V>
class MapEntry< K, V >

Template for a HashMap Entry object

Template Parameters
EKEntry Key
EVEntry Value

Constructor & Destructor Documentation

◆ MapEntry() [1/2]

template<typename K, typename V>
MapEntry< K, V >::MapEntry ( K *  key,
V *  value,
bool  ownsValue 
)

Entry Constructor

Template Parameters
K
V
Parameters
key
value

◆ MapEntry() [2/2]

template<typename K, typename V>
MapEntry< K, V >::MapEntry ( const MapEntry< K, V > &  entry)

◆ ~MapEntry()

template<typename K , typename V >
MapEntry< K, V >::~MapEntry ( )
virtual

Member Function Documentation

◆ copy()

template<typename K , typename V >
MapEntry< K, V > * MapEntry< K, V >::copy ( )
overridevirtual

◆ getKey()

template<typename K, typename V>
K* MapEntry< K, V >::getKey ( ) const
inline

◆ getValue()

template<typename K, typename V>
V* MapEntry< K, V >::getValue ( ) const
inline

◆ isOwnsValue()

template<typename K, typename V>
bool MapEntry< K, V >::isOwnsValue ( )
inline

◆ operator==()

template<typename K, typename V>
bool MapEntry< K, V >::operator== ( const MapEntry< K, V > &  other) const
overridevirtual

◆ setOwnsValue()

template<typename K, typename V>
void MapEntry< K, V >::setOwnsValue ( bool  ownsValue)
inline

◆ setValue()

template<typename K , typename V>
const V * MapEntry< K, V >::setValue ( V *  newValue)

Entry SetValue setter

Template Parameters
K
V
Parameters
newValue
Returns

The documentation for this class was generated from the following files: