Functions

ink_hash_table.cc File Reference

A brief file description. More...

#include "ink_error.h"
#include "ink_hash_table.h"
#include "ink_memory.h"
Include dependency graph for ink_hash_table.cc:

Go to the source code of this file.

Functions

InkHashTableink_hash_table_create (InkHashTableKeyType key_type)
InkHashTableink_hash_table_destroy (InkHashTable *ht_ptr)
static int _ink_hash_table_free_entry_value (InkHashTable *ht_ptr, InkHashTableEntry *e)
static int _ink_hash_table_xfree_entry_value (InkHashTable *ht_ptr, InkHashTableEntry *e)
InkHashTableink_hash_table_destroy_and_free_values (InkHashTable *ht_ptr)
InkHashTableink_hash_table_destroy_and_xfree_values (InkHashTable *ht_ptr)
int ink_hash_table_isbound (InkHashTable *ht_ptr, const char *key)
int ink_hash_table_lookup (InkHashTable *ht_ptr, const char *key, InkHashTableValue *value_ptr)
int ink_hash_table_delete (InkHashTable *ht_ptr, const char *key)
InkHashTableEntryink_hash_table_lookup_entry (InkHashTable *ht_ptr, const char *key)
InkHashTableEntryink_hash_table_get_entry (InkHashTable *ht_ptr, const char *key, int *new_value)
void ink_hash_table_set_entry (InkHashTable *ht_ptr, InkHashTableEntry *he_ptr, InkHashTableValue value)
void ink_hash_table_insert (InkHashTable *ht_ptr, const char *key, InkHashTableValue value)
void ink_hash_table_map (InkHashTable *ht_ptr, InkHashTableEntryFunction map)
InkHashTableKey ink_hash_table_entry_key (InkHashTable *ht_ptr, InkHashTableEntry *entry_ptr)
InkHashTableValue ink_hash_table_entry_value (InkHashTable *ht_ptr, InkHashTableEntry *entry_ptr)
static int DumpStringEntry (InkHashTable *ht_ptr, InkHashTableEntry *e)
void ink_hash_table_dump_strings (InkHashTable *ht_ptr)
void ink_hash_table_replace_string (InkHashTable *ht_ptr, char *string_key, char *string_value)

Detailed Description

A brief file description.

License

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.


Function Documentation

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]
InkHashTable* ink_hash_table_create ( InkHashTableKeyType  key_type  ) 
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  ) 
InkHashTable* ink_hash_table_destroy_and_free_values ( InkHashTable ht_ptr  ) 
InkHashTable* ink_hash_table_destroy_and_xfree_values ( InkHashTable ht_ptr  ) 
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 
)
InkHashTableEntry* ink_hash_table_get_entry ( InkHashTable ht_ptr,
const char *  key,
int *  new_value 
)
void ink_hash_table_insert ( InkHashTable ht_ptr,
const char *  key,
InkHashTableValue  value 
)
int ink_hash_table_isbound ( InkHashTable ht_ptr,
const char *  key 
)
int ink_hash_table_lookup ( InkHashTable ht_ptr,
const char *  key,
InkHashTableValue value_ptr 
)
InkHashTableEntry* ink_hash_table_lookup_entry ( InkHashTable ht_ptr,
const char *  key 
)
void ink_hash_table_map ( InkHashTable ht_ptr,
InkHashTableEntryFunction  map 
)
void ink_hash_table_replace_string ( InkHashTable ht_ptr,
char *  string_key,
char *  string_value 
)
void ink_hash_table_set_entry ( InkHashTable ht_ptr,
InkHashTableEntry he_ptr,
InkHashTableValue  value 
)