Home | History | Annotate | Download | only in src

Lines Matching refs:AllocationPolicy

16 template<class AllocationPolicy>
22 // to pass in a non-default AllocationPolicy but want to use the
30 AllocationPolicy allocator = AllocationPolicy());
50 AllocationPolicy allocator = AllocationPolicy());
92 void Initialize(uint32_t capacity, AllocationPolicy allocator);
93 void Resize(AllocationPolicy allocator);
98 template<class AllocationPolicy>
99 TemplateHashMapImpl<AllocationPolicy>::TemplateHashMapImpl(
100 MatchFun match, uint32_t initial_capacity, AllocationPolicy allocator) {
106 template<class AllocationPolicy>
107 TemplateHashMapImpl<AllocationPolicy>::~TemplateHashMapImpl() {
108 AllocationPolicy::Delete(map_);
112 template<class AllocationPolicy>
113 typename TemplateHashMapImpl<AllocationPolicy>::Entry*
114 TemplateHashMapImpl<AllocationPolicy>::Lookup(
115 void* key, uint32_t hash, bool insert, AllocationPolicy allocator) {
144 template<class AllocationPolicy>
145 void* TemplateHashMapImpl<AllocationPolicy>::Remove(void* key, uint32_t hash) {
206 template<class AllocationPolicy>
207 void TemplateHashMapImpl<AllocationPolicy>::Clear() {
217 template<class AllocationPolicy>
218 typename TemplateHashMapImpl<AllocationPolicy>::Entry*
219 TemplateHashMapImpl<AllocationPolicy>::Start() const {
224 template<class AllocationPolicy>
225 typename TemplateHashMapImpl<AllocationPolicy>::Entry*
226 TemplateHashMapImpl<AllocationPolicy>::Next(Entry* p) const {
238 template<class AllocationPolicy>
239 typename TemplateHashMapImpl<AllocationPolicy>::Entry*
240 TemplateHashMapImpl<AllocationPolicy>::Probe(void* key, uint32_t hash) {
260 template<class AllocationPolicy>
261 void TemplateHashMapImpl<AllocationPolicy>::Initialize(
262 uint32_t capacity, AllocationPolicy allocator) {
274 template<class AllocationPolicy>
275 void TemplateHashMapImpl<AllocationPolicy>::Resize(AllocationPolicy allocator) {
293 AllocationPolicy::Delete(map);
298 template<class Key, class Value, class AllocationPolicy>
299 class TemplateHashMap: private TemplateHashMapImpl<AllocationPolicy> {
319 Iterator(const TemplateHashMapImpl<AllocationPolicy>* map,
320 typename TemplateHashMapImpl<AllocationPolicy>::Entry* entry) :
323 const TemplateHashMapImpl<AllocationPolicy>* map_;
324 typename TemplateHashMapImpl<AllocationPolicy>::Entry* entry_;
330 typename TemplateHashMapImpl<AllocationPolicy>::MatchFun match,
331 AllocationPolicy allocator = AllocationPolicy())
332 : TemplateHashMapImpl<AllocationPolicy>(
334 TemplateHashMapImpl<AllocationPolicy>::kDefaultHashMapCapacity,
340 AllocationPolicy allocator = AllocationPolicy()) {