33#ifndef DART_COMMON_DETAIL_SHAREDLIBRARYMANAGER_HPP_
34#define DART_COMMON_DETAIL_SHAREDLIBRARYMANAGER_HPP_
38#include <unordered_map>
40#include <boost/filesystem.hpp>
41#include <boost/functional/hash.hpp>
49struct hash<boost::filesystem::path>
51 size_t operator()(
const boost::filesystem::path& p)
const
53 return boost::filesystem::hash_value(p);
80 std::shared_ptr<SharedLibrary>
load(
const boost::filesystem::path& path);
90 std::shared_ptr<SharedLibrary>
load(
const std::string& path);
97 std::unordered_map<boost::filesystem::path, std::weak_ptr<SharedLibrary>>
102 std::unordered_map<std::string, std::weak_ptr<SharedLibrary>>
#define DART_DEPRECATED(version)
Definition Deprecated.hpp:51
Singleton template class.
Definition Singleton.hpp:51
Definition SharedLibraryManager.hpp:67
std::shared_ptr< SharedLibrary > load(const boost::filesystem::path &path)
Loads the shared library with the specified path.
Definition SharedLibraryManager.cpp:45
std::unordered_map< std::string, std::weak_ptr< SharedLibrary > > mSharedLibraries
Map from library path to the library instances.
Definition SharedLibraryManager.hpp:103
std::unordered_map< boost::filesystem::path, std::weak_ptr< SharedLibrary > > mLibraries
Map from library path to the library instances.
Definition SharedLibraryManager.hpp:98
Definition BulletCollisionDetector.cpp:65
Definition SharedLibraryManager.hpp:46
size_t operator()(const boost::filesystem::path &p) const
Definition SharedLibraryManager.hpp:51