OpenFOAM logo
The Open Source CFD Toolbox
  Programmer’s C++ Doxygen OpenCFD Solutions Contact OpenFOAM

HashSet Class Template Reference

Inheritance diagram for HashSet:

Inheritance graph
[legend]
Collaboration diagram for HashSet:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<class Key = word, class Hash = string::hash>
class Foam::HashSet< Key, Hash >

Definition at line 54 of file HashSet.H.


Public Member Functions

 HashSet (label size=100)
 Construct given initial map size.
 HashSet (Istream &is)
 Construct from Istream.
 HashSet (const UList< Key > &ul)
 Construct from UList of Key.
 HashSet (const HashSet< Key, Hash > &hs)
 Construct as copy.
bool insert (const Key &key)
 Insert a new hashedEntry.

Constructor & Destructor Documentation

HashSet ( label  size = 100  )  [inline]

Construct given initial map size.

Definition at line 64 of file HashSet.H.

HashSet ( Istream &  is  )  [inline]

Construct from Istream.

Definition at line 70 of file HashSet.H.

HashSet ( const UList< Key > &  ul  )  [inline]

Construct from UList of Key.

Definition at line 76 of file HashSet.H.

HashSet ( const HashSet< Key, Hash > &  hs  )  [inline]

Construct as copy.

Definition at line 87 of file HashSet.H.


Member Function Documentation

bool insert ( const Key &  key  )  [inline]

Insert a new hashedEntry.

Definition at line 98 of file HashSet.H.

Referenced by HashSet< long, Foam::Hash< long > >::HashSet().

Here is the caller graph for this function:


The documentation for this class was generated from the following file:
  • src/OpenFOAM/containers/HashTables/HashSet/HashSet.H
Copyright © 2000-2007 OpenCFD Ltd