ALib C++ Library
Library Version: 2412 R0
Documentation generated by doxygen
Loading...
Searching...
No Matches
TIdentDescriptor< T > Struct Template Reference

Description:

template<typename T>
struct alib::containers::TIdentDescriptor< T >

Implements template type TValueDescriptor, which is, for example, offered by types HashTable and LRUCacheTable.

Specifically, this implementation is used with "sets", hence cases where the full portion of a type that is to be stored in a container should serve as the key to itself.

Type definitions HashSet and LRUCacheSet establish a shortcut to their corresponding base type, which incorporates this helper.

Template Parameters
TThe type stored in the container, serving likewise as the key-type.

Definition at line 75 of file valuedescriptor.hpp.

#include <valuedescriptor.hpp>

Public Type Index:

using KeyType = T
 
using MappedType = T
 
using StoredType = T
 

Public Method Index:

KeyTypeKey (T &src) const
 
MappedTypeMapped (T &src) const
 

Type Definition Details:

◆ KeyType

template<typename T >
using KeyType = T

Exposes template parameter T and thus equals StoredType and MappedType.
Container types typically publish an alias to this type. For example, see KeyType, or see KeyType.

Definition at line 88 of file valuedescriptor.hpp.

◆ MappedType

template<typename T >
using MappedType = T

Exposes template parameter T and thus equals StoredType and KeyType.
Container types typically publish an alias to this type. For example, see MappedType, or see MappedType.

Definition at line 95 of file valuedescriptor.hpp.

◆ StoredType

template<typename T >
using StoredType = T

The type stored in the container.
Container types typically publish an alias to this type. For example, see StoredType, or see StoredType.

Definition at line 81 of file valuedescriptor.hpp.

Method Details:

◆ Key()

template<typename T >
KeyType & Key ( T & src) const
inline

Returns the given src as is.

Parameters
srcThe value to extract from.
Returns
The given reference.

Definition at line 100 of file valuedescriptor.hpp.

◆ Mapped()

template<typename T >
MappedType & Mapped ( T & src) const
inline

Returns the given src as is.

Parameters
srcThe value to extract from.
Returns
The given reference.

Definition at line 105 of file valuedescriptor.hpp.


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