CNORXZ
Container with Native Operation Routines and Expressions
Loading...
Searching...
No Matches
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
26
30
34
38
42
46
50
54
58
62
66
67#pragma GCC diagnostic pop
68
69namespace 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
Load and save implementation for MArray.
CNORXZ Cereal basic types declaration.
#define CXZ_CEREAL_FORMAT_VERION
Definition cer_base.h:15
CNORXZ Cereal data header declaration.
Load and save implementation for cnorxz ranges.
CEREAL_REGISTER_POLYMORPHIC_RELATION(CNORXZ::RangeBase, CNORXZ::CRange)
CEREAL_CLASS_VERSION(CNORXZ::Uuid, CXZ_CEREAL_FORMAT_VERION)
CEREAL_REGISTER_TYPE(CNORXZ::CRange)
std::vector< T, Allocator< T > > Vector
Definition types.h:310