plugify
1.0.0.0
include
plugify
any.hpp
1
#pragma once
2
3
#include <plugify/numerics.hpp>
4
#include <plugify/string.hpp>
5
#include <plugify/variant.hpp>
6
#include <plugify/vector.hpp>
7
8
namespace
plg {
9
struct
invalid
{};
10
struct
none
{};
11
union
function
{
void
* ptr; };
12
21
using
any
=
variant
<
22
invalid
,
23
24
none
,
25
bool,
26
char,
27
char16_t,
28
int8_t,
29
int16_t,
30
int32_t,
31
int64_t,
32
uint8_t,
33
uint16_t,
34
uint32_t,
35
uint64_t,
36
void
*,
37
float,
38
double,
39
function
,
40
string,
41
variant<none>
,
42
vector<bool>
,
43
vector<char>
,
44
vector<char16_t>
,
45
vector<int8_t>
,
46
vector<int16_t>
,
47
vector<int32_t>
,
48
vector<int64_t>
,
49
vector<uint8_t>
,
50
vector<uint16_t>
,
51
vector<uint32_t>
,
52
vector<uint64_t>
,
53
vector<void*>
,
54
vector<float>
,
55
vector<double>
,
56
vector<string>
,
57
vector<variant<none>
>,
58
vector<vec2>
,
59
vector<vec3>
,
60
vector<vec4>
,
61
vector<mat4x4>
,
62
vec2
,
63
vec3
,
64
vec4
65
//mat4x4
66
>;
67
}
// namespace plg
plg::variant
Definition:
variant.hpp:539
plg::vector
Definition:
vector.hpp:240
plg::invalid
Represents an invalid type.
Definition:
any.hpp:9
plg::none
Represents the absence of a value.
Definition:
any.hpp:10
plg::vec2
Definition:
numerics.hpp:19
plg::vec3
Definition:
numerics.hpp:29
plg::vec4
Definition:
numerics.hpp:40
plg::function
Represents a function pointer as a union for flexibility.
Definition:
any.hpp:11
Generated by
1.9.1