FreeFOAM The Cross-Platform CFD Toolkit
EdgeMap< T > Class Template Reference

Map from edge (expressed as its endpoints) to value. More...

#include <OpenFOAM/EdgeMap.H>


Detailed Description

template<class T>
class Foam::EdgeMap< T >

Map from edge (expressed as its endpoints) to value.

Definition at line 48 of file EdgeMap.H.

+ Inheritance diagram for EdgeMap< T >:
+ Collaboration diagram for EdgeMap< T >:

List of all members.

Public Member Functions

 EdgeMap (const label size=128)
 Construct given initial map size.
 EdgeMap (Istream &is)
 Construct from Istream.
 EdgeMap (const EdgeMap< T > &map)
 Construct as copy.
- Public Member Functions inherited from HashTable< T, edge, Hash< edge > >
bool set (const edge &, const T &newElmt)
 Assign a new hashedEntry, overwriting existing entries.
 HashTable (const label size=128)
 Construct given initial table size.
 HashTable (Istream &, const label size=128)
 Construct from Istream.
 HashTable (const HashTable< T, edge, Hash< edge > > &)
 Construct as copy.
 HashTable (const Xfer< HashTable< T, edge, Hash< edge > > > &)
 Construct by transferring the parameter contents.
 ~HashTable ()
label size () const
 Return number of elements in table.
bool empty () const
 Return true if the hash table is empty.
bool found (const edge &) const
 Return true if hashedEntry is found in table.
iterator find (const edge &)
 Find and return an iterator set at the hashedEntry.
const_iterator find (const edge &) const
 Find and return an const_iterator set at the hashedEntry.
List< edgetoc () const
 Return the table of contents.
List< edgesortedToc () const
 Return the table of contents as a sorted list.
OstreamprintInfo (Ostream &) const
 Print information.
bool insert (const edge &, const T &newElmt)
 Insert a new hashedEntry.
bool erase (const iterator &)
 Erase an hashedEntry specified by given iterator.
bool erase (const edge &)
 Erase an hashedEntry specified by given key if in table.
label erase (const UList< edge > &)
 Remove entries given by the listed keys from this HashTable.
label erase (const HashTable< AnyType, edge, AnyHash > &)
 Remove entries given by the given keys from this HashTable.
void resize (const label newSize)
 Resize the hash table for efficiency.
void clear ()
 Clear all entries from table.
void clearStorage ()
 Clear the table entries and the table itself.
void transfer (HashTable< T, edge, Hash< edge > > &)
 Transfer the contents of the argument table into this table.
Xfer< HashTable< T, edge, Hash
< edge > > > 
xfer ()
 Transfer contents to the Xfer container.
Toperator[] (const edge &)
 Find and return an hashedEntry.
const Toperator[] (const edge &) const
 Find and return an hashedEntry.
Toperator() (const edge &)
 Find and return an hashedEntry, create it null if not present.
void operator= (const HashTable< T, edge, Hash< edge > > &)
 Assignment.
bool operator== (const HashTable< T, edge, Hash< edge > > &) const
 Equality. Two hash tables are equal if all contents of first are.
bool operator!= (const HashTable< T, edge, Hash< edge > > &) const
 The opposite of the equality operation. Takes linear time.
iterator begin ()
 iterator set to the begining of the HashTable
const_iterator begin () const
 const_iterator set to the beginning of the HashTable
const iterator & end ()
 iterator set to beyond the end of the HashTable
const const_iterator & end () const
 const_iterator set to beyond the end of the HashTable
const_iterator cbegin () const
 const_iterator set to the beginning of the HashTable
const const_iterator & cend () const
 const_iterator set to beyond the end of the HashTable

Additional Inherited Members

- Public Types inherited from HashTable< T, edge, Hash< edge > >
typedef T value_type
 Type of values the HashTable contains.
typedef Treference
 Type that can be used for storing into HashTable::value_type.
typedef const Tconst_reference
 Type that can be used for storing into constant.
typedef label size_type
 The type that can represent the size of a HashTable.

Constructor & Destructor Documentation

EdgeMap ( const label  size = 128)
inline

Construct given initial map size.

Definition at line 58 of file EdgeMap.H.

EdgeMap ( Istream is)
inline

Construct from Istream.

Definition at line 64 of file EdgeMap.H.

EdgeMap ( const EdgeMap< T > &  map)
inline

Construct as copy.

Definition at line 70 of file EdgeMap.H.


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