CACAO
Data Structures | Public Member Functions | Private Types | Private Attributes
NativeLibraries Class Reference

Table containing all loaded native libraries. More...

Data Structures

class  comparator
 

Public Member Functions

void add (NativeLibrary &library)
 Add the given native library to the native libraries table. More...
 
bool is_loaded (NativeLibrary &library)
 Checks if the given native library is loaded. More...
 
voidresolve_symbol (Utf8String symbolname, classloader_t *classloader)
 Try to find a symbol with the given name in all loaded native libraries defined by classloader. More...
 

Private Types

typedef std::multimap
< classloader_t
*, NativeLibrary
MAP
 

Private Attributes

Mutex _mutex
 Mutex to make the container thread-safe. More...
 
MAP _libraries
 

Detailed Description

Table containing all loaded native libraries.

Definition at line 85 of file native.hpp.

Member Typedef Documentation

typedef std::multimap<classloader_t*, NativeLibrary> NativeLibraries::MAP
private

Definition at line 88 of file native.hpp.

Member Function Documentation

void NativeLibraries::add ( NativeLibrary library)

Add the given native library to the native libraries table.

Parameters
libraryNative library to insert.

Definition at line 557 of file native.cpp.

bool NativeLibraries::is_loaded ( NativeLibrary library)

Checks if the given native library is loaded.

Parameters
libraryNative library.
Returns
true if loaded, false otherwise.

Definition at line 578 of file native.cpp.

void * NativeLibraries::resolve_symbol ( Utf8String  symbolname,
classloader_t classloader 
)

Try to find a symbol with the given name in all loaded native libraries defined by classloader.

Parameters
symbolnameName of the symbol to find.
classloaderDefining classloader.
Returns
Pointer to symbol if found, NULL otherwise.

Definition at line 606 of file native.cpp.

Field Documentation

MAP NativeLibraries::_libraries
private

Definition at line 89 of file native.hpp.

Mutex NativeLibraries::_mutex
private

Mutex to make the container thread-safe.

Definition at line 87 of file native.hpp.


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