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

#include <tpl_hash.H>

Inheritance diagram for Aleph::HashMap< Key, Data, HashMapTable, Cmp >:
[legend]
Collaboration diagram for Aleph::HashMap< Key, Data, HashMapTable, Cmp >:
[legend]

Public Types

typedef HashMapTable< Key, Data, Cmp > Base
 

Public Member Functions

void add (std::initializer_list< Key > lk, std::initializer_list< Data > ld)
 
 HashMap ()
 
 HashMap (std::initializer_list< Key > lk, std::initializer_list< Data > ld)
 
template<template< typename T > class Container = DynList>
 HashMap (const Container< Key > &c, std::initializer_list< Data > ld)
 
const Dataoperator[] (const Key &key) const
 
Dataoperator[] (const Key &key)
 

Detailed Description

template<typename Key, typename Data, template< typename, typename, class > class HashMapTable = MapODhash, class Cmp = Aleph::equal_to<Key>>
struct Aleph::HashMap< Key, Data, HashMapTable, Cmp >

Definition at line 93 of file tpl_hash.H.

Member Typedef Documentation

◆ Base

template<typename Key , typename Data , template< typename, typename, class > class HashMapTable = MapODhash, class Cmp = Aleph::equal_to<Key>>
typedef HashMapTable<Key, Data, Cmp> Aleph::HashMap< Key, Data, HashMapTable, Cmp >::Base

Definition at line 95 of file tpl_hash.H.

Constructor & Destructor Documentation

◆ HashMap() [1/3]

template<typename Key , typename Data , template< typename, typename, class > class HashMapTable = MapODhash, class Cmp = Aleph::equal_to<Key>>
Aleph::HashMap< Key, Data, HashMapTable, Cmp >::HashMap ( )
inline

Definition at line 109 of file tpl_hash.H.

◆ HashMap() [2/3]

template<typename Key , typename Data , template< typename, typename, class > class HashMapTable = MapODhash, class Cmp = Aleph::equal_to<Key>>
Aleph::HashMap< Key, Data, HashMapTable, Cmp >::HashMap ( std::initializer_list< Key >  lk,
std::initializer_list< Data ld 
)
inline

◆ HashMap() [3/3]

template<typename Key , typename Data , template< typename, typename, class > class HashMapTable = MapODhash, class Cmp = Aleph::equal_to<Key>>
template<template< typename T > class Container = DynList>
Aleph::HashMap< Key, Data, HashMapTable, Cmp >::HashMap ( const Container< Key > &  c,
std::initializer_list< Data ld 
)
inline

Member Function Documentation

◆ add()

template<typename Key , typename Data , template< typename, typename, class > class HashMapTable = MapODhash, class Cmp = Aleph::equal_to<Key>>
void Aleph::HashMap< Key, Data, HashMapTable, Cmp >::add ( std::initializer_list< Key >  lk,
std::initializer_list< Data ld 
)
inline

◆ operator[]() [1/2]

template<typename Key , typename Data , template< typename, typename, class > class HashMapTable = MapODhash, class Cmp = Aleph::equal_to<Key>>
Data & Aleph::HashMap< Key, Data, HashMapTable, Cmp >::operator[] ( const Key &  key)
inline

Definition at line 130 of file tpl_hash.H.

◆ operator[]() [2/2]

template<typename Key , typename Data , template< typename, typename, class > class HashMapTable = MapODhash, class Cmp = Aleph::equal_to<Key>>
const Data & Aleph::HashMap< Key, Data, HashMapTable, Cmp >::operator[] ( const Key &  key) const
inline

Definition at line 130 of file tpl_hash.H.


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