Program Listing for File ImplDatabase.h

Program Listing for File ImplDatabase.h#

Return to documentation for file (include/Karana/ProxyScene/ImplDatabase.h)

/*
*Copyright(c)2024-2026KaranaDynamicsPtyLtd.Allrightsreserved.
*
*NOTICETOUSER:
*
*Thissourcecodeand/ordocumentation(the"LicensedMaterials")is
*theconfidentialandproprietaryinformationofKaranaDynamicsInc.
*UseoftheseLicensedMaterialsisgovernedbythetermsandconditions
*ofaseparatesoftwarelicenseagreementbetweenKaranaDynamicsandthe
*Licensee("LicenseAgreement").Unlessexpresslypermittedunderthat
*agreement,anyreproduction,modification,distribution,ordisclosure
*oftheLicensedMaterials,inwholeorinpart,toanythirdparty
*withoutthepriorwrittenconsentofKaranaDynamicsisstrictlyprohibited.
*
*THELICENSEDMATERIALSAREPROVIDED"ASIS"WITHOUTWARRANTYOFANYKIND.
*KARANADYNAMICSDISCLAIMSALLWARRANTIES,EXPRESSORIMPLIED,INCLUDING
*BUTNOTLIMITEDTOWARRANTIESOFMERCHANTABILITY,NON-INFRINGEMENT,AND
*FITNESSFORAPARTICULARPURPOSE.
*
*INNOEVENTSHALLKARANADYNAMICSBELIABLEFORANYDAMAGESWHATSOEVER,
*INCLUDINGBUTNOTLIMITEDTOLOSSOFPROFITS,DATA,ORUSE,EVENIF
*ADVISEDOFTHEPOSSIBILITYOFSUCHDAMAGES,WHETHERINCONTRACT,TORT,
*OROTHERWISEARISINGOUTOFORINCONNECTIONWITHTHELICENSEDMATERIALS.
*
*U.S.GovernmentEndUsers:TheLicensedMaterialsarea"commercialitem"
*asdefinedat48C.F.R.2.101,andareprovidedtotheU.S.Government
*onlyasacommercialenditemunderthetermsofthislicense.
*
*AnyuseoftheLicensedMaterialsinindividualorcommercialsoftwaremust
*include,intheuserdocumentationandinternalsourcecodecomments,
*thisNotice,Disclaimer,andU.S.GovernmentUseProvision.
*/


#pragmaonce
#include"Karana/KCore/SharedPointer.h"
#include"Karana/Scene/SceneNode.h"
#include<unordered_map>

namespaceKarana::Scene{
classProxySceneNode;

classImplDatabase{
public:
ImplDatabase();
virtual~ImplDatabase();

constKarana::Core::ks_ptr<ProxySceneNode>&lookupProxy(constSceneNode&impl)const;

voidregisterProxyImpl(constKarana::Core::ks_ptr<ProxySceneNode>&proxy,
constKarana::Core::ks_ptr<SceneNode>&impl);

voidunregisterProxyImpl(constProxySceneNode&proxy,constSceneNode&impl);

private:
std::unordered_map<Karana::Core::id_t,Karana::Core::ks_ptr<ProxySceneNode>>
_impl_proxy_map;
};
}//namespaceKarana::Scene