The lookup function in OpenFOAM
The lookup function is defined in dictionary.H and dictionary.C:
1 | ITstream& lookup |
The return of this function will call:
1 | const Foam::entry& Foam::dictionary::lookupEntry |
The looupEntry function will call:
1 | Foam::entry* Foam::dictionary::lookupEntryPtr |
The hashedEntries_ is defined as:
1 | //- HashTable of the entries held on the DL-list for quick lookup |
Here the find function defined in the HashTable is used:
1 | //- Find and return an iterator set at the hashedEntry |
The returned iter() call the operator() of class iterator which is a class defined in HashTable class.
1 | template<class T, class Key, class Hash> |
The object function is defined inside the iterator class in HashTableI.H:
1 | template<class T, class Key, class Hash> |
The entryPtr_ is an object with a type of hashedEntry*:
1 | //- Current element |
The hashedEntry is a struct defined in HashTable class:
1 | struct hashedEntry |