Zero  0.1.0
Public Member Functions | Protected Attributes | List of all members
zero::hashtable_deque::HashtableDequeAlreadyContainsException< key_type, invalid_key > Class Template Reference

Exception thrown when an entry was already contained in an HashtableDeque. More...

#include <hashtable_deque_exceptions.hpp>

Inheritance diagram for zero::hashtable_deque::HashtableDequeAlreadyContainsException< key_type, invalid_key >:
zero::hashtable_deque::HashtableDequeException< key_type, invalid_key >

Public Member Functions

 HashtableDequeAlreadyContainsException (const uint64_t &size, const key_type &back, const key_type &front, const key_type &containedKey)
 Constructor of an exception thrown when an entry was already contained in an HashtableDeque. More...
 
const char * what () const noexcept override
 
- Public Member Functions inherited from zero::hashtable_deque::HashtableDequeException< key_type, invalid_key >
 HashtableDequeException (const uint64_t &size, const key_type &back, const key_type &front)
 Constructor of an exception thrown in HashtableDeque. More...
 
const char * what () const noexcept override
 What caused the exception happened? More...
 
virtual const char * details () const noexcept
 Details about the exceptional state. More...
 

Protected Attributes

const key_type _containedKey
 The Unexpected Entry. More...
 
- Protected Attributes inherited from zero::hashtable_deque::HashtableDequeException< key_type, invalid_key >
const uint64_t _size
 The size of the HashtableDeque. More...
 
const key_type _back
 The back of the HashtableDeque. More...
 
const key_type _front
 The front of the HashtableDeque. More...
 

Detailed Description

template<class key_type, key_type invalid_key>
class zero::hashtable_deque::HashtableDequeAlreadyContainsException< key_type, invalid_key >

Exception thrown when an entry was already contained in an HashtableDeque.

Represents an exception that can be thrown in instances of HashtableDeque when an entry was unexpectedly already contained in the deque.

Template Parameters
key_typeThe key type of the corresponding HashtableDeque .
invalid_keyThe invalid key used in the corresponding HashtableDeque .
Author
Max Gilbert

Constructor & Destructor Documentation

§ HashtableDequeAlreadyContainsException()

template<class key_type, key_type invalid_key>
zero::hashtable_deque::HashtableDequeAlreadyContainsException< key_type, invalid_key >::HashtableDequeAlreadyContainsException ( const uint64_t &  size,
const key_type &  back,
const key_type &  front,
const key_type &  containedKey 
)
inline

Constructor of an exception thrown when an entry was already contained in an HashtableDeque.

This constructor instantiates an HashtableDequeAlreadyContainsException with all its variables.

Parameters
sizeSee _size .
backSee _back .
frontSee _front .
containedKeySee _containedKey .

Member Function Documentation

§ what()

template<class key_type, key_type invalid_key>
const char* zero::hashtable_deque::HashtableDequeAlreadyContainsException< key_type, invalid_key >::what ( ) const
inlineoverridenoexcept

Member Data Documentation

§ _containedKey

template<class key_type, key_type invalid_key>
zero::hashtable_deque::HashtableDequeAlreadyContainsException< key_type, invalid_key >::_containedKey
protected

The Unexpected Entry.

The value of the entry that was unexpectedly already contained.


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