activemq-cpp-3.6.0
Main Page
Namespaces
Data Structures
Files
File List
Globals
Map.h
Go to the documentation of this file.
1
/*
2
* Licensed to the Apache Software Foundation (ASF) under one or more
3
* contributor license agreements. See the NOTICE file distributed with
4
* this work for additional information regarding copyright ownership.
5
* The ASF licenses this file to You under the Apache License, Version 2.0
6
* (the "License"); you may not use this file except in compliance with
7
* the License. You may obtain a copy of the License at
8
*
9
* http://www.apache.org/licenses/LICENSE-2.0
10
*
11
* Unless required by applicable law or agreed to in writing, software
12
* distributed under the License is distributed on an "AS IS" BASIS,
13
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
* See the License for the specific language governing permissions and
15
* limitations under the License.
16
*/
17
18
#ifndef _DECAF_UTIL_MAP_H_
19
#define _DECAF_UTIL_MAP_H_
20
21
#include <functional>
22
#include <vector>
23
#include <
decaf/lang/exceptions/UnsupportedOperationException.h
>
24
#include <
decaf/util/NoSuchElementException.h
>
25
#include <
decaf/util/concurrent/Synchronizable.h
>
26
#include <
decaf/util/Set.h
>
27
#include <
decaf/util/Collection.h
>
28
#include <
decaf/util/MapEntry.h
>
29
30
namespace
decaf{
31
namespace
util{
32
87
template
<
typename
K,
typename
V>
88
class
Map
:
public
concurrent::Synchronizable
{
89
public
:
90
94
Map
() : concurrent::Synchronizable() {}
95
96
virtual
~Map
() {}
97
109
virtual
bool
equals
(
const
Map
& source)
const
= 0;
110
119
virtual
void
copy
(
const
Map
& source) = 0;
120
127
virtual
void
clear
() = 0;
128
139
virtual
bool
containsKey
(
const
K& key)
const
= 0;
140
152
virtual
bool
containsValue
(
const
V& value)
const
= 0;
153
157
virtual
bool
isEmpty
()
const
= 0;
158
162
virtual
int
size
()
const
= 0;
163
176
virtual
V&
get
(
const
K& key) = 0;
177
190
virtual
const
V&
get
(
const
K& key)
const
= 0;
191
210
virtual
bool
put
(
const
K& key,
const
V& value) = 0;
211
237
virtual
bool
put
(
const
K& key,
const
V& value, V& oldValue) = 0;
238
252
virtual
void
putAll
(
const
Map<K, V>
& other) = 0;
253
267
virtual
V
remove
(
const
K& key) = 0;
268
281
virtual
Set< MapEntry<K,V>
>&
entrySet
() = 0;
282
virtual
const
Set< MapEntry<K,V>
>&
entrySet
()
const
= 0;
283
295
virtual
Set<K>
&
keySet
() = 0;
296
virtual
const
Set<K>
&
keySet
()
const
= 0;
297
310
virtual
Collection<V>
&
values
() = 0;
311
virtual
const
Collection<V>
&
values
()
const
= 0;
312
313
};
314
315
}}
316
317
#endif
/*_DECAF_UTIL_MAP_H_*/
src
main
decaf
util
Map.h
Generated on Mon Mar 4 2013 10:25:46 for activemq-cpp-3.6.0 by
1.8.1.2