Chicane

Instance

Header
Chicane/Renderer/Manager/Instance.hpp
Namespace
Chicane::Manager::Instance

Constructors

ModifierNameDescription
Instance<I, D>()

Destructors

ModifierNameDescription
virtual~Instance()

Functions

AccessModifierTypeNameDescription
protectedvirtualvoidonLoad(const std::string& inId, const I& inInstance)
protectedvirtualvoidonAllocation(const std::string& inId, const D& inData)
protectedvirtualvoidonDeallocation(const std::string& inId)
protectedvirtualvoidonActivation(const std::string& inId)
protectedvirtualvoidonDeactivation(const std::string& inId)
publicboolisEmpty() const
publicboolisLoaded(const std::string& inId) const
publicboolisAllocated(const std::string& inId) const
publicboolisActive(const std::string& inId) const
publicboolisUsing(const std::string& inId) const
publicconst std::vector<std::string>&getActiveIds() const
publicconst std::vector<std::string>&getUsedIds() const
publicstd::uint32_tgetActiveCount() const
publicstd::uint32_tgetUsedCount() const
publicstd::uint32_tgetUseCount(const std::string& inId) const
publicvoidload(const std::string& inId, const I& inInstance)
publicvoidallocate(const std::string& inId, const D& inData)
publicvoiddeallocate(const std::string& inId)
publicvoidactivate(const std::string& inId)
publicvoiddeactivate(const std::string& inId)
publicSubscription<EventType>*watchChanges(std::function<void (EventType)> inNext, std::function<void (const std::string&)> inError, std::function<void ()> inComplete)

Properties

AccessModifierTypeNameDescription
protectedstd::unordered_map<std::string, I>m_instances
protectedstd::unordered_map<std::string, D>m_datum
protectedstd::vector<std::string>m_activeIds
protectedstd::vector<std::string>m_usedIds
protectedstd::unique_ptr<Observable<EventType>>m_observable