Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
UnorderedSet.h
Go to the documentation of this file.
1
// Jolt Physics Library (https://github.com/jrouwe/JoltPhysics)
2
// SPDX-FileCopyrightText: 2024 Jorrit Rouwe
3
// SPDX-License-Identifier: MIT
4
5
#pragma once
6
7
#include <
Jolt/Core/HashTable.h
>
8
#include <
Jolt/Core/UnorderedSetFwd.h
>
9
10
JPH_NAMESPACE_BEGIN
11
13
template
<
class
Key>
14
class
UnorderedSetDetail
15
{
16
public
:
18
static
const
Key &
sGetKey
(
const
Key &inKey)
19
{
20
return
inKey;
21
}
22
};
23
28
template
<
class
Key,
class
Hash,
class
KeyEqual>
29
class
UnorderedSet
:
public
HashTable
<Key, Key, UnorderedSetDetail<Key>, Hash, KeyEqual>
30
{
31
};
32
33
JPH_NAMESPACE_END
JPH_NAMESPACE_END
#define JPH_NAMESPACE_END
Definition
Core.h:469
JPH_NAMESPACE_BEGIN
#define JPH_NAMESPACE_BEGIN
Definition
Core.h:463
HashTable.h
UnorderedSetFwd.h
HashTable< Key, Key, UnorderedSetDetail< Key >, Hash, KeyEqual >::HashTable
HashTable()=default
UnorderedSetDetail
Internal helper class to provide context for UnorderedSet.
Definition
UnorderedSet.h:15
UnorderedSetDetail::sGetKey
static const Key & sGetKey(const Key &inKey)
The key is the key, just return it.
Definition
UnorderedSet.h:18
UnorderedSet
Definition
UnorderedSet.h:30
Jolt
Core
UnorderedSet.h
Generated by
1.15.0