FreeFOAM The Cross-Platform CFD Toolkit
dlLibraryTable Class Reference

A table of dynamically loaded libraries. More...

#include <OpenFOAM/dlLibraryTable.H>


Detailed Description

A table of dynamically loaded libraries.

Source files

Definition at line 51 of file dlLibraryTable.H.

+ Inheritance diagram for dlLibraryTable:
+ Collaboration diagram for dlLibraryTable:

List of all members.

Classes

class  readDlLibrary
 Class whose construction causes the reading of dynamic libraries. More...

Public Member Functions

 dlLibraryTable ()
 Construct null.
 ~dlLibraryTable ()
- Public Member Functions inherited from HashTable< fileName, void *, Hash< void * > >
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.
OstreamprintInfo (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.
fileNameoperator[] (const void *&)
 Find and return an hashedEntry.
const fileNameoperator[] (const void *&) const
 Find and return an hashedEntry.
fileNameoperator() (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

- Public Types inherited from HashTable< fileName, void *, Hash< void * > >
typedef fileName value_type
 Type of values the HashTable contains.
typedef fileNamereference
 Type that can be used for storing into HashTable::value_type.
typedef const fileNameconst_reference
 Type that can be used for storing into constant.
typedef label size_type
 The type that can represent the size of a HashTable.

Constructor & Destructor Documentation

Construct null.

Definition at line 38 of file dlLibraryTable.C.

Definition at line 56 of file dlLibraryTable.C.


Member Function Documentation

bool open ( const dictionary dict,
const word libsEntry 
)
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().

bool open ( const dictionary dict,
const word libsEntry,
const TablePtr &  tablePtr 
)
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.


Member Data Documentation

Foam::dlLibraryTable loadedLibraries
static

Static data someStaticData.

Definition at line 69 of file dlLibraryTable.H.


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