RefCountHashMap< K, V, HASH, HANDLER >::EntryRef Class Reference

#include <refcount_hashmap.h>

Public Member Functions

 MAXON_OPERATOR_EQUALITY_HASHCODE (EntryRef, _ref)
 
ResultRef< V > Set (RefCountHashMap &map, const K &key, Bool &created=BoolLValue(), EntryRef *prev=nullptr)
 
ResultRef< V > Set (RefCountHashMap &map, K &&key, Bool &created=BoolLValue(), EntryRef *prev=nullptr)
 
void Reset ()
 
const K * GetKey () const
 
const V * GetValue () const
 
 operator Bool () const
 
String ToString (const FormatStatement *fs=nullptr) const
 

Private Attributes

StrongRef< Entry_ref
 

Member Function Documentation

◆ MAXON_OPERATOR_EQUALITY_HASHCODE()

MAXON_OPERATOR_EQUALITY_HASHCODE ( EntryRef  ,
_ref   
)

◆ Set() [1/2]

ResultRef<V> Set ( RefCountHashMap map,
const K &  key,
Bool created = BoolLValue(),
EntryRef prev = nullptr 
)

◆ Set() [2/2]

ResultRef<V> Set ( RefCountHashMap map,
K &&  key,
Bool created = BoolLValue(),
EntryRef prev = nullptr 
)

◆ Reset()

void Reset ( )

◆ GetKey()

const K* GetKey ( ) const

◆ GetValue()

const V* GetValue ( ) const

◆ operator Bool()

operator Bool ( ) const
explicit

◆ ToString()

String ToString ( const FormatStatement fs = nullptr) const

Member Data Documentation

◆ _ref

StrongRef<Entry> _ref
private