HomeSort by relevance Sort by last modified time
    Searched refs:multiset (Results 1 - 25 of 158) sorted by null

1 2 3 4 5 6 7

  /external/libcxx/test/std/containers/associative/multiset/
insert_emplace_allocator_requirements.pass.cpp 12 // class multiset
25 testMultisetInsert<TCT::multiset<> >();
26 testMultisetEmplace<TCT::multiset<> >();
empty.fail.cpp 13 // class multiset
26 std::multiset<int> c;
allocator_mismatch.fail.cpp 17 std::multiset<int, std::less<int>, std::allocator<long> > ms;
scary.pass.cpp 12 // class set class multiset
14 // Extension: SCARY/N2913 iterator compatibility between set and multiset
21 typedef std::multiset<int> M2;
  /external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/
HashMultisetTest.java 39 @Override protected Multiset<String> create(String[] elements) {
46 Multiset<String> multiset = HashMultiset.create();
47 multiset.add("foo", 2);
48 multiset.add("bar");
49 assertEquals(3, multiset.size());
50 assertEquals(2, multiset.count("foo"));
54 Multiset<String> multiset = HashMultiset.create(50);
55 multiset.add("foo", 2)
    [all...]
LinkedHashMultisetTest.java 40 @Override protected Multiset<String> create(String[] elements) {
61 Multiset<String> multiset = LinkedHashMultiset.create();
62 multiset.add("foo", 2);
63 multiset.add("bar");
64 assertEquals(3, multiset.size());
65 assertEquals(2, multiset.count("foo"));
66 assertEquals("[foo x 2, bar]", multiset.toString());
70 Multiset<String> multiset = LinkedHashMultiset.create(50)
    [all...]
ImmutableMultisetTest.java 42 Multiset<String> multiset = ImmutableMultiset.of(); local
43 assertTrue(multiset.isEmpty());
47 Multiset<String> multiset = ImmutableMultiset.of("a"); local
48 assertEquals(HashMultiset.create(asList("a")), multiset);
52 Multiset<String> multiset = ImmutableMultiset.of("a", "b"); local
53 assertEquals(HashMultiset.create(asList("a", "b")), multiset);
57 Multiset<String> multiset = ImmutableMultiset.of("a", "b", "c") local
62 Multiset<String> multiset = ImmutableMultiset.of("a", "b", "c", "d"); local
67 Multiset<String> multiset = ImmutableMultiset.of("a", "b", "c", "d", "e"); local
73 Multiset<String> multiset = ImmutableMultiset.of( local
80 Multiset<String> multiset = ImmutableMultiset.of( local
89 Multiset<String> multiset = ImmutableMultiset.copyOf(array); local
95 Multiset<String> multiset = ImmutableMultiset.copyOf(array); local
101 Multiset<String[]> multiset = ImmutableMultiset.<String[]>of(array); local
118 Multiset<String> multiset = ImmutableMultiset.copyOf(c); local
124 Multiset<String> multiset = ImmutableMultiset.copyOf(c); local
130 Multiset<String> multiset = ImmutableMultiset.copyOf(c); local
144 Multiset<String> multiset = ImmutableMultiset.copyOf(c); local
150 Multiset<String> multiset = ImmutableMultiset.copyOf(c); local
156 Multiset<String> multiset = ImmutableMultiset.copyOf(c); local
170 Multiset<String> multiset = ImmutableMultiset.copyOf(iterator); local
176 Multiset<String> multiset = ImmutableMultiset.copyOf(iterator); local
182 Multiset<String> multiset = ImmutableMultiset.copyOf(iterator); local
205 Multiset<String> multiset = ImmutableMultiset.copyOf(iterable); local
226 ImmutableMultiset<String> multiset = new ImmutableMultiset.Builder<String>() local
238 ImmutableMultiset<String> multiset = new ImmutableMultiset.Builder<String>() local
248 ImmutableMultiset<String> multiset = new ImmutableMultiset.Builder<String>() local
258 ImmutableMultiset<String> multiset = new ImmutableMultiset.Builder<String>() local
265 ImmutableMultiset<String> multiset = new ImmutableMultiset.Builder<String>() local
275 ImmutableMultiset<String> multiset = new ImmutableMultiset.Builder<String>() local
361 Multiset<String> multiset = ImmutableMultiset.of("a", "b", "a"); local
366 ImmutableMultiset<String> multiset local
    [all...]
  /external/guava/guava/src/com/google/common/collect/
SortedMultisets.java 24 import com.google.common.collect.Multiset.Entry;
50 private final SortedMultiset<E> multiset; field in class:SortedMultisets.ElementSet
52 ElementSet(SortedMultiset<E> multiset) {
53 this.multiset = multiset;
56 @Override final SortedMultiset<E> multiset() { method in class:SortedMultisets.ElementSet
57 return multiset;
61 return multiset().comparator();
65 return multiset().subMultiset(fromElement, CLOSED, toElement, OPEN).elementSet();
69 return multiset().headMultiset(toElement, OPEN).elementSet()
    [all...]
  /external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
SortedMultisets.java 23 import com.google.common.collect.Multiset.Entry;
47 private final SortedMultiset<E> multiset; field in class:SortedMultisets.ElementSet
49 ElementSet(SortedMultiset<E> multiset) {
50 this.multiset = multiset;
53 @Override final SortedMultiset<E> multiset() { method in class:SortedMultisets.ElementSet
54 return multiset;
58 return multiset().comparator();
62 return multiset().subMultiset(fromElement, CLOSED, toElement, OPEN).elementSet();
66 return multiset().headMultiset(toElement, OPEN).elementSet()
    [all...]
HashMultiset.java 24 * Multiset implementation backed by a {@link HashMap}.
56 * a {@link Multiset}.
58 * @param elements the elements that the multiset should contain
61 HashMultiset<E> multiset = local
63 Iterables.addAll(multiset, elements);
64 return multiset;
  /external/guava/guava-tests/test/com/google/common/collect/
HashMultisetTest.java 64 @Override protected Multiset<String> create(String[] elements) {
71 Multiset<String> multiset = HashMultiset.create();
72 multiset.add("foo", 2);
73 multiset.add("bar");
74 assertEquals(3, multiset.size());
75 assertEquals(2, multiset.count("foo"));
79 Multiset<String> multiset = HashMultiset.create(50);
80 multiset.add("foo", 2)
    [all...]
ConcurrentHashMultisetTest.java 80 @Override protected Multiset<String> create(String[] elements) {
88 @Override protected Multiset<String> create(String[] elements) {
89 Multiset<String> multiset = new ConcurrentHashMultiset<String>(
91 Collections.addAll(multiset, elements);
92 return multiset;
105 ConcurrentHashMultiset<String> multiset;
113 multiset = new ConcurrentHashMultiset<String>(backingMap);
123 assertEquals(COUNT, multiset.count(KEY));
131 assertEquals(0, multiset.count(KEY))
    [all...]
LinkedHashMultisetTest.java 64 @Override protected Multiset<String> create(String[] elements) {
85 Multiset<String> multiset = LinkedHashMultiset.create();
86 multiset.add("foo", 2);
87 multiset.add("bar");
88 assertEquals(3, multiset.size());
89 assertEquals(2, multiset.count("foo"));
90 assertEquals("[foo x 2, bar]", multiset.toString());
94 Multiset<String> multiset = LinkedHashMultiset.create(50)
    [all...]
ImmutableMultisetTest.java 65 @Override protected Multiset<String> create(String[] elements) {
134 Multiset<String> multiset = ImmutableMultiset.of(); local
135 assertTrue(multiset.isEmpty());
139 Multiset<String> multiset = ImmutableMultiset.of("a"); local
140 assertEquals(HashMultiset.create(asList("a")), multiset);
144 Multiset<String> multiset = ImmutableMultiset.of("a", "b"); local
145 assertEquals(HashMultiset.create(asList("a", "b")), multiset);
149 Multiset<String> multiset = ImmutableMultiset.of("a", "b", "c"); local
154 Multiset<String> multiset = ImmutableMultiset.of("a", "b", "c", "d"); local
159 Multiset<String> multiset = ImmutableMultiset.of("a", "b", "c", "d", "e"); local
165 Multiset<String> multiset = ImmutableMultiset.of( local
172 Multiset<String> multiset = ImmutableMultiset.of( local
181 Multiset<String> multiset = ImmutableMultiset.copyOf(array); local
187 Multiset<String> multiset = ImmutableMultiset.copyOf(array); local
193 Multiset<String[]> multiset = ImmutableMultiset.<String[]>of(array); local
210 Multiset<String> multiset = ImmutableMultiset.copyOf(c); local
216 Multiset<String> multiset = ImmutableMultiset.copyOf(c); local
222 Multiset<String> multiset = ImmutableMultiset.copyOf(c); local
236 Multiset<String> multiset = ImmutableMultiset.copyOf(c); local
242 Multiset<String> multiset = ImmutableMultiset.copyOf(c); local
248 Multiset<String> multiset = ImmutableMultiset.copyOf(c); local
262 Multiset<String> multiset = ImmutableMultiset.copyOf(iterator); local
268 Multiset<String> multiset = ImmutableMultiset.copyOf(iterator); local
274 Multiset<String> multiset = ImmutableMultiset.copyOf(iterator); local
297 Multiset<String> multiset = ImmutableMultiset.copyOf(iterable); local
318 ImmutableMultiset<String> multiset = new ImmutableMultiset.Builder<String>() local
330 ImmutableMultiset<String> multiset = new ImmutableMultiset.Builder<String>() local
340 ImmutableMultiset<String> multiset = new ImmutableMultiset.Builder<String>() local
350 ImmutableMultiset<String> multiset = new ImmutableMultiset.Builder<String>() local
357 ImmutableMultiset<String> multiset = new ImmutableMultiset.Builder<String>() local
367 ImmutableMultiset<String> multiset = new ImmutableMultiset.Builder<String>() local
486 Multiset<String> multiset = ImmutableMultiset.of("a", "b", "a"); local
491 ImmutableMultiset<String> multiset local
501 ImmutableMultiset<String> multiset local
    [all...]
ImmutableSortedMultisetTest.java 22 import com.google.common.collect.Multiset.Entry;
61 protected Multiset<String> create(String[] elements) {
121 Multiset<String> multiset = ImmutableSortedMultiset.of(); local
122 assertTrue(multiset.isEmpty());
126 Multiset<String> multiset = ImmutableSortedMultiset.of("a"); local
127 assertEquals(HashMultiset.create(asList("a")), multiset);
131 Multiset<String> multiset = ImmutableSortedMultiset.of("a", "b") local
136 Multiset<String> multiset = ImmutableSortedMultiset.of("a", "b", "c"); local
141 Multiset<String> multiset = ImmutableSortedMultiset.of("a", "b", "c", "d"); local
146 Multiset<String> multiset = ImmutableSortedMultiset.of("a", "b", "c", "d", "e"); local
151 Multiset<String> multiset = ImmutableSortedMultiset.of("a", "b", "c", "d", "e", "f"); local
156 Multiset<String> multiset = ImmutableSortedMultiset.of("a", "b", "c", "d", "e", "f", "g"); local
162 Multiset<String> multiset = ImmutableSortedMultiset.copyOf(array); local
168 Multiset<String> multiset = ImmutableSortedMultiset.copyOf(array); local
182 Multiset<String[]> multiset = ImmutableSortedMultiset.orderedBy(comparator).add(array).build(); local
199 Multiset<String> multiset = ImmutableSortedMultiset.copyOf(c); local
205 Multiset<String> multiset = ImmutableSortedMultiset.copyOf(c); local
211 Multiset<String> multiset = ImmutableSortedMultiset.copyOf(c); local
225 Multiset<String> multiset = ImmutableSortedMultiset.copyOf(c); local
231 Multiset<String> multiset = ImmutableSortedMultiset.copyOf(c); local
237 Multiset<String> multiset = ImmutableSortedMultiset.copyOf(c); local
251 Multiset<String> multiset = ImmutableSortedMultiset.copyOf(iterator); local
257 Multiset<String> multiset = ImmutableSortedMultiset.copyOf(iterator); local
263 Multiset<String> multiset = ImmutableSortedMultiset.copyOf(iterator); local
287 Multiset<String> multiset = ImmutableSortedMultiset.copyOf(iterable); local
308 ImmutableSortedMultiset<String> multiset = local
316 ImmutableSortedMultiset<String> multiset = local
324 ImmutableSortedMultiset<String> multiset = local
331 ImmutableSortedMultiset<String> multiset = local
337 ImmutableSortedMultiset<String> multiset = local
344 ImmutableSortedMultiset<String> multiset = local
453 Multiset<String> multiset = ImmutableSortedMultiset.of("a", "b", "a"); local
458 ImmutableSortedMultiset<String> multiset = ImmutableSortedMultiset.of("a", "a", "b", "b", "b"); local
490 ImmutableSortedMultiset<String> multiset = local
523 ImmutableSortedMultiset<String> multiset = local
    [all...]
ConcurrentHashMultisetBasherTest.java 40 * existing multiset values.
65 final ConcurrentHashMultiset<String> multiset = new ConcurrentHashMultiset<String>(map); local
74 futures.add(pool.submit(new MutateTask(multiset, keys)));
88 return multiset.count(key);
103 private final ConcurrentHashMultiset<String> multiset; field in class:ConcurrentHashMultisetBasherTest.MutateTask
107 private MutateTask(ConcurrentHashMultiset<String> multiset, ImmutableList<String> keys) {
108 this.multiset = multiset;
124 multiset.add(key, delta);
130 int oldValue = multiset.setCount(key, newValue)
    [all...]
  /external/libcxx/test/std/containers/associative/multiset/multiset.cons/
default.pass.cpp 12 // class multiset
14 // multiset();
24 std::multiset<int> m;
30 std::multiset<int, std::less<int>, min_allocator<int>> m;
37 std::multiset<int, std::less<int>, A> m;
43 std::multiset<int, std::less<int>, A> m(a);
49 std::multiset<int> m = {};
compare_copy_constructible.fail.cpp 12 // Check that std::multiset fails to instantiate if the comparison predicate is
28 std::multiset<int, Comp<int> > m;
default_noexcept.pass.cpp 12 // multiset()
41 typedef std::multiset<MoveOnly> C;
45 typedef std::multiset<MoveOnly, std::less<MoveOnly>, test_allocator<MoveOnly>> C;
50 typedef std::multiset<MoveOnly, std::less<MoveOnly>, other_allocator<MoveOnly>> C;
54 typedef std::multiset<MoveOnly, some_comp<MoveOnly>> C;
dtor_noexcept.pass.cpp 12 // ~multiset() // implied noexcept;
34 typedef std::multiset<MoveOnly> C;
38 typedef std::multiset<MoveOnly, std::less<MoveOnly>, test_allocator<MoveOnly>> C;
42 typedef std::multiset<MoveOnly, std::less<MoveOnly>, other_allocator<MoveOnly>> C;
47 typedef std::multiset<MoveOnly, some_comp<MoveOnly>> C;
move_assign_noexcept.pass.cpp 12 // multiset& operator=(multiset&& c)
40 typedef std::multiset<MoveOnly> C;
44 typedef std::multiset<MoveOnly, std::less<MoveOnly>, test_allocator<MoveOnly>> C;
49 typedef std::multiset<MoveOnly, std::less<MoveOnly>, other_allocator<MoveOnly>> C;
54 typedef std::multiset<MoveOnly, some_comp<MoveOnly>> C;
move_noexcept.pass.cpp 12 // multiset(multiset&&)
39 typedef std::multiset<MoveOnly> C;
43 typedef std::multiset<MoveOnly, std::less<MoveOnly>, test_allocator<MoveOnly>> C;
47 typedef std::multiset<MoveOnly, std::less<MoveOnly>, other_allocator<MoveOnly>> C;
52 typedef std::multiset<MoveOnly, some_comp<MoveOnly>> C;
  /external/libcxx/test/std/containers/associative/multiset/multiset.special/
swap_noexcept.pass.cpp 14 // void swap(multiset& c)
98 typedef std::multiset<MoveOnly> C;
103 typedef std::multiset<MoveOnly, std::less<MoveOnly>, test_allocator<MoveOnly>> C;
107 typedef std::multiset<MoveOnly, std::less<MoveOnly>, other_allocator<MoveOnly>> C;
112 typedef std::multiset<MoveOnly, some_comp<MoveOnly>> C;
118 typedef std::multiset<MoveOnly, some_comp <MoveOnly>, some_alloc <MoveOnly>> C;
122 typedef std::multiset<MoveOnly, some_comp <MoveOnly>, some_alloc2<MoveOnly>> C;
126 typedef std::multiset<MoveOnly, some_comp2<MoveOnly>, some_alloc <MoveOnly>> C;
130 typedef std::multiset<MoveOnly, some_comp2<MoveOnly>, some_alloc2<MoveOnly>> C;
135 typedef std::multiset<MoveOnly, some_comp2<MoveOnly>, some_alloc3<MoveOnly>> C
    [all...]
  /external/libcxx/test/std/experimental/memory/memory.resource.aliases/
header_set_synop.pass.cpp 22 // using multiset =
23 // ::std::multiset<V, Compare, polymorphic_allocator<V>>
54 using StdSet = std::multiset<V, DC, pmr::polymorphic_allocator<V>>;
55 using PmrSet = pmr::multiset<V>;
59 using StdSet = std::multiset<V, OC, pmr::polymorphic_allocator<V>>;
60 using PmrSet = pmr::multiset<V, OC>;
64 pmr::multiset<int> m;
  /external/guava/guava-gwt/src/com/google/common/collect/
Multiset_CustomFieldSerializerBase.java 24 * This class contains static utility methods for writing {@code Multiset} GWT
26 * {@link #serialize(SerializationStreamWriter, Multiset)} and
27 * {@link #populate(SerializationStreamReader, Multiset)}.
33 static Multiset<Object> populate(
34 SerializationStreamReader reader, Multiset<Object> multiset)
40 multiset.add(element, count);
42 return multiset;
45 static void serialize(SerializationStreamWriter writer, Multiset<?> instance)
49 for (Multiset.Entry<?> entry : instance.entrySet())
    [all...]

Completed in 376 milliseconds

1 2 3 4 5 6 7