Namespaces | Functions
class_loader_core.cpp File Reference
#include "class_loader/class_loader_core.h"
#include "class_loader/class_loader.h"
#include <cassert>
Include dependency graph for class_loader_core.cpp:

Go to the source code of this file.

Namespaces

namespace  class_loader
namespace  class_loader::class_loader_private

Functions

void class_loader::class_loader_private::addClassLoaderOwnerForAllExistingMetaObjectsForLibrary (const std::string &library_path, ClassLoader *loader)
MetaObjectVector class_loader::class_loader_private::allMetaObjects (const FactoryMap &factories)
MetaObjectVector class_loader::class_loader_private::allMetaObjects ()
MetaObjectVector class_loader::class_loader_private::allMetaObjectsForClassLoader (const ClassLoader *owner)
MetaObjectVector class_loader::class_loader_private::allMetaObjectsForLibrary (const std::string &library_path)
MetaObjectVector class_loader::class_loader_private::allMetaObjectsForLibraryOwnedBy (const std::string &library_path, const ClassLoader *owner)
bool class_loader::class_loader_private::areThereAnyExistingMetaObjectsForLibrary (const std::string &library_path)
void class_loader::class_loader_private::destroyMetaObjectsForLibrary (const std::string &library_path, FactoryMap &factories, const ClassLoader *loader)
void class_loader::class_loader_private::destroyMetaObjectsForLibrary (const std::string &library_path, const ClassLoader *loader)
MetaObjectVector class_loader::class_loader_private::filterAllMetaObjectsAssociatedWithLibrary (const MetaObjectVector &to_filter, const std::string &library_path)
MetaObjectVector class_loader::class_loader_private::filterAllMetaObjectsOwnedBy (const MetaObjectVector &to_filter, const ClassLoader *owner)
LibraryVector::iterator class_loader::class_loader_private::findLoadedLibrary (const std::string &library_path)
std::vector< std::string > class_loader::class_loader_private::getAllLibrariesUsedByClassLoader (const ClassLoader *loader)
 This function returns the names of all libraries in use by a given class loader.
ClassLoader * class_loader::class_loader_private::getCurrentlyActiveClassLoader ()
 Gets the ClassLoader currently in scope which used when a library is being loaded.
ClassLoader *& class_loader::class_loader_private::getCurrentlyActiveClassLoaderReference ()
std::string class_loader::class_loader_private::getCurrentlyLoadingLibraryName ()
 When a library is being loaded, in order for factories to know which library they are being associated with, they use this function to query which library is being loaded.
std::string & class_loader::class_loader_private::getCurrentlyLoadingLibraryNameReference ()
FactoryMap & class_loader::class_loader_private::getFactoryMapForBaseClass (const std::string &typeid_base_class_name)
 This function extracts a reference to the FactoryMap for appropriate base class out of the global plugin base to factory map. This function should be used by functions in this namespace that need to access the various factories so as to make sure the right key is generated to index into the global map.
BaseToFactoryMapMap & class_loader::class_loader_private::getGlobalPluginBaseToFactoryMapMap ()
 Gets a handle to a global data structure that holds a map of base class names (Base class describes plugin interface) to a FactoryMap which holds the factories for the various different concrete classes that can be instantiated. Note that the Base class is NOT THE LITERAL CLASSNAME, but rather the result of typeid(Base).name() which sometimes is the literal class name (as on Windows) but is often in mangled form (as on Linux).
LibraryVector & class_loader::class_loader_private::getLoadedLibraryVector ()
 Gets a handle to a list of open libraries in the form of LibraryPairs which encode the library path+name and the handle to the underlying Poco::SharedLibrary.
boost::recursive_mutex & class_loader::class_loader_private::getLoadedLibraryVectorMutex ()
 To provide thread safety, all exposed plugin functions can only be run serially by multiple threads. This is implemented by using critical sections enforced by a single mutex which is locked and released with the following two functions.
MetaObjectVector & class_loader::class_loader_private::getMetaObjectGraveyard ()
boost::recursive_mutex & class_loader::class_loader_private::getPluginBaseToFactoryMapMapMutex ()
bool class_loader::class_loader_private::hasANonPurePluginLibraryBeenOpened ()
 Indicates if a library containing more than just plugins has been opened by the running process.
void class_loader::class_loader_private::hasANonPurePluginLibraryBeenOpened (bool hasIt)
 Sets a flag indicating if a library containing more than just plugins has been opened by the running process.
bool & class_loader::class_loader_private::hasANonPurePluginLibraryBeenOpenedReference ()
void class_loader::class_loader_private::insertMetaObjectIntoGraveyard (AbstractMetaObjectBase *meta_obj)
bool class_loader::class_loader_private::isLibraryLoaded (const std::string &library_path, ClassLoader *loader)
 Indicates if passed library loaded within scope of a ClassLoader. The library maybe loaded in memory, but to the class loader it may not be.
bool class_loader::class_loader_private::isLibraryLoadedByAnybody (const std::string &library_path)
 Indicates if passed library has been loaded by ANY ClassLoader.
void class_loader::class_loader_private::loadLibrary (const std::string &library_path, ClassLoader *loader)
 Loads a library into memory if it has not already been done so. Attempting to load an already loaded library has no effect.
void class_loader::class_loader_private::printDebugInfoToScreen ()
void class_loader::class_loader_private::purgeGraveyardOfMetaobjects (const std::string &library_path, ClassLoader *loader, bool delete_objs)
void class_loader::class_loader_private::revivePreviouslyCreateMetaobjectsFromGraveyard (const std::string &library_path, ClassLoader *loader)
void class_loader::class_loader_private::setCurrentlyActiveClassLoader (ClassLoader *loader)
 Sets the ClassLoader currently in scope which used when a library is being loaded.
void class_loader::class_loader_private::setCurrentlyLoadingLibraryName (const std::string &library_name)
 When a library is being loaded, in order for factories to know which library they are being associated with, this function is called to set the name of the library currently being loaded.
void class_loader::class_loader_private::unloadLibrary (const std::string &library_path, ClassLoader *loader)
 Unloads a library if it loaded in memory and cleans up its corresponding class factories. If it is not loaded, the function has no effect.


class_loader
Author(s): Mirza Shah
autogenerated on Sun Oct 5 2014 22:50:57