A brief file description. More...
#include "ink_error.h"
#include "ink_hash_table.h"
#include "ink_memory.h"
Go to the source code of this file.
A brief file description.
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Definition in file ink_hash_table.cc.
static int _ink_hash_table_free_entry_value | ( | InkHashTable * | ht_ptr, | |
InkHashTableEntry * | e | |||
) | [static] |
Definition at line 108 of file ink_hash_table.cc.
References ats_free(), and ink_hash_table_entry_value().
Referenced by ink_hash_table_destroy_and_free_values().
static int _ink_hash_table_xfree_entry_value | ( | InkHashTable * | ht_ptr, | |
InkHashTableEntry * | e | |||
) | [static] |
Definition at line 122 of file ink_hash_table.cc.
References ats_free(), and ink_hash_table_entry_value().
Referenced by ink_hash_table_destroy_and_xfree_values().
static int DumpStringEntry | ( | InkHashTable * | ht_ptr, | |
InkHashTableEntry * | e | |||
) | [static] |
Definition at line 404 of file ink_hash_table.cc.
References ink_hash_table_entry_key(), and ink_hash_table_entry_value().
Referenced by ink_hash_table_dump_strings().
InkHashTable* ink_hash_table_create | ( | InkHashTableKeyType | key_type | ) |
Definition at line 55 of file ink_hash_table.cc.
References ats_malloc(), ink_fatal(), InkHashTableKeyType_String, and InkHashTableKeyType_Word.
Referenced by UrlRewrite::BuildTable(), ConfigUpdateCbTable::ConfigUpdateCbTable(), Log::init_fields(), charIndex::Insert(), RawHashTable::RawHashTable(), RecConfigFileInit(), RecConfigFileParse(), RecCoreInit(), SSLInitializeStatistics(), and UrlMatcher< Data, Result >::UrlMatcher().
int ink_hash_table_delete | ( | InkHashTable * | ht_ptr, | |
const char * | key | |||
) |
Definition at line 208 of file ink_hash_table.cc.
Referenced by RawHashTable::unbindKey().
InkHashTable* ink_hash_table_destroy | ( | InkHashTable * | ht_ptr | ) |
Definition at line 86 of file ink_hash_table.cc.
References ats_free().
Referenced by UrlRewrite::BuildTable(), ink_hash_table_destroy_and_free_values(), ink_hash_table_destroy_and_xfree_values(), RecConfigFileParse(), charIndex::~charIndex(), ConfigUpdateCbTable::~ConfigUpdateCbTable(), HostBranch::~HostBranch(), RawHashTable::~RawHashTable(), SSLContextStorage::~SSLContextStorage(), and UrlMatcher< Data, Result >::~UrlMatcher().
InkHashTable* ink_hash_table_destroy_and_free_values | ( | InkHashTable * | ht_ptr | ) |
Definition at line 135 of file ink_hash_table.cc.
References _ink_hash_table_free_entry_value(), ink_hash_table_destroy(), and ink_hash_table_map().
Referenced by RawHashTable::~RawHashTable().
InkHashTable* ink_hash_table_destroy_and_xfree_values | ( | InkHashTable * | ht_ptr | ) |
Definition at line 143 of file ink_hash_table.cc.
References _ink_hash_table_xfree_entry_value(), ink_hash_table_destroy(), and ink_hash_table_map().
void ink_hash_table_dump_strings | ( | InkHashTable * | ht_ptr | ) |
Definition at line 419 of file ink_hash_table.cc.
References DumpStringEntry(), and ink_hash_table_map().
InkHashTableKey ink_hash_table_entry_key | ( | InkHashTable * | ht_ptr, | |
InkHashTableEntry * | entry_ptr | |||
) |
Definition at line 362 of file ink_hash_table.cc.
Referenced by DumpStringEntry(), and RawHashTable::getKeyFromBinding().
InkHashTableValue ink_hash_table_entry_value | ( | InkHashTable * | ht_ptr, | |
InkHashTableEntry * | entry_ptr | |||
) |
Definition at line 382 of file ink_hash_table.cc.
Referenced by _ink_hash_table_free_entry_value(), _ink_hash_table_xfree_entry_value(), DumpStringEntry(), RawHashTable::getValueFromBinding(), ink_hash_table_lookup(), ink_hash_table_replace_string(), ConfigUpdateCbTable::invoke(), UrlRewrite::PrintStore(), charIndex::~charIndex(), and HostBranch::~HostBranch().
InkHashTableEntry* ink_hash_table_get_entry | ( | InkHashTable * | ht_ptr, | |
const char * | key, | |||
int * | new_value | |||
) |
Definition at line 264 of file ink_hash_table.cc.
References ink_fatal().
Referenced by RawHashTable::getOrCreateBinding(), ink_hash_table_insert(), and ink_hash_table_replace_string().
void ink_hash_table_insert | ( | InkHashTable * | ht_ptr, | |
const char * | key, | |||
InkHashTableValue | value | |||
) |
Definition at line 316 of file ink_hash_table.cc.
References ink_hash_table_get_entry(), and ink_hash_table_set_entry().
Referenced by Log::init_fields(), SSLContextStorage::insert(), ConfigUpdateCbTable::insert(), charIndex::Insert(), UrlMatcher< Data, Result >::NewEntry(), RecConfigFileParse(), RecForceInsert(), RecSetRecord(), RecSyncConfigToTB(), register_record(), RawHashTable::setValue(), SSLInitializeStatistics(), and UrlRewrite::TableInsert().
int ink_hash_table_isbound | ( | InkHashTable * | ht_ptr, | |
const char * | key | |||
) |
Definition at line 161 of file ink_hash_table.cc.
References ink_hash_table_lookup_entry().
Referenced by UrlRewrite::BuildTable(), RawHashTable::isBound(), RecSyncConfigToTB(), and SSLInitializeStatistics().
int ink_hash_table_lookup | ( | InkHashTable * | ht_ptr, | |
const char * | key, | |||
InkHashTableValue * | value_ptr | |||
) |
Definition at line 182 of file ink_hash_table.cc.
References ink_hash_table_entry_value(), and ink_hash_table_lookup_entry().
Referenced by LogFieldList::find_by_symbol(), RawHashTable::getValue(), SSLContextStorage::insert(), SSLContextStorage::lookup(), charIndex::Lookup(), UrlMatcher< Data, Result >::Match(), UrlMatcher< Data, Result >::NewEntry(), RecForceInsert(), RecGetRecord_Xmalloc(), RecGetRecordAccessType(), RecGetRecordCheckExpr(), RecGetRecordCheckType(), RecGetRecordDataType(), RecGetRecordDefaultDataString_Xmalloc(), RecGetRecordOrderAndId(), RecGetRecordPersistenceType(), RecGetRecordString(), RecGetRecordType(), RecGetRecordUpdateType(), RecRegisterConfigUpdateCb(), RecRegisterRawStatSyncCb(), RecResetStatRecord(), RecSetRecord(), RecSetRecordAccessType(), RecSetSyncRequired(), RecSyncConfigToTB(), register_record(), ssl_callback_info(), and UrlRewrite::TableInsert().
InkHashTableEntry* ink_hash_table_lookup_entry | ( | InkHashTable * | ht_ptr, | |
const char * | key | |||
) |
Definition at line 237 of file ink_hash_table.cc.
Referenced by RawHashTable::getCurrentBinding(), ink_hash_table_isbound(), ink_hash_table_lookup(), and ConfigUpdateCbTable::invoke().
void ink_hash_table_map | ( | InkHashTable * | ht_ptr, | |
InkHashTableEntryFunction | map | |||
) |
Definition at line 337 of file ink_hash_table.cc.
References ink_hash_table_iterator_first(), and ink_hash_table_iterator_next().
Referenced by ink_hash_table_destroy_and_free_values(), ink_hash_table_destroy_and_xfree_values(), and ink_hash_table_dump_strings().
void ink_hash_table_replace_string | ( | InkHashTable * | ht_ptr, | |
char * | string_key, | |||
char * | string_value | |||
) |
Definition at line 438 of file ink_hash_table.cc.
References ats_free(), ats_strdup, ink_hash_table_entry_value(), ink_hash_table_get_entry(), and ink_hash_table_set_entry().
Referenced by RawHashTable::replaceString().
void ink_hash_table_set_entry | ( | InkHashTable * | ht_ptr, | |
InkHashTableEntry * | he_ptr, | |||
InkHashTableValue | value | |||
) |
Definition at line 292 of file ink_hash_table.cc.
Referenced by ink_hash_table_insert(), ink_hash_table_replace_string(), and RawHashTable::setBindingValue().