A table of dynamically loaded libraries. More...
Public Member Functions | |
ClassName ("dlLibraryTable") | |
dlLibraryTable ()=default | |
Default construct. More... | |
dlLibraryTable (const dlLibraryTable &)=delete | |
No copy construct. More... | |
dlLibraryTable (dlLibraryTable &&)=default | |
Move construct. More... | |
void | operator= (const dlLibraryTable &)=delete |
No copy assignment. More... | |
dlLibraryTable & | operator= (dlLibraryTable &&)=default |
Move assignment. More... | |
dlLibraryTable (const UList< fileName > &libNames, bool verbose=true) | |
Open specified libraries. Ignores duplicate names. More... | |
dlLibraryTable (const dictionary &dict, const word &libsEntry) | |
~dlLibraryTable () | |
Destructor. Closes all libraries loaded by the table. More... | |
bool | empty () const |
True if there are no libraries loaded by the table. More... | |
label | size () const |
The number of libraries loaded by the table. More... | |
const UList< fileName > & | names () const |
Names of the libraries in use, or requested. More... | |
const UList< void * > & | pointers () const |
Pointers to the libraries in use. Access with caution. More... | |
void | clear (bool verbose=true) |
Clearing closes all libraries loaded by the table. More... | |
bool | append (const fileName &libName) |
Add to the list of names, but do not yet open. More... | |
label | append (const UList< fileName > &libNames) |
Add to the list of names, but do not yet open. More... | |
bool | open (bool verbose=true) |
void * | open (const fileName &libName, bool verbose=true) |
Open the named library, optionally warn if problems occur. More... | |
bool | open (const UList< fileName > &libNames, bool verbose=true) |
Open the named libraries, optionally warn if problems occur. More... | |
bool | close (const fileName &libName, bool verbose=true) |
Close the named library, optionally warn if problems occur. More... | |
void * | findLibrary (const fileName &libName) |
Find the handle of the named library. More... | |
bool | open (const dictionary &dict, const word &libsEntry) |
template<class TablePtr > | |
bool | open (const dictionary &dict, const word &libsEntry, const TablePtr &tablePtr) |
InfoProxy< dlLibraryTable > | info () const |
Return info proxy. More... | |
A table of dynamically loaded libraries.
Definition at line 57 of file dlLibraryTable.H.
|
default |
Default construct.
|
delete |
No copy construct.
|
default |
Move construct.
|
explicit |
Open specified libraries. Ignores duplicate names.
Definition at line 76 of file dlLibraryTable.C.
References dlLibraryTable::open().
dlLibraryTable | ( | const dictionary & | dict, |
const word & | libsEntry | ||
) |
Open all libraries listed in the 'libsEntry' entry in the given dictionary. Verbose = true.
Definition at line 86 of file dlLibraryTable.C.
References dict, and dlLibraryTable::open().
~dlLibraryTable | ( | ) |
Destructor. Closes all libraries loaded by the table.
Definition at line 97 of file dlLibraryTable.C.
References clear().
ClassName | ( | "dlLibraryTable" | ) |
|
delete |
No copy assignment.
|
default |
Move assignment.
bool empty | ( | ) | const |
True if there are no libraries loaded by the table.
Definition at line 105 of file dlLibraryTable.C.
Foam::label size | ( | ) | const |
The number of libraries loaded by the table.
Definition at line 119 of file dlLibraryTable.C.
Names of the libraries in use, or requested.
Definition at line 123 of file dlLibraryTable.H.
Referenced by Foam::operator<<().
|
inline |
Pointers to the libraries in use. Access with caution.
Definition at line 129 of file dlLibraryTable.H.
Referenced by Foam::operator<<().
void clear | ( | bool | verbose = true | ) |
Clearing closes all libraries loaded by the table.
Definition at line 135 of file dlLibraryTable.C.
References DebugInFunction, Foam::dlClose(), Foam::endl(), forAll, forAllReverse, Foam::name(), Foam::nl, and WarningInFunction.
Add to the list of names, but do not yet open.
Ignores duplicate names.
Definition at line 197 of file dlLibraryTable.C.
Add to the list of names, but do not yet open.
Ignores duplicate names.
Definition at line 211 of file dlLibraryTable.C.
References append().
Open named, but unopened libraries. These names will normally have been added with the append() method.
Definition at line 227 of file dlLibraryTable.C.
References forAll.
Referenced by dlLibraryTable::dlLibraryTable(), codeStream::getFunction(), and dlLibraryTable::open().
Open the named library, optionally warn if problems occur.
Definition at line 258 of file dlLibraryTable.C.
Open the named libraries, optionally warn if problems occur.
Ignores duplicate names.
Definition at line 276 of file dlLibraryTable.C.
References dlLibraryTable::open().
Close the named library, optionally warn if problems occur.
Definition at line 303 of file dlLibraryTable.C.
References DebugInFunction, Foam::dlClose(), Foam::endl(), Foam::name(), Foam::nl, and WarningInFunction.
void * findLibrary | ( | const fileName & | libName | ) |
Find the handle of the named library.
Definition at line 336 of file dlLibraryTable.C.
Referenced by codeStream::getFunction().
bool open | ( | const dictionary & | dict, |
const word & | libsEntry | ||
) |
Open all libraries listed in the 'libsEntry' entry in the given dictionary.
Definition at line 350 of file dlLibraryTable.C.
References dict, dlLibraryTable::open(), and dictionary::readIfPresent().
bool open | ( | const dictionary & | dict, |
const word & | libsEntry, | ||
const TablePtr & | tablePtr | ||
) |
Open all libraries listed in the 'libsEntry' entry in the given dictionary and check the additions to the given constructor table
Definition at line 37 of file dlLibraryTableTemplates.C.
References Foam::expressions::patchExpr::debug, dict, Foam::endl(), Foam::nl, and WarningInFunction.
|
inline |
Return info proxy.
Used to print library table information to a stream
Definition at line 182 of file dlLibraryTable.H.