CommandCacheData Class Reference

#include <commandbase.h>

Public Member Functions

 CommandCacheData ()=default
 
 ~CommandCacheData ()
 
 CommandCacheData (CommandCacheData &&src)
 
Result< void > CopyFrom (const CommandCacheData &src)
 
Result< CommandCacheRef > Validate (CommandDataRef &data, const Id &commandId, const Id &cacheId, Bool &valid)
 
Result< void > AddValidation (Delegate< Result< Bool >(const Id &commandId)> &&validation)
 
Result< void > CreateInitCache (CommandDataRef &data, CommandCacheRef &cache, const Id &cacheId)
 

Public Attributes

CommandCacheMap _map
 

Private Attributes

Delegate< Result< Bool >const Id &commandId)> _validateFn
 

Constructor & Destructor Documentation

◆ CommandCacheData() [1/2]

CommandCacheData ( )
default

◆ ~CommandCacheData()

◆ CommandCacheData() [2/2]

Member Function Documentation

◆ CopyFrom()

Result<void> CopyFrom ( const CommandCacheData src)

◆ Validate()

Result<CommandCacheRef> Validate ( CommandDataRef &  data,
const Id commandId,
const Id cacheId,
Bool valid 
)

◆ AddValidation()

Result<void> AddValidation ( Delegate< Result< Bool >(const Id &commandId)> &&  validation)

◆ CreateInitCache()

Result<void> CreateInitCache ( CommandDataRef &  data,
CommandCacheRef &  cache,
const Id cacheId 
)

Member Data Documentation

◆ _map

◆ _validateFn

Delegate<Result<Bool>const Id& commandId)> _validateFn
private