23 #ifndef ASSET_ASSET_DIAGNOSTICS_H 24 #define ASSET_ASSET_DIAGNOSTICS_H 38 using std::placeholders::_1;
48 dump (PcAsset
const& aa)
51 cout <<
"Asset(NULL)\n";
54 _Fmt fmt(
"%s %|50T.| id=%s adr=%p smart-ptr=%p use-count=%u");
55 cout << fmt % aa % aa->getID() % (
void*)aa.get() % &aa % (aa.use_count() - 1) <<
"\n";
63 cout <<
"----all-registered-Assets----\n";
64 for (
auto const& pA : assets)
69 template<
class CHI,
class PAR>
73 return (child == parent)
74 || (0 < child->getParents().size()
75 && (parent == child->getParents()[0])
76 && (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.