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> 43 #include "dart/common/Deprecated.hpp" 44 #include "dart/common/Singleton.hpp" 49 struct 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);
93 friend class Singleton<SharedLibraryManager>;
97 std::unordered_map<boost::filesystem::path, std::weak_ptr<SharedLibrary>>
102 std::unordered_map<std::string, std::weak_ptr<SharedLibrary>>
110 #endif // DART_COMMON_DETAIL_SHAREDLIBRARYMANAGER_HPP_ Definition: SharedLibraryManager.hpp:46
std::unordered_map< std::string, std::weak_ptr< SharedLibrary > > mSharedLibraries
Map from library path to the library instances.
Definition: SharedLibraryManager.hpp:103
Definition: Aspect.cpp:40
Singleton template class.
Definition: Singleton.hpp:50
Definition: SharedLibraryManager.hpp:66
std::unordered_map< boost::filesystem::path, std::weak_ptr< SharedLibrary > > mLibraries
Map from library path to the library instances.
Definition: SharedLibraryManager.hpp:98