Toggle navigation
ivorium
iv_components
Example project
GitHub
Main Page
Modules
Classes
Files
File List
File Members
ivorium_core
Instancing
Instance.inl
Go to the documentation of this file.
1
namespace
iv
2
{
3
4
template
<
class
TypedSystem >
5
TypedSystem *
Instance::getSystem
()
const
6
{
7
return
this->
getSystemContainer
()->
getSystem
< TypedSystem >();
8
}
9
10
template
<
class
TypedClient >
11
void
Instance::Debug_ForeachClient
( std::function<
void
( TypedClient * ) >
const
& lambda )
12
{
13
for
(
ClientMarker
const
* cm : this->_clients )
14
if
( cm->client_type() ==
typeid
( TypedClient ) )
15
lambda( cm->client< TypedClient >() );
16
}
17
18
}