Lugdunum  0.1.0
Public Member Functions | Public Attributes | List of all members
lug::Graphics::Resource::Handle Struct Reference

Handle of the resource. It contains informations such as the type and the index in the ResourceManager's internal vector, i.e. the index of the Resource in this vector. More...

#include <Resource.hpp>

Collaboration diagram for lug::Graphics::Resource::Handle:
[legend]

Public Member Functions

 operator uint32_t ()
 
bool operator== (const Handle &other) const
 

Public Attributes

union {
   struct {
      uint32_t   type: 8
 Type of the ressource. More...
 
      uint32_t   index: 24
 Index of the Resource in the ResourceManager's internal storage. More...
 
   } 
 
   uint32_t   value
 Access of the raw value of the above bytefield. More...
 
}; 
 

Detailed Description

Handle of the resource. It contains informations such as the type and the index in the ResourceManager's internal vector, i.e. the index of the Resource in this vector.

Definition at line 41 of file Resource.hpp.

Member Function Documentation

◆ operator uint32_t()

lug::Graphics::Resource::Handle::operator uint32_t ( )
inlineexplicit

Definition at line 51 of file Resource.hpp.

◆ operator==()

bool lug::Graphics::Resource::Handle::operator== ( const Handle other) const
inline

Definition at line 55 of file Resource.hpp.

Member Data Documentation

◆ type

uint32_t lug::Graphics::Resource::Handle::type

Type of the ressource.

Definition at line 44 of file Resource.hpp.

◆ index

uint32_t lug::Graphics::Resource::Handle::index

Index of the Resource in the ResourceManager's internal storage.

Definition at line 45 of file Resource.hpp.

◆ value

uint32_t lug::Graphics::Resource::Handle::value

Access of the raw value of the above bytefield.

Definition at line 48 of file Resource.hpp.

◆ @5

union { ... }

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