28 std::lock_guard<std::mutex> lg(
mutex_);
30 << name <<
" registered");
36 std::lock_guard<std::mutex> lg(
mutex_);
43 std::lock_guard<std::mutex> lg(
mutex_);
44 const auto itr =
objects_.find(name);
45 return itr !=
objects_.end() && type == itr->second;
50 std::lock_guard<std::mutex> lg(
mutex_);
std::map< std::string, ObjectType > objects_
This is the header file for a generated source file, GitSHA1.cpp.
bool has_object(const std::string &name) const
Check whether or not an object with name name is declared in the registry, no matter its type...
#define ASSERT_LOG(cond, msg)
void register_object(const std::string &name, const ObjectType &type)
Declare an object on the registry.
void clear()
Clear all informations.