ALib C++ Library
Library Version: 2402 R1
Documentation generated by doxygen
Loading...
Searching...
No Matches
HashTableElementUncached< T, TStored > Struct Template Reference

Description:

template<typename T, typename TStored>
struct alib::monomem::detail::HashTableElementUncached< T, TStored >

Type used by HashTableBase::Element if hash codes are not cached.

Definition at line 120 of file hashtablebase.inl.

Inheritance diagram for HashTableElementUncached< T, TStored >:
[legend]
Collaboration diagram for HashTableElementUncached< T, TStored >:
[legend]

Public Static Field Index:

static constexpr bool CachedHashCodes = 0
 

Public Field Index:

union { 
 
   TStored   value 
 The value as seen internally. More...
 
   T   valueExternal 
 The value as seen externally. More...
 
};  
 
- Public Field Index: inherited from SidiNodeBase< HashTableElementUncached< T, TStored > >
HashTableElementUncached< T, TStored > * pnext
 

Public Method Index:

 ~HashTableElementUncached ()=delete
 
void destruct ()
 
void fixHashCode (size_t pHashCode)
 
size_t getCached ()
 
- Public Method Index: inherited from SidiNodeBase< HashTableElementUncached< T, TStored > >
 SidiNodeBase () noexcept=default
 
 SidiNodeBase (const SidiNodeBase &)=delete
 
 SidiNodeBase (HashTableElementUncached< T, TStored > *next) noexcept
 
 SidiNodeBase (SidiNodeBase &&) noexcept=default
 
HashTableElementUncached< T, TStored > * addBehind (HashTableElementUncached< T, TStored > *elem)
 
integer count (SidiNodeBase *end=nullptr) const
 
bool hasNext () const
 
HashTableElementUncached< T, TStored > * next () const
 
void next (SidiNodeBase *p)
 
SidiNodeBaseoperator= (const SidiNodeBase &)=delete
 
SidiNodeBaseoperator= (SidiNodeBase &&) noexcept=default
 
bool pointsTo (const SidiNodeBase *elem) const
 
HashTableElementUncached< T, TStored > * removeNext ()
 
HashTableElementUncached< T, TStored > * removeRangeBehind (HashTableElementUncached< T, TStored > *last)
 

Field Details:

◆ [union]

union { ... }

The custom data stored in nodes of this table.

◆ CachedHashCodes

template<typename T , typename TStored >
constexpr bool CachedHashCodes = 0
staticconstexpr

TMP constant that denotes that hash codes are not cached.

Definition at line 126 of file hashtablebase.inl.

◆ value

template<typename T , typename TStored >
TStored value

The value as seen internally.

Definition at line 132 of file hashtablebase.inl.

◆ valueExternal

template<typename T , typename TStored >
T valueExternal

The value as seen externally.

Definition at line 131 of file hashtablebase.inl.

Constructor(s) / Destructor Details::

◆ ~HashTableElementUncached()

template<typename T , typename TStored >
~HashTableElementUncached ( )
delete

Deleted default constructor. (Needed to avoid warning with msc).

Method Details:

◆ destruct()

template<typename T , typename TStored >
void destruct ( )
inline

Invokes the destructor of templated custom member TStored .

Definition at line 145 of file hashtablebase.inl.

◆ fixHashCode()

template<typename T , typename TStored >
void fixHashCode ( size_t pHashCode)
inline

Does nothing, parameter ignored.

Parameters
pHashCodeIgnored

Definition at line 138 of file hashtablebase.inl.

◆ getCached()

template<typename T , typename TStored >
size_t getCached ( )
inline

Never called.

Returns
Undefined.

Definition at line 142 of file hashtablebase.inl.


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