55 template <
class Base,
class... Args>
63 const auto it = registry.find(s);
64 if(it != registry.end())
66 return it->second(std::forward<T>(
args)...);
113 template <
class Base,
class... Args>
static refcount< Base > Create(const std::string &s, T &&... args)
#define GET_CLASS(obj)
Macro returning the actual type of an object.
static bool RegisterType()
redefinition of map to manage ordered/unordered structures
Auxiliary methods for manipulating string.
absl::flat_hash_map< T, U, Hash, Eq, Alloc > CustomUnorderedMap
Template definition of refcount.
Template borrowed from the ANTLR library by Terence Parr (http://www.jGuru.com - Software rights: htt...