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

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

#include <hashtable_deque_exceptions.hpp>

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

Public Member Functions

 HashtableDequeNotContainedException (const uint64_t &size, const key_type &back, const key_type &front, const key_type &requestedKey)
 Constructor of an exception thrown when an entry was not 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...
 

Private Attributes

const key_type _requestedKey
 The Expected Entry. More...
 

Additional Inherited Members

- 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::HashtableDequeNotContainedException< key_type, invalid_key >

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

Represents an exception that can be thrown in instances of HashtableDeque when an entry was unexpectedly not 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

§ HashtableDequeNotContainedException()

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

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

This constructor instantiates an HashtableDequeNotContainedException with all its variables.

Parameters
sizeSee _size.
backSee _back.
frontSee _front.
requestedKeySee _requestedKey.

Member Function Documentation

§ what()

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

Member Data Documentation

§ _requestedKey

template<class key_type, key_type invalid_key>
zero::hashtable_deque::HashtableDequeNotContainedException< key_type, invalid_key >::_requestedKey
private

The Expected Entry.

The value of the entry that was unexpectedly not already contained.


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