Cogs.Core
Public Member Functions | Public Attributes | List of all members
Cogs::Core::ResourceManager< ResourceType, LoadInfoType >::SwapOperation Struct Reference

Defines a swap operation replacing the contents of a resource. More...

#include <ResourceManager.h>

Public Member Functions

 SwapOperation (ResourceHandle destinationHandle, ResourceHandle source)
 
 SwapOperation (const SwapOperation &other)=delete
 
 SwapOperation (SwapOperation &&other)=default
 

Public Attributes

ResourceHandle destinationHandle
 Handle to the destination resource to replace contents of.
 
ResourceHandle source
 Source resource to move data from.
 

Detailed Description

template<typename ResourceType, typename LoadInfoType>
struct Cogs::Core::ResourceManager< ResourceType, LoadInfoType >::SwapOperation

Defines a swap operation replacing the contents of a resource.

Definition at line 85 of file ResourceManager.h.

Constructor & Destructor Documentation

◆ SwapOperation()

template<typename ResourceType , typename LoadInfoType >
Cogs::Core::ResourceManager< ResourceType, LoadInfoType >::SwapOperation::SwapOperation ( ResourceHandle  destinationHandle,
ResourceHandle  source 
)
inline

Definition at line 88 of file ResourceManager.h.

Member Data Documentation

◆ destinationHandle

template<typename ResourceType , typename LoadInfoType >
ResourceHandle Cogs::Core::ResourceManager< ResourceType, LoadInfoType >::SwapOperation::destinationHandle

Handle to the destination resource to replace contents of.

Definition at line 93 of file ResourceManager.h.

◆ source

template<typename ResourceType , typename LoadInfoType >
ResourceHandle Cogs::Core::ResourceManager< ResourceType, LoadInfoType >::SwapOperation::source

Source resource to move data from.

Definition at line 96 of file ResourceManager.h.


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