Lines Matching refs:interface
14 // mapInterface is the interface Map implements.
15 type mapInterface interface {
16 Load(interface{}) (interface{}, bool)
17 Store(key, value interface{})
18 LoadOrStore(key, value interface{}) (actual interface{}, loaded bool)
19 Delete(interface{})
20 Range(func(key, value interface{}) (shouldContinue bool))
26 dirty map[interface{}]interface{}
29 func (m *RWMutexMap) Load(key interface{}) (value interface{}, ok bool) {
36 func (m *RWMutexMap) Store(key, value interface{}) {
39 m.dirty = make(map[interface{}]interface{})
45 func (m *RWMutexMap) LoadOrStore(key, value interface{}) (actual interface{}, loaded bool) {
51 m.dirty = make(map[interface{}]interface{})
59 func (m *RWMutexMap) Delete(key interface{}) {
65 func (m *RWMutexMap) Range(f func(key, value interface{}) (shouldContinue bool)) {
67 keys := make([]interface{}, 0, len(m.dirty))
92 func (m *DeepCopyMap) Load(key interface{}) (value interface{}, ok bool) {
93 clean, _ := m.clean.Load().(map[interface{}]interface{})
98 func (m *DeepCopyMap) Store(key, value interface{}) {
106 func (m *DeepCopyMap) LoadOrStore(key, value interface{}) (actual interface{}, loaded bool) {
107 clean, _ := m.clean.Load().(map[interface{}]interface{})
115 clean, _ = m.clean.Load().(map[interface{}]interface{})
127 func (m *DeepCopyMap) Delete(key interface{}) {
135 func (m *DeepCopyMap) Range(f func(key, value interface{}) (shouldContinue bool)) {
136 clean, _ := m.clean.Load().(map[interface{}]interface{})
144 func (m *DeepCopyMap) dirty() map[interface{}]interface{} {
145 clean, _ := m.clean.Load().(map[interface{}]interface{})
146 dirty := make(map[interface{}]interface{}, len(clean)+1)