Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::LhashBucketVtl< Key > Struct Template Reference

Bucket with virtual destructor for a hash table with collision resolution by separate chaining. More...

#include <tpl_lhash.H>

Inheritance diagram for Aleph::LhashBucketVtl< Key >:
[legend]
Collaboration diagram for Aleph::LhashBucketVtl< Key >:
[legend]

Public Types

using Base = Dnode< Key >
 
- Public Types inherited from Aleph::Dnode< Key >
using key_type = Key
 The data type.
 

Public Member Functions

virtual ~LhashBucketVtl ()=default
 Virtual destructor.
 
- Public Member Functions inherited from Aleph::Dnode< Key >
Dnode< Key > *& get_next () const noexcept
 Return the next node to this
 
Dnode< Key > *& get_prev () const noexcept
 Return the previous node to this
 
Dnode< Key > * remove_prev () noexcept
 Remove the previous node to this; return its address.
 
Dnode< Key > * remove_next () noexcept
 Remove the next node to this; return its address.
 
Dnode< Key > *& get_first_ne () const noexcept
 Get the first node.
 
Dnode< Key > *& get_last_ne () const noexcept
 Get the last node.
 
Dnode< Key > *& get_first () const
 Get the first node.
 
Dnode< Key > *& get_last () const
 Get the last node.
 
Dnode< Key > * remove_last_ne () noexcept
 Remove the last node and return its address.
 
Dnode< Key > * remove_first_ne () noexcept
 Remove the first node and return its address.
 
Dnode< Key > * remove_last ()
 Remove the last node and return its address.
 
Dnode< Key > * remove_first ()
 Remove the first node and return its address.
 
 Dnode () noexcept
 
 Dnode (const Key &item)
 Construct a node with a copy of item
 
 Dnode (Key &&item)
 Construct a new node with the item moved.
 
 Dnode (const Dnode &node)
 Copy constructor.
 
 Dnode (Dnode &&node) noexcept
 Move constructor.
 
Dnodeswap (Dnode &p)
 Swap this with p
 
Dnodeoperator= (const Dnode &p)
 Copy assigment.
 
Dnodeoperator= (Dnode &&p)
 Move asignment.
 
Key & get_data () noexcept
 Return a modifiable reference to the data contained in the node.
 
const Key & get_data () const noexcept
 Return a modifiable reference to the data contained in the node.
 
Key & get_key () noexcept
 
const Key & get_key () const noexcept
 

Additional Inherited Members

- Static Public Member Functions inherited from Aleph::Dnode< Key >
static Dnodedata_to_node (Key &data) noexcept
 Given an reference to the data in the node, returns a pointer to the Dnode object that contains it.
 

Detailed Description

template<typename Key>
struct Aleph::LhashBucketVtl< Key >

Bucket with virtual destructor for a hash table with collision resolution by separate chaining.

Parameters
Keyhash lookup key type
See also
LhashTable

Definition at line 785 of file tpl_lhash.H.

Member Typedef Documentation

◆ Base

template<typename Key >
using Aleph::LhashBucketVtl< Key >::Base = Dnode<Key>

Definition at line 787 of file tpl_lhash.H.

Constructor & Destructor Documentation

◆ ~LhashBucketVtl()

template<typename Key >
virtual Aleph::LhashBucketVtl< Key >::~LhashBucketVtl ( )
virtualdefault

Virtual destructor.


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