libhatchet
Loading...
Searching...
No Matches
hxhash_table_node_string_literal Class Reference

#include <hxhash_table_nodes.hpp>

Public Member Functions

 hxhash_table_node_string_literal (const char *k_)
 hxhash_table_node_string_literal (void)=delete
 hxhash_table_node_string_literal (const hxhash_table_node_string_literal &)=delete
void operator= (const hxhash_table_node_string_literal &)=delete
Public Member Functions inherited from hxhash_table_set_node< const char * >
 hxhash_table_set_node (ref_t_ &&key_)
hxhash_table_set_node & operator= (const hxhash_table_set_node &x_)=delete
bool operator== (const hxhash_table_set_node &x_) const
bool operator< (const hxhash_table_set_node &x_) const
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
Protected Member Functions inherited from hxhash_node_base
 hxhash_node_base (hxhash_t hash_)
Protected Attributes inherited from hxhash_node_base
hxhash_node_base * hash_next
hxhash_t hash_val

Detailed Description

hxhash_table_node_string_literal - Subclass of hxhash_table_set_node for static C strings.

This code expects the provided strings to outlive the container because it is intended for use with string literals.

Constructor & Destructor Documentation

◆ hxhash_table_node_string_literal() [1/3]

hxhash_table_node_string_literal::hxhash_table_node_string_literal ( const char * k_)
inline

Constructor initializes the node with a string key and computes its hash.

Copying and assignment are unimplemented and the key must be immutable in any assignment operation in a subclass.

  • k : Non-null string key used to initialize the node. The string must outlive the node.

◆ hxhash_table_node_string_literal() [2/3]

hxhash_table_node_string_literal::hxhash_table_node_string_literal ( void )
delete

Assignment is undefined. The key is immutable.

◆ hxhash_table_node_string_literal() [3/3]

hxhash_table_node_string_literal::hxhash_table_node_string_literal ( const hxhash_table_node_string_literal & )
delete

Member Function Documentation

◆ operator=()

void hxhash_table_node_string_literal::operator= ( const hxhash_table_node_string_literal & )
delete

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