libhatchet
Loading...
Searching...
No Matches
hxhash_table_node_string< allocator_ > Class Template Reference

#include <hxhash_table_nodes.hpp>

Public Member Functions

 hxhash_table_node_string (const char *k_)
 ~hxhash_table_node_string (void)
hxhash_table_node_stringhash_next (void) const
Public Member Functions inherited from hxhash_table_set_node< const char * >
 hxhash_table_set_node (ref_t_ &&key_)
hxhash_table_set_nodehash_next (void) const
void set_hash_next (hxhash_table_set_node *next_)
const const char *& hash_key (void) const
hxhash_t hash_value (void) const

Additional Inherited Members

Public Types inherited from hxhash_table_set_node< const char * >
using key_t

Detailed Description

template<hxsystem_allocator_t allocator_ = hxsystem_allocator_heap>
class hxhash_table_node_string< allocator_ >

hxhash_table_node_string - Subclass of hxhash_table_set_node for C strings.

Allocates a copy, resulting in a string pool per hash table. The key is stored as a pointer to const to keep the hash table code const-correct.

Constructor & Destructor Documentation

◆ hxhash_table_node_string()

template<hxsystem_allocator_t allocator_ = hxsystem_allocator_heap>
hxhash_table_node_string< allocator_ >::hxhash_table_node_string ( const char * k_)
inline

Constructor allocates and duplicates the string key, then initializes the node.

  • k : The string key to allocate, duplicate, and initialize the node with.

◆ ~hxhash_table_node_string()

template<hxsystem_allocator_t allocator_ = hxsystem_allocator_heap>
hxhash_table_node_string< allocator_ >::~hxhash_table_node_string ( void )
inline

Destructor frees the allocated string key.

Member Function Documentation

◆ hash_next()

template<hxsystem_allocator_t allocator_ = hxsystem_allocator_heap>
hxhash_table_node_string * hxhash_table_node_string< allocator_ >::hash_next ( void ) const
inline

Returns the next node in the table's embedded linked list.


The documentation for this class was generated from the following file: