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, CmpBase
 

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
 
void clear ()
 Empties the container.
 
bool is_empty () const noexcept
 Checks if the container is empty.
 

Detailed Description

template<typename Key, template< typename, class > class HashSetTable = OLhashTable, 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 = OLhashTable, 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 = OLhashTable, 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 = OLhashTable, 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 = OLhashTable, 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 = OLhashTable, 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 = OLhashTable, 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(), k, and l.

◆ clear()

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

Empties the container.

Exceptions
none
See also
empty()

Definition at line 93 of file tpl_hash.H.

◆ get_first()

template<typename Key , template< typename, class > class HashSetTable = OLhashTable, 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 = OLhashTable, 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.

◆ is_empty()

template<typename Key , template< typename, class > class HashSetTable = OLhashTable, class Cmp = Aleph::equal_to<Key>>
bool Aleph::HashSet< Key, HashSetTable, Cmp >::is_empty ( ) const
inlinenoexcept

Checks if the container is empty.

Returns
true if empty, false otherwise.
Exceptions
none

Definition at line 102 of file tpl_hash.H.

Referenced by TEST().


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