viotecs 1.1.0
Loading...
Searching...
No Matches
types.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: MIT
2// Author: Giovanni Santini
3// Mail: giovanni.santini@proton.me
4// Github: @San7o
5
6#pragma once
7
8#include <memory>
9#include <set>
10#include <unordered_map>
11#include <vector>
12
13namespace viotecs
14{
15
21class None
22{
23};
24
25template <typename T> using SPtr = std::shared_ptr<T>;
26
27template <typename T> using SetPtr = std::unique_ptr<std::set<T>>;
28
29template <typename T, typename G> using UMap = std::unordered_map<T, SPtr<G>>;
30
31template <typename T, typename G>
32using UMapVec = std::unordered_map<T, std::vector<SPtr<G>>>;
33
34template <typename T, typename G> using UMapPtr = std::unique_ptr<UMap<T, G>>;
35
36template <typename T, typename G>
37using UMapVecPtr = std::unique_ptr<UMapVec<T, G>>;
38
39template <typename T> using VecSPtr = std::shared_ptr<std::vector<SPtr<T>>>;
40
41typedef int EntityId;
42
43} // namespace viotecs
None type.
Definition types.hpp:22
std::shared_ptr< std::vector< SPtr< T > > > VecSPtr
Definition types.hpp:39
std::unique_ptr< UMap< T, G > > UMapPtr
Definition types.hpp:34
int EntityId
Definition types.hpp:41
std::unordered_map< T, SPtr< G > > UMap
Definition types.hpp:29
std::unique_ptr< std::set< T > > SetPtr
Definition types.hpp:27
std::unordered_map< T, std::vector< SPtr< G > > > UMapVec
Definition types.hpp:32
std::shared_ptr< T > SPtr
Definition types.hpp:25
std::unique_ptr< UMapVec< T, G > > UMapVecPtr
Definition types.hpp:37