@tj.corona
It looks like resource classes only provide a virtual method to obtain a Resource::Index. What would you think about adding
class Foo : public smtk::resource::Resource
{
static constexpr Index TypeIndex =
std::type_index(typeid(Foo)).hash_code());
};
to resources so that we can do things like ask a resource manager for resources of a compile-time-known type?
smtk::resource::Manager::Ptr mgr;
auto rsrcs = mgr->resources().get<IndexTag>().equal_range(Foo::TypeIndex);
for (rsrc : rsrcs) { ... }