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& operator=(::PackIdVersion&&);
41
42 MCAPI ~PackIdVersion();
43 // NOLINTEND
44
45public:
46 // static functions
47 // NOLINTBEGIN
48 MCAPI static ::PackIdVersion fromString(::std::string const& inputStr);
49 // NOLINTEND
50
51public:
52 // static variables
53 // NOLINTBEGIN
54 MCAPI static ::PackIdVersion& EMPTY();
55 // NOLINTEND
56
57public:
58 // constructor thunks
59 // NOLINTBEGIN
60 MCAPI void* $ctor(::PackIdVersion const&);
61
62 MCAPI void* $ctor(::std::string const& id, ::std::string const& version, ::PackType packType);
63
64 MCAPI void* $ctor(::mce::UUID const& id, ::SemVersion const& version, ::PackType packType);
65 // NOLINTEND
66
67public:
68 // destructor thunk
69 // NOLINTBEGIN
70 MCAPI void $dtor();
71 // NOLINTEND
72};
73
74namespace std {
75template <>
76struct hash<::PackIdVersion> {
77 size_t operator()(const ::PackIdVersion& packIdVersion) const {
78 return std::hash<std::string>()(packIdVersion.mId->asString() + packIdVersion.mVersion->asString());
79 }
80};
81} // namespace std
Definition SemVersion.h:16
Definition UUID.h:7
STL namespace.
Definition PackIdVersion.h:10