Public Member Functions | Private Member Functions | Private Attributes
dlLibraryTable Class Reference

A table of dynamically loaded libraries. More...

Collaboration diagram for dlLibraryTable:
Collaboration graph
[legend]

Public Member Functions

 ClassName ("dlLibraryTable")
 
 dlLibraryTable ()
 Construct null. More...
 
 dlLibraryTable (const dictionary &, const word &)
 Construct from dictionary and name of 'libs' entry giving. More...
 
 ~dlLibraryTable ()
 Destructor. More...
 
bool open (const fileName &name, const bool verbose=true)
 Open the named library, optionally with warnings if problems occur. More...
 
bool close (const fileName &name, const bool verbose=true)
 Close the named library, optionally with warnings if problems occur. More...
 
void * findLibrary (const fileName &name)
 Find the handle of the named library. More...
 
bool open (const dictionary &, const word &libsEntry)
 Open all the libraries listed in the 'libsEntry' entry in the. More...
 
template<class TablePtr >
bool open (const dictionary &, const word &libsEntry, const TablePtr &tablePtr)
 Open all the libraries listed in the 'libsEntry' entry in the. More...
 

Private Member Functions

 dlLibraryTable (const dlLibraryTable &)
 Disallow default bitwise copy construct. More...
 
void operator= (const dlLibraryTable &)
 Disallow default bitwise assignment. More...
 

Private Attributes

DynamicList< void * > libPtrs_
 
DynamicList< fileNamelibNames_
 

Detailed Description

A table of dynamically loaded libraries.

Source files

Definition at line 49 of file dlLibraryTable.H.

Constructor & Destructor Documentation

◆ dlLibraryTable() [1/3]

dlLibraryTable ( const dlLibraryTable )
private

Disallow default bitwise copy construct.

◆ dlLibraryTable() [2/3]

Construct null.

Definition at line 40 of file dlLibraryTable.C.

◆ dlLibraryTable() [3/3]

dlLibraryTable ( const dictionary dict,
const word libsEntry 
)

Construct from dictionary and name of 'libs' entry giving.

the libraries to load

Definition at line 45 of file dlLibraryTable.C.

References dict.

◆ ~dlLibraryTable()

Destructor.

Definition at line 56 of file dlLibraryTable.C.

References Foam::dlClose(), Foam::endl(), forAllReverse, and Foam::Info.

Here is the call graph for this function:

Member Function Documentation

◆ operator=()

void operator= ( const dlLibraryTable )
private

Disallow default bitwise assignment.

◆ ClassName()

ClassName ( "dlLibraryTable"  )

◆ open() [1/3]

bool open ( const fileName name,
const bool  verbose = true 
)

Open the named library, optionally with warnings if problems occur.

Definition at line 77 of file dlLibraryTable.C.

References Foam::dlOpen(), Foam::endl(), Foam::Info, and WarningInFunction.

Referenced by codeStream::getFunction(), and dlLibraryTable::open().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ close()

bool close ( const fileName name,
const bool  verbose = true 
)

Close the named library, optionally with warnings if problems occur.

Definition at line 118 of file dlLibraryTable.C.

References Foam::dlClose(), Foam::endl(), forAllReverse, Foam::Info, fileName::null, and WarningInFunction.

Here is the call graph for this function:

◆ findLibrary()

void * findLibrary ( const fileName name)

Find the handle of the named library.

Definition at line 164 of file dlLibraryTable.C.

References forAllReverse.

Referenced by codeStream::getFunction().

Here is the caller graph for this function:

◆ open() [2/3]

bool open ( const dictionary dict,
const word libsEntry 
)

Open all the libraries listed in the 'libsEntry' entry in the.

given dictionary if present

Definition at line 185 of file dlLibraryTable.C.

References dict, forAll, dictionary::found(), dictionary::lookup(), and dlLibraryTable::open().

Here is the call graph for this function:

◆ open() [3/3]

bool open ( const dictionary dict,
const word libsEntry,
const TablePtr &  tablePtr 
)

Open all the libraries listed in the 'libsEntry' entry in the.

given dictionary if present and check the additions to the given constructor table

Definition at line 34 of file dlLibraryTableTemplates.C.

References dict, Foam::endl(), forAll, List::size(), and WarningInFunction.

Here is the call graph for this function:

Field Documentation

◆ libPtrs_

DynamicList<void*> libPtrs_
private

Definition at line 53 of file dlLibraryTable.H.

◆ libNames_

DynamicList<fileName> libNames_
private

Definition at line 55 of file dlLibraryTable.H.


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