58 g_types.push_back(type);
59 g_types_by_name[type->getName()] =
type;
73 return add(shared_from_this(), name);
85 return g_types_by_name[name].lock();
static TypePtr Instance()
static const TypePtr & add(const TypePtr &type, const std::string &alias=std::string())
std::vector< TypePtr > V_Type
TypePtr type(const std::string &name)
std::map< std::string, TypeWPtr > M_Type
static M_Type g_types_by_name
StaticInitializer(const TypePtr &type)
TypePtr alias(const std::string &name) const
boost::shared_ptr< Type const > TypePtr