World.inl
Go to the documentation of this file.
1 namespace iv
2 {
3 
4 template< class Component >
6  cm( inst, this, "World" ),
7  inst( inst ),
8  _components()
9 {
10 }
11 
12 template< class Component >
14 {
15  return this->inst;
16 }
17 
18 template< class Component >
19 void World< Component >::Register( Component * component )
20 {
21  this->_components.insert( component );
22  this->Component_Registered( component );
23 }
24 
25 template< class Component >
26 void World< Component >::Unregister( Component * component )
27 {
28  this->_components.erase( component );
29  this->Component_Unregistered( component );
30 }
31 
32 template< class Component >
33 std::unordered_set< Component * > const & World< Component >::components()
34 {
35  return this->_components;
36 }
37 
38 }