32 #ifndef ASSET_ASSET_DIAGNOSTICS_H 33 #define ASSET_ASSET_DIAGNOSTICS_H 47 using std::placeholders::_1;
57 dump (PcAsset
const& aa)
60 cout <<
"Asset(NULL)\n";
63 _Fmt fmt(
"%s %|50T.| id=%s adr=%p smart-ptr=%p use-count=%u");
64 cout << fmt % aa % aa->getID() % (
void*)aa.get() % &aa % (aa.use_count() - 1) <<
"\n";
72 cout <<
"----all-registered-Assets----\n";
73 for (
auto const& pA : assets)
78 template<
class CHI,
class PAR>
82 return (child == parent)
83 || (0 < child->getParents().size()
84 && (parent == child->getParents()[0])
85 && (contains (parent->getDependant(), child)))
Steam-Layer Interface: Asset Lookup and Organisation.
Steam-Layer implementation namespace root.
A front-end for using printf-style formatting.
static lib::Depend< AssetManager > instance
get at the system-wide asset manager instance.
Tiny helper functions and shortcuts to be used everywhere Consider this header to be effectively incl...
void for_each(CON const &elements, FUN function, P1 &&bind1, ARGS &&...args)
Accept binding for arbitrary function arguments.
Customised refcounting smart pointer template, built upon std::shared_ptr, but forwarding type relati...
The asset subsystem of the Steam-Layer.
Perform operations "for each element" of a collection.
bool contains(SEQ const &cont, typename SEQ::const_reference val)
shortcut for brute-force containment test in any sequential container
std::string dump(std::tuple< TYPES... > const &tuple)
convenience function to dump a given tuple's contents.