Skip to content

Commit 9b5d9a8

Browse files
committed
Add generated sources
1 parent fb7530a commit 9b5d9a8

File tree

2,262 files changed

+358692
-3
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,262 files changed

+358692
-3
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
/**
2+
* Automatically generated by Zserio C++ generator version 1.0.0 using Zserio core 2.13.0.
3+
* Generator setup: writerCode, pubsubCode, serviceCode, sqlCode, stdAllocator.
4+
*/
5+
6+
#include <zserio/StringConvertUtil.h>
7+
#include <zserio/CppRuntimeException.h>
8+
#include <zserio/HashCodeUtil.h>
9+
#include <zserio/BitPositionUtil.h>
10+
#include <zserio/BitSizeOfCalculator.h>
11+
#include <zserio/BitFieldUtil.h>
12+
13+
#include <allow_implicit_arrays/implicit_array_bit8/ImplicitArray.h>
14+
15+
namespace allow_implicit_arrays
16+
{
17+
namespace implicit_array_bit8
18+
{
19+
20+
ImplicitArray::ImplicitArray(const allocator_type& allocator) noexcept :
21+
m_array_(allocator)
22+
{
23+
}
24+
25+
ImplicitArray::ImplicitArray(::zserio::BitStreamReader& in, const allocator_type& allocator) :
26+
m_array_(readArray(in, allocator))
27+
{
28+
}
29+
30+
ImplicitArray::ImplicitArray(::zserio::PropagateAllocatorT,
31+
const ImplicitArray& other, const allocator_type& allocator) :
32+
m_array_(::zserio::allocatorPropagatingCopy(other.m_array_, allocator))
33+
{
34+
}
35+
36+
::zserio::vector<uint8_t>& ImplicitArray::getArray()
37+
{
38+
return m_array_.getRawArray();
39+
}
40+
41+
const ::zserio::vector<uint8_t>& ImplicitArray::getArray() const
42+
{
43+
return m_array_.getRawArray();
44+
}
45+
46+
void ImplicitArray::setArray(const ::zserio::vector<uint8_t>& array_)
47+
{
48+
m_array_ = ZserioArrayType_array(array_);
49+
}
50+
51+
void ImplicitArray::setArray(::zserio::vector<uint8_t>&& array_)
52+
{
53+
m_array_ = ZserioArrayType_array(std::move(array_));
54+
}
55+
56+
size_t ImplicitArray::bitSizeOf(size_t bitPosition) const
57+
{
58+
size_t endBitPosition = bitPosition;
59+
60+
endBitPosition += m_array_.bitSizeOf(endBitPosition);
61+
62+
return endBitPosition - bitPosition;
63+
}
64+
65+
size_t ImplicitArray::initializeOffsets(size_t bitPosition)
66+
{
67+
size_t endBitPosition = bitPosition;
68+
69+
endBitPosition = m_array_.initializeOffsets(endBitPosition);
70+
71+
return endBitPosition;
72+
}
73+
74+
bool ImplicitArray::operator==(const ImplicitArray& other) const
75+
{
76+
if (this != &other)
77+
{
78+
return
79+
(m_array_ == other.m_array_);
80+
}
81+
82+
return true;
83+
}
84+
85+
bool ImplicitArray::operator<(const ImplicitArray& other) const
86+
{
87+
if (m_array_ < other.m_array_)
88+
return true;
89+
if (other.m_array_ < m_array_)
90+
return false;
91+
92+
return false;
93+
}
94+
95+
uint32_t ImplicitArray::hashCode() const
96+
{
97+
uint32_t result = ::zserio::HASH_SEED;
98+
99+
result = ::zserio::calcHashCode(result, m_array_);
100+
101+
return result;
102+
}
103+
104+
void ImplicitArray::write(::zserio::BitStreamWriter& out) const
105+
{
106+
m_array_.write(out);
107+
}
108+
109+
ImplicitArray::ZserioArrayType_array ImplicitArray::readArray(::zserio::BitStreamReader& in,
110+
const allocator_type& allocator)
111+
{
112+
ZserioArrayType_array readField(allocator);
113+
readField.read(in);
114+
115+
return readField;
116+
}
117+
118+
} // namespace implicit_array_bit8
119+
} // namespace allow_implicit_arrays
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
/**
2+
* Automatically generated by Zserio C++ generator version 1.0.0 using Zserio core 2.13.0.
3+
* Generator setup: writerCode, pubsubCode, serviceCode, sqlCode, stdAllocator.
4+
*/
5+
6+
#ifndef ALLOW_IMPLICIT_ARRAYS_IMPLICIT_ARRAY_BIT8_IMPLICIT_ARRAY_H
7+
#define ALLOW_IMPLICIT_ARRAYS_IMPLICIT_ARRAY_BIT8_IMPLICIT_ARRAY_H
8+
9+
#include <zserio/CppRuntimeVersion.h>
10+
#if CPP_EXTENSION_RUNTIME_VERSION_NUMBER != 1000000
11+
#error Version mismatch between Zserio runtime library and Zserio C++ generator!
12+
#error Please update your Zserio runtime library to the version 1.0.0.
13+
#endif
14+
15+
#include <zserio/Traits.h>
16+
#include <zserio/BitStreamReader.h>
17+
#include <zserio/BitStreamWriter.h>
18+
#include <zserio/AllocatorPropagatingCopy.h>
19+
#include <memory>
20+
#include <zserio/Array.h>
21+
#include <zserio/ArrayTraits.h>
22+
#include <zserio/Types.h>
23+
#include <zserio/Vector.h>
24+
25+
namespace allow_implicit_arrays
26+
{
27+
namespace implicit_array_bit8
28+
{
29+
30+
class ImplicitArray
31+
{
32+
public:
33+
using allocator_type = ::std::allocator<uint8_t>;
34+
35+
ImplicitArray() noexcept :
36+
ImplicitArray(allocator_type())
37+
{}
38+
39+
explicit ImplicitArray(const allocator_type& allocator) noexcept;
40+
41+
template <typename ZSERIO_T_array = ::zserio::vector<uint8_t>,
42+
::zserio::is_field_constructor_enabled_t<ZSERIO_T_array, ImplicitArray, allocator_type> = 0>
43+
explicit ImplicitArray(
44+
ZSERIO_T_array&& array_,
45+
const allocator_type& allocator = allocator_type()) :
46+
ImplicitArray(allocator)
47+
{
48+
m_array_ = ZserioArrayType_array(::std::forward<ZSERIO_T_array>(array_));
49+
}
50+
51+
explicit ImplicitArray(::zserio::BitStreamReader& in, const allocator_type& allocator = allocator_type());
52+
53+
~ImplicitArray() = default;
54+
55+
ImplicitArray(const ImplicitArray&) = default;
56+
ImplicitArray& operator=(const ImplicitArray&) = default;
57+
58+
ImplicitArray(ImplicitArray&&) = default;
59+
ImplicitArray& operator=(ImplicitArray&&) = default;
60+
61+
ImplicitArray(::zserio::PropagateAllocatorT,
62+
const ImplicitArray& other, const allocator_type& allocator);
63+
64+
const ::zserio::vector<uint8_t>& getArray() const;
65+
::zserio::vector<uint8_t>& getArray();
66+
void setArray(const ::zserio::vector<uint8_t>& array_);
67+
void setArray(::zserio::vector<uint8_t>&& array_);
68+
69+
size_t bitSizeOf(size_t bitPosition = 0) const;
70+
71+
size_t initializeOffsets(size_t bitPosition = 0);
72+
73+
bool operator==(const ImplicitArray& other) const;
74+
75+
bool operator<(const ImplicitArray& other) const;
76+
77+
uint32_t hashCode() const;
78+
79+
void write(::zserio::BitStreamWriter& out) const;
80+
81+
private:
82+
using ZserioArrayType_array = ::zserio::Array<::zserio::vector<uint8_t>, ::zserio::BitFieldArrayTraits<uint8_t, UINT8_C(8)>, ::zserio::ArrayType::IMPLICIT>;
83+
84+
ZserioArrayType_array readArray(::zserio::BitStreamReader& in,
85+
const allocator_type& allocator);
86+
87+
ZserioArrayType_array m_array_;
88+
};
89+
90+
} // namespace implicit_array_bit8
91+
} // namespace allow_implicit_arrays
92+
93+
#endif // ALLOW_IMPLICIT_ARRAYS_IMPLICIT_ARRAY_BIT8_IMPLICIT_ARRAY_H
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
/**
2+
* Automatically generated by Zserio C++ generator version 1.0.0 using Zserio core 2.13.0.
3+
* Generator setup: writerCode, pubsubCode, serviceCode, sqlCode, stdAllocator.
4+
*/
5+
6+
#include <zserio/StringConvertUtil.h>
7+
#include <zserio/CppRuntimeException.h>
8+
#include <zserio/HashCodeUtil.h>
9+
#include <zserio/BitPositionUtil.h>
10+
#include <zserio/BitSizeOfCalculator.h>
11+
#include <zserio/BitFieldUtil.h>
12+
13+
#include <allow_implicit_arrays/implicit_array_float16/ImplicitArray.h>
14+
15+
namespace allow_implicit_arrays
16+
{
17+
namespace implicit_array_float16
18+
{
19+
20+
ImplicitArray::ImplicitArray(const allocator_type& allocator) noexcept :
21+
m_array_(allocator)
22+
{
23+
}
24+
25+
ImplicitArray::ImplicitArray(::zserio::BitStreamReader& in, const allocator_type& allocator) :
26+
m_array_(readArray(in, allocator))
27+
{
28+
}
29+
30+
ImplicitArray::ImplicitArray(::zserio::PropagateAllocatorT,
31+
const ImplicitArray& other, const allocator_type& allocator) :
32+
m_array_(::zserio::allocatorPropagatingCopy(other.m_array_, allocator))
33+
{
34+
}
35+
36+
::zserio::vector<float>& ImplicitArray::getArray()
37+
{
38+
return m_array_.getRawArray();
39+
}
40+
41+
const ::zserio::vector<float>& ImplicitArray::getArray() const
42+
{
43+
return m_array_.getRawArray();
44+
}
45+
46+
void ImplicitArray::setArray(const ::zserio::vector<float>& array_)
47+
{
48+
m_array_ = ZserioArrayType_array(array_);
49+
}
50+
51+
void ImplicitArray::setArray(::zserio::vector<float>&& array_)
52+
{
53+
m_array_ = ZserioArrayType_array(std::move(array_));
54+
}
55+
56+
size_t ImplicitArray::bitSizeOf(size_t bitPosition) const
57+
{
58+
size_t endBitPosition = bitPosition;
59+
60+
endBitPosition += m_array_.bitSizeOf(endBitPosition);
61+
62+
return endBitPosition - bitPosition;
63+
}
64+
65+
size_t ImplicitArray::initializeOffsets(size_t bitPosition)
66+
{
67+
size_t endBitPosition = bitPosition;
68+
69+
endBitPosition = m_array_.initializeOffsets(endBitPosition);
70+
71+
return endBitPosition;
72+
}
73+
74+
bool ImplicitArray::operator==(const ImplicitArray& other) const
75+
{
76+
if (this != &other)
77+
{
78+
return
79+
(m_array_ == other.m_array_);
80+
}
81+
82+
return true;
83+
}
84+
85+
bool ImplicitArray::operator<(const ImplicitArray& other) const
86+
{
87+
if (m_array_ < other.m_array_)
88+
return true;
89+
if (other.m_array_ < m_array_)
90+
return false;
91+
92+
return false;
93+
}
94+
95+
uint32_t ImplicitArray::hashCode() const
96+
{
97+
uint32_t result = ::zserio::HASH_SEED;
98+
99+
result = ::zserio::calcHashCode(result, m_array_);
100+
101+
return result;
102+
}
103+
104+
void ImplicitArray::write(::zserio::BitStreamWriter& out) const
105+
{
106+
m_array_.write(out);
107+
}
108+
109+
ImplicitArray::ZserioArrayType_array ImplicitArray::readArray(::zserio::BitStreamReader& in,
110+
const allocator_type& allocator)
111+
{
112+
ZserioArrayType_array readField(allocator);
113+
readField.read(in);
114+
115+
return readField;
116+
}
117+
118+
} // namespace implicit_array_float16
119+
} // namespace allow_implicit_arrays

0 commit comments

Comments
 (0)