Finality Engine
Toggle main menu visibility
Loading...
Searching...
No Matches
UUID.h
Go to the documentation of this file.
1
6
#pragma once
7
#include <cstdint>
8
#include <xhash>
9
10
#include <
Core/Core.h
>
11
12
namespace
FINALITY
13
{
15
class
FAPI
UUID
16
{
17
public
:
18
UUID
();
19
UUID
(uint64_t uuid);
20
UUID
(
const
UUID
&) =
default
;
21
22
operator
uint64_t()
const
{
return
m_UUID; }
23
24
private
:
25
uint64_t m_UUID;
26
};
27
}
28
29
namespace
std
{
30
template
<
typename
T>
struct
hash
;
31
template
<>
32
struct
hash
<
FINALITY
::UUID>
33
{
34
std::size_t
operator()
(
const
FINALITY::UUID
& uuid)
const
35
{
36
return
std::hash<uint64_t>
()((uint64_t)uuid);
37
}
38
};
39
}
Core.h
FAPI
#define FAPI
Definition
Core.h:22
FINALITY::UUID
Definition
UUID.h:16
FINALITY::UUID::UUID
UUID(uint64_t uuid)
FINALITY::UUID::UUID
UUID()
FINALITY::UUID::UUID
UUID(const UUID &)=default
FINALITY
Definition
Asset.h:12
std
Definition
UUID.h:29
std::hash< FINALITY::UUID >::operator()
std::size_t operator()(const FINALITY::UUID &uuid) const
Definition
UUID.h:34
std::hash
Definition
UUID.h:30
FinalityEngine
src
Utils
UUID.h
Generated by
1.18.0