LeviLamina
Loading...
Searching...
No Matches
PackIdVersion.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/resource/PackType.h"
7#include "mc/deps/core/sem_ver/SemVersion.h"
8#include "mc/platform/UUID.h"
9
11public:
12 // member variables
13 // NOLINTBEGIN
14 ::ll::TypedStorage<8, 16, ::mce::UUID> mId;
15 ::ll::TypedStorage<8, 24, ::SemVersion> mVersion;
16 ::ll::TypedStorage<1, 1, ::PackType> mPackType;
17 // NOLINTEND
18
19public:
20 // prevent constructor by default
21 PackIdVersion& operator=(PackIdVersion const&);
23
24public:
25 bool operator==(PackIdVersion const& rhs) const { return *mId == *rhs.mId && *mVersion == *rhs.mVersion; }
26
27public:
28 // member functions
29 // NOLINTBEGIN
30 MCAPI PackIdVersion(::PackIdVersion const&);
31
32 MCAPI PackIdVersion(::std::string const& id, ::std::string const& version, ::PackType packType);
33
34 MCAPI PackIdVersion(::mce::UUID const& id, ::SemVersion const& version, ::PackType packType);
35
36 MCAPI ::std::string asString() const;
37
38 MCAPI bool operator<(::PackIdVersion const& rhs) const;
39
40 MCAPI ~PackIdVersion();
41 // NOLINTEND
42
43public:
44 // static functions
45 // NOLINTBEGIN
46 MCAPI static ::PackIdVersion fromString(::std::string const& inputStr);
47 // NOLINTEND
48
49public:
50 // static variables
51 // NOLINTBEGIN
52 MCAPI static ::PackIdVersion& EMPTY();
53 // NOLINTEND
54
55public:
56 // constructor thunks
57 // NOLINTBEGIN
58 MCAPI void* $ctor(::PackIdVersion const&);
59
60 MCAPI void* $ctor(::std::string const& id, ::std::string const& version, ::PackType packType);
61
62 MCAPI void* $ctor(::mce::UUID const& id, ::SemVersion const& version, ::PackType packType);
63 // NOLINTEND
64
65public:
66 // destructor thunk
67 // NOLINTBEGIN
68 MCAPI void $dtor();
69 // NOLINTEND
70};
71
72namespace std {
73template <>
74struct hash<::PackIdVersion> {
75 size_t operator()(const ::PackIdVersion& packIdVersion) const {
76 return std::hash<std::string>()(packIdVersion.mId->asString() + packIdVersion.mVersion->asString());
77 }
78};
79} // namespace std
Definition SemVersion.h:16
Definition UUID.h:7
STL namespace.
Definition PackIdVersion.h:10