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

#include <tpl_hash.H>

Inheritance diagram for Aleph::HashSet< Key, HashSetTable, Cmp >:
[legend]
Collaboration diagram for Aleph::HashSet< Key, HashSetTable, Cmp >:
[legend]

Public Types

typedef HashSetTable< Key, Cmp > Base
 

Public Member Functions

void add (const DynList< Key > &l)
 
template<template< typename > class List>
 HashSet (const List< Key > &l)
 
template<class It >
 HashSet (It b, It e)
 
 HashSet (std::initializer_list< Key > l)
 
 HashSet ()
 
Key & get_first () const
 
Key & get_last () const
 

Detailed Description

template<typename Key, template< typename, class > class HashSetTable = ODhashTable, class Cmp = Aleph::equal_to<Key>>
struct Aleph::HashSet< Key, HashSetTable, Cmp >

Definition at line 62 of file tpl_hash.H.

Member Typedef Documentation

◆ Base

template<typename Key , template< typename, class > class HashSetTable = ODhashTable, class Cmp = Aleph::equal_to<Key>>
typedef HashSetTable<Key, Cmp> Aleph::HashSet< Key, HashSetTable, Cmp >::Base

Definition at line 64 of file tpl_hash.H.

Constructor & Destructor Documentation

◆ HashSet() [1/4]

template<typename Key , template< typename, class > class HashSetTable = ODhashTable, class Cmp = Aleph::equal_to<Key>>
template<template< typename > class List>
Aleph::HashSet< Key, HashSetTable, Cmp >::HashSet ( const List< Key > &  l)
inline

Definition at line 75 of file tpl_hash.H.

◆ HashSet() [2/4]

template<typename Key , template< typename, class > class HashSetTable = ODhashTable, class Cmp = Aleph::equal_to<Key>>
template<class It >
Aleph::HashSet< Key, HashSetTable, Cmp >::HashSet ( It  b,
It  e 
)
inline

Definition at line 75 of file tpl_hash.H.

◆ HashSet() [3/4]

template<typename Key , template< typename, class > class HashSetTable = ODhashTable, class Cmp = Aleph::equal_to<Key>>
Aleph::HashSet< Key, HashSetTable, Cmp >::HashSet ( std::initializer_list< Key >  l)
inline

Definition at line 75 of file tpl_hash.H.

◆ HashSet() [4/4]

template<typename Key , template< typename, class > class HashSetTable = ODhashTable, class Cmp = Aleph::equal_to<Key>>
Aleph::HashSet< Key, HashSetTable, Cmp >::HashSet ( )
inline

Definition at line 77 of file tpl_hash.H.

Member Function Documentation

◆ add()

template<typename Key , template< typename, class > class HashSetTable = ODhashTable, class Cmp = Aleph::equal_to<Key>>
void Aleph::HashSet< Key, HashSetTable, Cmp >::add ( const DynList< Key > &  l)
inline

Definition at line 67 of file tpl_hash.H.

References FunctionalMethods< Container, T >::for_each(), l, and Aleph::maps().

◆ get_first()

template<typename Key , template< typename, class > class HashSetTable = ODhashTable, class Cmp = Aleph::equal_to<Key>>
Key & Aleph::HashSet< Key, HashSetTable, Cmp >::get_first ( ) const
inline

Definition at line 79 of file tpl_hash.H.

◆ get_last()

template<typename Key , template< typename, class > class HashSetTable = ODhashTable, class Cmp = Aleph::equal_to<Key>>
Key & Aleph::HashSet< Key, HashSetTable, Cmp >::get_last ( ) const
inline

Definition at line 81 of file tpl_hash.H.


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