Class ClientRegistry#
Defined in File ClientRegistry.h
Class Documentation#
-
class ClientRegistry#
Container to track information about registered client Scenes.
Public Functions
-
ClientRegistry(const Karana::Core::ks_ptr<Karana::Frame::Frame> &root_frame)#
ClientRegistry constructor.
- Parameters:
root_frame – - The default Frame to attach nodes to.
-
void insert(ClientSceneData &&client_data)#
Add a new ClientSceneData to the registry.
- Parameters:
client_data – - The new ClientSceneData
-
void erase(const Scene &scene)#
Remove a client scene from teh registry.
- Parameters:
scene – - The client Scene to remove
-
void erase(const Karana::Core::id_t &id)#
Remove a client scene from teh registry by id.
- Parameters:
id – - The id of the client Scene to remove
-
void clear()#
Remove all client scenes from the registry.
-
bool contains(const Scene &scene) const#
Check whether a client belongs to the registry.
- Parameters:
scene – - The client Scene to check for
- Returns:
Whether the client belongs to the registry
-
bool contains(const Karana::Core::id_t &id) const#
Check whether a client belongs to the registry by id.
- Parameters:
id – - The id of the client Scene to check for
- Returns:
Whether the client belongs to the registry
-
const ClientSceneData &at(const Scene &scene) const#
Lookup the ClientSceneData for a client Scene.
- Parameters:
scene – - The client Scene to get data for
- Returns:
ClientSceneData for the given client Scene.
-
const ClientSceneData &at(const Karana::Core::id_t &id) const#
Lookup the ClientSceneData for a client Scene by id.
- Parameters:
id – - The id of the client Scene to get data for
- Returns:
ClientSceneData for the client Scene with the given id.
-
ClientRegistry(const Karana::Core::ks_ptr<Karana::Frame::Frame> &root_frame)#