18 #ifndef _DECAF_UTIL_CONCURRENT_CONCURRENTMAP_H_ 19 #define _DECAF_UTIL_CONCURRENT_CONCURRENTMAP_H_ 30 namespace concurrent {
38 template<
typename K,
typename V>
67 virtual bool putIfAbsent(
const K& key,
const V& value ) = 0;
87 virtual bool remove(
const K& key,
const V& value ) = 0;
108 virtual bool replace(
const K& key,
const V& oldValue,
const V& newValue ) = 0;
130 virtual V
replace(
const K& key,
const V& value ) = 0;
virtual bool putIfAbsent(const K &key, const V &value)=0
If the specified key is not already associated with a value, associate it with the given value...
virtual bool replace(const K &key, const V &oldValue, const V &newValue)=0
Replace entry for key only if currently mapped to given value.
An object that maps keys to values.
Definition: Map.h:88
virtual ~ConcurrentMap()
Definition: ConcurrentMap.h:42
Interface for a Map type that provides additional atomic putIfAbsent, remove, and replace methods alo...
Definition: ConcurrentMap.h:39
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements...
Definition: AprPool.h:25