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

#include <refcount_hashmap.h>

公共成员函数

  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  重置 ()
const K *  GetKey () const
const V *  GetValue () const
  operator Bool () const
String   ToString (const FormatStatement *fs=nullptr) const

Private Attributes

StrongRef < Entry _ref

成员函数文档编制

◆  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