Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: compiled/Map.h

Issue 29581602: Issue 5141 - [emscripten] Convert filter matcher to C++ Base URL: https://hg.adblockplus.org/adblockpluscore
Patch Set: Created Oct. 17, 2017, 12:31 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | compiled/bindings/main.cpp » ('j') | compiled/filter/RegExpFilter.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * This file is part of Adblock Plus <https://adblockplus.org/>, 2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-present eyeo GmbH 3 * Copyright (C) 2006-present eyeo GmbH
4 * 4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify 5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as 6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 * 8 *
9 * Adblock Plus is distributed in the hope that it will be useful, 9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 explicit HashContainerReference(entry_type* entry) 83 explicit HashContainerReference(entry_type* entry)
84 : mEntry(entry) 84 : mEntry(entry)
85 { 85 {
86 } 86 }
87 87
88 const entry_type* operator->() const 88 const entry_type* operator->() const
89 { 89 {
90 return mEntry; 90 return mEntry;
91 } 91 }
92 92
93 entry_type* operator->()
94 {
95 return mEntry;
96 }
97
93 operator bool() const 98 operator bool() const
94 { 99 {
95 return !mEntry->is_invalid(); 100 return !mEntry->is_invalid();
96 } 101 }
97 }; 102 };
98 103
99 template<typename Entry> 104 template<typename Entry>
100 class HashContainer 105 class HashContainer
101 { 106 {
102 public: 107 public:
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 const_reference find(const key_type& key) const 315 const_reference find(const key_type& key) const
311 { 316 {
312 return super::find(key); 317 return super::find(key);
313 } 318 }
314 319
315 reference find(const key_type& key) 320 reference find(const key_type& key)
316 { 321 {
317 return reference(this, key, super::find_bucket(key)); 322 return reference(this, key, super::find_bucket(key));
318 } 323 }
319 }; 324 };
OLDNEW
« no previous file with comments | « no previous file | compiled/bindings/main.cpp » ('j') | compiled/filter/RegExpFilter.h » ('J')

Powered by Google App Engine
This is Rietveld