Divide Framework 0.1
A free and open-source 3D Framework under heavy development
Loading...
Searching...
No Matches
Divide::Resource Class Reference

#include <Resource.h>

+ Inheritance diagram for Divide::Resource:

Public Member Functions

 Resource (std::string_view resourceName, std::string_view typeName)
 
ResourceState getState () const noexcept
 
 PROPERTY_R (Str< 32 >, typeName)
 
 PROPERTY_R (Str< 256 >, resourceName)
 
- Public Member Functions inherited from Divide::GUIDWrapper
 GUIDWrapper () noexcept
 
 GUIDWrapper (const GUIDWrapper &old) noexcept
 
 GUIDWrapper (GUIDWrapper &&old) noexcept
 
virtual ~GUIDWrapper ()=default
 
FORCE_INLINE I64 getGUID () const noexcept
 
GUIDWrapperoperator= (const GUIDWrapper &old)=delete
 
GUIDWrapperoperator= (GUIDWrapper &&other)=delete
 

Protected Member Functions

virtual void setState (ResourceState currentState)
 

Protected Attributes

std::atomic< ResourceState_resourceState
 
- Protected Attributes inherited from Divide::GUIDWrapper
const I64 _guid
 

Additional Inherited Members

- Static Public Member Functions inherited from Divide::GUIDWrapper
static I64 generateGUID () noexcept
 

Detailed Description

Definition at line 67 of file Resource.h.

Constructor & Destructor Documentation

◆ Resource()

Divide::Resource::Resource ( std::string_view  resourceName,
std::string_view  typeName 
)
explicit

Definition at line 9 of file Resource.cpp.

Member Function Documentation

◆ getState()

ResourceState Divide::Resource::getState ( ) const
noexcept

Definition at line 17 of file Resource.cpp.

◆ PROPERTY_R() [1/2]

Divide::Resource::PROPERTY_R ( Str< 256 >  ,
resourceName   
)

◆ PROPERTY_R() [2/2]

Divide::Resource::PROPERTY_R ( Str< 32 >  ,
typeName   
)

◆ setState()

void Divide::Resource::setState ( ResourceState  currentState)
protectedvirtual

Reimplemented in Divide::CachedResource.

Definition at line 22 of file Resource.cpp.

Member Data Documentation

◆ _resourceState

std::atomic<ResourceState> Divide::Resource::_resourceState
protected

Definition at line 81 of file Resource.h.


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