Open 3D Engine AzToolsFramework API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
AzToolsFramework::PreemptiveUndoCache Class Reference

Inherits AzToolsFramework::UndoSystem::UndoCacheInterface.

Public Types

typedef AZStd::vector< AZ::u8 > CacheLineType
 

Public Member Functions

 AZ_CLASS_ALLOCATOR (PreemptiveUndoCache, AZ::SystemAllocator)
 
void RegisterToUndoCacheInterface ()
 
void UpdateCache (const AZ::EntityId &entityId) override
 Store the new entity state or replace the old state.
 
void PurgeCache (const AZ::EntityId &entityId) override
 Remove the cache line for the entity, if there is one.
 
void Clear () override
 Clear the entire cache.
 
void Validate (const AZ::EntityId &entityId) override
 Verify if any changes to the entity was not correctly notified.
 
const CacheLineType & Retrieve (const AZ::EntityId &entityId)
 

Static Public Member Functions

static PreemptiveUndoCacheGet ()
 

Protected Types

typedef AZStd::unordered_map< AZ::EntityId, CacheLineType > EntityStateMap
 

Protected Attributes

EntityStateMap m_EntityStateMap
 
CacheLineType m_Empty
 

Member Function Documentation

◆ Clear()

void AzToolsFramework::PreemptiveUndoCache::Clear ( )
overridevirtual

Clear the entire cache.

Implements AzToolsFramework::UndoSystem::UndoCacheInterface.

◆ PurgeCache()

void AzToolsFramework::PreemptiveUndoCache::PurgeCache ( const AZ::EntityId &  entityId)
overridevirtual

Remove the cache line for the entity, if there is one.

Implements AzToolsFramework::UndoSystem::UndoCacheInterface.

◆ UpdateCache()

void AzToolsFramework::PreemptiveUndoCache::UpdateCache ( const AZ::EntityId &  entityId)
overridevirtual

Store the new entity state or replace the old state.

Implements AzToolsFramework::UndoSystem::UndoCacheInterface.

◆ Validate()

void AzToolsFramework::PreemptiveUndoCache::Validate ( const AZ::EntityId &  entityId)
overridevirtual

Verify if any changes to the entity was not correctly notified.

Implements AzToolsFramework::UndoSystem::UndoCacheInterface.


The documentation for this class was generated from the following file: