CNORXZ
Container with Native Operation Routines and Expressions
Loading...
Searching...
No Matches
src
opt
cereal
include
cer_type_register.cc.h
Go to the documentation of this file.
1
// -*- C++ -*-
12
#ifndef __cxz_cereal_type_register_cc_h__
13
#define __cxz_cereal_type_register_cc_h__
14
15
#include "
cer_base.h
"
16
#include "
cer_header.h
"
17
#include "
cer_ranges.cc.h
"
18
#include "
cer_array.cc.h
"
19
#include <cereal/types/polymorphic.hpp>
20
21
#pragma GCC diagnostic push
22
#pragma GCC diagnostic ignored "-Wpedantic"
23
24
CEREAL_CLASS_VERSION
(
CNORXZ::Uuid
,
CXZ_CEREAL_FORMAT_VERION
);
25
CEREAL_CLASS_VERSION
(
CNORXZ::cer::Header
,
CXZ_CEREAL_FORMAT_VERION
);
26
27
CEREAL_REGISTER_TYPE
(
CNORXZ::CRange
);
28
CEREAL_REGISTER_POLYMORPHIC_RELATION
(
CNORXZ::RangeBase
,
CNORXZ::CRange
);
29
CEREAL_CLASS_VERSION
(
CNORXZ::CRange
,
CXZ_CEREAL_FORMAT_VERION
);
30
31
CEREAL_REGISTER_TYPE
(
CNORXZ::URange<CNORXZ::SizeT>
);
32
CEREAL_REGISTER_POLYMORPHIC_RELATION
(
CNORXZ::RangeBase
,
CNORXZ::URange<CNORXZ::SizeT>
);
33
CEREAL_CLASS_VERSION
(
CNORXZ::URange<CNORXZ::SizeT>
,
CXZ_CEREAL_FORMAT_VERION
);
34
35
CEREAL_REGISTER_TYPE
(
CNORXZ::URange<CNORXZ::Int>
);
36
CEREAL_REGISTER_POLYMORPHIC_RELATION
(
CNORXZ::RangeBase
,
CNORXZ::URange<CNORXZ::Int>
);
37
CEREAL_CLASS_VERSION
(
CNORXZ::URange<CNORXZ::Int>
,
CXZ_CEREAL_FORMAT_VERION
);
38
39
CEREAL_REGISTER_TYPE
(
CNORXZ::URange<CNORXZ::Double>
);
40
CEREAL_REGISTER_POLYMORPHIC_RELATION
(
CNORXZ::RangeBase
,
CNORXZ::URange<CNORXZ::Double>
);
41
CEREAL_CLASS_VERSION
(
CNORXZ::URange<CNORXZ::Double>
,
CXZ_CEREAL_FORMAT_VERION
);
42
43
CEREAL_REGISTER_TYPE
(
CNORXZ::URange<CNORXZ::String>
);
44
CEREAL_REGISTER_POLYMORPHIC_RELATION
(
CNORXZ::RangeBase
,
CNORXZ::URange<CNORXZ::String>
);
45
CEREAL_CLASS_VERSION
(
CNORXZ::URange<CNORXZ::String>
,
CXZ_CEREAL_FORMAT_VERION
);
46
47
CEREAL_REGISTER_TYPE
(
CNORXZ::URange
<
CNORXZ::Vector<CNORXZ::SizeT>
>);
48
CEREAL_REGISTER_POLYMORPHIC_RELATION
(
CNORXZ::RangeBase
,
CNORXZ::URange
<
CNORXZ::Vector<CNORXZ::SizeT>
>);
49
CEREAL_CLASS_VERSION
(
CNORXZ::URange
<
CNORXZ::Vector<CNORXZ::SizeT>
>,
CXZ_CEREAL_FORMAT_VERION
);
50
51
CEREAL_REGISTER_TYPE
(
CNORXZ::URange
<
CNORXZ::Vector<CNORXZ::Int>
>);
52
CEREAL_REGISTER_POLYMORPHIC_RELATION
(
CNORXZ::RangeBase
,
CNORXZ::URange
<
CNORXZ::Vector<CNORXZ::Int>
>);
53
CEREAL_CLASS_VERSION
(
CNORXZ::URange
<
CNORXZ::Vector<CNORXZ::Int>
>,
CXZ_CEREAL_FORMAT_VERION
);
54
55
CEREAL_REGISTER_TYPE
(
CNORXZ::URange
<
CNORXZ::Vector<CNORXZ::Double>
>);
56
CEREAL_REGISTER_POLYMORPHIC_RELATION
(
CNORXZ::RangeBase
,
CNORXZ::URange
<
CNORXZ::Vector<CNORXZ::Double>
>);
57
CEREAL_CLASS_VERSION
(
CNORXZ::URange
<
CNORXZ::Vector<CNORXZ::Double>
>,
CXZ_CEREAL_FORMAT_VERION
);
58
59
CEREAL_REGISTER_TYPE
(
CNORXZ::URange
<
CNORXZ::Vector<CNORXZ::String>
>);
60
CEREAL_REGISTER_POLYMORPHIC_RELATION
(
CNORXZ::RangeBase
,
CNORXZ::URange
<
CNORXZ::Vector<CNORXZ::String>
>);
61
CEREAL_CLASS_VERSION
(
CNORXZ::URange
<
CNORXZ::Vector<CNORXZ::String>
>,
CXZ_CEREAL_FORMAT_VERION
);
62
63
CEREAL_REGISTER_TYPE
(
CNORXZ::YRange
);
64
CEREAL_REGISTER_POLYMORPHIC_RELATION
(
CNORXZ::RangeBase
,
CNORXZ::YRange
);
65
CEREAL_CLASS_VERSION
(
CNORXZ::YRange
,
CXZ_CEREAL_FORMAT_VERION
);
66
67
#pragma GCC diagnostic pop
68
69
namespace
cereal
70
{
71
namespace
detail
72
{
73
74
template
<
typename
T>
75
struct
Version<
CNORXZ
::MArray<T>>
76
{
77
static
const
std::uint32_t
version
;
78
79
static
std::uint32_t
registerVersion
()
80
{
81
::cereal::detail::StaticObject<Versions>::getInstance().mapping.emplace
82
( std::type_index(
typeid
(
CNORXZ::MArray<T>
)).hash_code(),
CXZ_CEREAL_FORMAT_VERION
);
83
return
3;
84
}
85
86
static
void
unused
() { (void)version; }
87
};
88
89
template
<
typename
T>
90
const
std::uint32_t Version<CNORXZ::MArray<T>>::version =
91
Version<CNORXZ::MArray<T>>::registerVersion();
92
}
93
}
94
95
#endif
cer_array.cc.h
Load and save implementation for MArray.
cer_base.h
CNORXZ Cereal basic types declaration.
CXZ_CEREAL_FORMAT_VERION
#define CXZ_CEREAL_FORMAT_VERION
Definition
cer_base.h:15
cer_header.h
CNORXZ Cereal data header declaration.
cer_ranges.cc.h
Load and save implementation for cnorxz ranges.
CEREAL_REGISTER_POLYMORPHIC_RELATION
CEREAL_REGISTER_POLYMORPHIC_RELATION(CNORXZ::RangeBase, CNORXZ::CRange)
CEREAL_CLASS_VERSION
CEREAL_CLASS_VERSION(CNORXZ::Uuid, CXZ_CEREAL_FORMAT_VERION)
CEREAL_REGISTER_TYPE
CEREAL_REGISTER_TYPE(CNORXZ::CRange)
CNORXZ::CRange
Definition
crange.h:167
CNORXZ::MArray
Definition
marray.h:26
CNORXZ::RangeBase
Definition
range_base.h:95
CNORXZ::URange
Definition
urange.h:170
CNORXZ::YRange
Definition
yrange.h:310
CNORXZ
Definition
aindex.cc.h:18
CNORXZ::Vector
std::vector< T, Allocator< T > > Vector
Definition
types.h:310
cereal
Definition
cer_type_register.cc.h:70
CNORXZ::Uuid
Definition
uuid.h:24
CNORXZ::cer::Header
Definition
cer_header.h:26
cereal::detail::Version< CNORXZ::MArray< T > >::unused
static void unused()
Definition
cer_type_register.cc.h:86
cereal::detail::Version< CNORXZ::MArray< T > >::registerVersion
static std::uint32_t registerVersion()
Definition
cer_type_register.cc.h:79
cereal::detail::Version< CNORXZ::MArray< T > >::version
static const std::uint32_t version
Definition
cer_type_register.cc.h:77
Generated by
1.10.0