33 #ifndef DART_COMMON_DETAIL_SHAREDLIBRARYMANAGER_HPP_
34 #define DART_COMMON_DETAIL_SHAREDLIBRARYMANAGER_HPP_
37 #include <unordered_map>
38 #include <boost/filesystem.hpp>
41 #include <boost/functional/hash.hpp>
45 template<>
struct hash<boost::filesystem::path>
47 size_t operator()(
const boost::filesystem::path& p)
const
49 return boost::filesystem::hash_value(p);
73 std::shared_ptr<SharedLibrary>
load(
const boost::filesystem::path& path);
81 boost::filesystem::path, std::weak_ptr<SharedLibrary>>
mLibraries;
Singleton template class.
Definition: Singleton.hpp:51
Definition: SharedLibraryManager.hpp:63
std::shared_ptr< SharedLibrary > load(const boost::filesystem::path &path)
Loads the shared library with the specified path.
Definition: SharedLibraryManager.cpp:43
std::unordered_map< boost::filesystem::path, std::weak_ptr< SharedLibrary > > mLibraries
Map from library path to the library instances.
Definition: SharedLibraryManager.hpp:81
Definition: BulletCollisionDetector.cpp:63
Definition: SharedLibraryManager.hpp:43
size_t operator()(const boost::filesystem::path &p) const
Definition: SharedLibraryManager.hpp:47