| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 }; |
| OLD | NEW |