HashTableCore Class Reference

Bits that are independent of HashTable template parameters. More...

Classes

class  const_iterator_pair
 Factory class for creating a begin/end pair for any const iterator. More...
 

Public Member Functions

 ClassName ("HashTable")
 Declare type-name (with debug switch) More...
 
 HashTableCore ()=default
 Default construct. More...
 

Static Public Member Functions

static label canonicalSize (const label requested_size)
 Return a canonical (power-of-two) of the requested size. More...
 

Static Public Attributes

static const label maxTableSize
 Maximum allowable internal table size. Approximately labelMax/4. More...
 

Detailed Description

Bits that are independent of HashTable template parameters.

Template invariant parts of hash table implementation.

Source files

Definition at line 56 of file HashTableCore.H.

Constructor & Destructor Documentation

◆ HashTableCore()

HashTableCore ( )
default

Default construct.

Member Function Documentation

◆ canonicalSize()

Foam::label canonicalSize ( const label  requested_size)
static

Return a canonical (power-of-two) of the requested size.

Definition at line 45 of file HashTableCore.C.

References HashTableCore::maxTableSize.

◆ ClassName()

ClassName ( "HashTable"  )

Declare type-name (with debug switch)

Member Data Documentation

◆ maxTableSize

const Foam::label maxTableSize
static

Maximum allowable internal table size. Approximately labelMax/4.

Definition at line 59 of file HashTableCore.H.

Referenced by HashTableCore::canonicalSize().


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