A table of dynamically loaded libraries. More...
#include <OpenFOAM/dlLibraryTable.H>
A table of dynamically loaded libraries.
Definition at line 51 of file dlLibraryTable.H.
Classes | |
class | readDlLibrary |
Class whose construction causes the reading of dynamic libraries. More... |
Public Member Functions | |
dlLibraryTable () | |
Construct null. | |
~dlLibraryTable () | |
![]() | |
bool | set (const void *&, const fileName &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< fileName, void *, Hash< void * > > &) | |
Construct as copy. | |
HashTable (const Xfer< HashTable< fileName, void *, Hash< void * > > > &) | |
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 void *&) const |
Return true if hashedEntry is found in table. | |
iterator | find (const void *&) |
Find and return an iterator set at the hashedEntry. | |
const_iterator | find (const void *&) const |
Find and return an const_iterator set at the hashedEntry. | |
List< void * > | toc () const |
Return the table of contents. | |
List< void * > | sortedToc () const |
Return the table of contents as a sorted list. | |
Ostream & | printInfo (Ostream &) const |
Print information. | |
bool | insert (const void *&, const fileName &newElmt) |
Insert a new hashedEntry. | |
bool | erase (const iterator &) |
Erase an hashedEntry specified by given iterator. | |
bool | erase (const void *&) |
Erase an hashedEntry specified by given key if in table. | |
label | erase (const UList< void * > &) |
Remove entries given by the listed keys from this HashTable. | |
label | erase (const HashTable< AnyType, void *, 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< fileName, void *, Hash< void * > > &) |
Transfer the contents of the argument table into this table. | |
Xfer< HashTable< fileName, void *, Hash< void * > > > | xfer () |
Transfer contents to the Xfer container. | |
fileName & | operator[] (const void *&) |
Find and return an hashedEntry. | |
const fileName & | operator[] (const void *&) const |
Find and return an hashedEntry. | |
fileName & | operator() (const void *&) |
Find and return an hashedEntry, create it null if not present. | |
void | operator= (const HashTable< fileName, void *, Hash< void * > > &) |
Assignment. | |
bool | operator== (const HashTable< fileName, void *, Hash< void * > > &) const |
Equality. Two hash tables are equal if all contents of first are. | |
bool | operator!= (const HashTable< fileName, void *, Hash< void * > > &) 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 |
Static Public Member Functions | |
static bool | open (const fileName &name) |
Open the named library. | |
static bool | open (const dictionary &, const word &libsEntry) |
Open all the libraries listed in the 'libsEntry' entry in the. | |
template<class TablePtr > | |
static bool | open (const dictionary &, const word &libsEntry, const TablePtr &tablePtr) |
Open all the libraries listed in the 'libsEntry' entry in the. |
Static Public Attributes | |
static dlLibraryTable | loadedLibraries |
Static data someStaticData. |
Additional Inherited Members | |
![]() | |
typedef fileName | value_type |
Type of values the HashTable contains. | |
typedef fileName & | reference |
Type that can be used for storing into HashTable::value_type. | |
typedef const fileName & | const_reference |
Type that can be used for storing into constant. | |
typedef label | size_type |
The type that can represent the size of a HashTable. |
dlLibraryTable | ( | ) |
Construct null.
Definition at line 38 of file dlLibraryTable.C.
~dlLibraryTable | ( | ) |
Definition at line 56 of file dlLibraryTable.C.
|
static |
Open the named library.
Definition at line 65 of file dlLibraryTable.C.
References Foam::debug::controlDict(), Foam::endl(), fileName::ext(), forAllConstIter, dictionary::found(), Foam::Info, fileName::lessExt(), dictionary::lookup(), List< T >::setSize(), List< T >::size(), and WarningIn.
Referenced by PstreamImpl::loadPstreamLibrary(), motionSolver::New(), dynamicFvMesh::New(), functionObject::New(), GAMGAgglomeration::New(), and dlLibraryTable::open().
|
static |
Open all the libraries listed in the 'libsEntry' entry in the.
given dictionary if present
Definition at line 142 of file dlLibraryTable.C.
References forAll, dictionary::found(), dictionary::lookup(), and dlLibraryTable::open().
|
static |
Open all the libraries listed in the 'libsEntry' entry in the.
given dictionary if present and check the additions to the give constructor table
Definition at line 34 of file dlLibraryTableTemplates.C.
References Foam::endl(), forAll, dictionary::found(), dictionary::lookup(), and WarningIn.
|
static |
Static data someStaticData.
Definition at line 69 of file dlLibraryTable.H.