Skip to content

Commit

Permalink
regenerated test_object
Browse files Browse the repository at this point in the history
  • Loading branch information
mikir committed May 31, 2024
1 parent 64018ee commit d630816
Show file tree
Hide file tree
Showing 117 changed files with 2,019 additions and 667 deletions.
2 changes: 1 addition & 1 deletion compiler/extensions/cpp/freemarker/Enumeration.h.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ const ${types.typeInfo.name}& enumTypeInfo<${fullName}, ${types.allocator.defaul
<#if withReflectionCode>

template <>
${types.reflectablePtr.name} enumReflectable(${fullName} value, const ${types.allocator.default}& allocator);
${types.reflectablePtr.name} enumReflectable(${fullName} value, const ${types.allocator.default}& alloc);
</#if>
</#if>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Automatically generated by Zserio C++ generator version 1.0.0 using Zserio core 2.12.0.
* Automatically generated by Zserio C++ generator version 1.0.1 using Zserio core 2.14.0.
* Generator setup: writerCode, pubsubCode, serviceCode, sqlCode, typeInfoCode, reflectionCode, polymorphicAllocator.
*/

Expand Down Expand Up @@ -64,14 +64,14 @@ ::zserio::pmr::IReflectablePtr ArrayBitmask::reflectable(const ::zserio::pmr::Pr
m_bitmask.write(writer);
}

::zserio::pmr::AnyHolder getAnyValue(const ::zserio::pmr::PropagatingPolymorphicAllocator<>& allocator) const override
::zserio::pmr::AnyHolder getAnyValue(const ::zserio::pmr::PropagatingPolymorphicAllocator<>& alloc) const override
{
return ::zserio::pmr::AnyHolder(m_bitmask, allocator);
return ::zserio::pmr::AnyHolder(m_bitmask, alloc);
}

::zserio::pmr::AnyHolder getAnyValue(const ::zserio::pmr::PropagatingPolymorphicAllocator<>& allocator) override
::zserio::pmr::AnyHolder getAnyValue(const ::zserio::pmr::PropagatingPolymorphicAllocator<>& alloc) override
{
return ::zserio::pmr::AnyHolder(m_bitmask, allocator);
return ::zserio::pmr::AnyHolder(m_bitmask, alloc);
}

uint8_t getUInt8() const override
Expand All @@ -89,9 +89,9 @@ ::zserio::pmr::IReflectablePtr ArrayBitmask::reflectable(const ::zserio::pmr::Pr
return static_cast<double>(toUInt());
}

::zserio::pmr::string toString(const ::zserio::pmr::PropagatingPolymorphicAllocator<>& allocator) const override
::zserio::pmr::string toString(const ::zserio::pmr::PropagatingPolymorphicAllocator<>& alloc) const override
{
return m_bitmask.toString(allocator);
return m_bitmask.toString(alloc);
}

private:
Expand Down Expand Up @@ -147,11 +147,17 @@ ::zserio::pmr::string ArrayBitmask::toString(const ::zserio::pmr::string::alloca
{
::zserio::pmr::string result(allocator);
if ((*this & ArrayBitmask::Values::CREATE) == ArrayBitmask::Values::CREATE)
{
result += result.empty() ? "CREATE" : " | CREATE";
}
if ((*this & ArrayBitmask::Values::READ) == ArrayBitmask::Values::READ)
{
result += result.empty() ? "READ" : " | READ";
}
if ((*this & ArrayBitmask::Values::WRITE) == ArrayBitmask::Values::WRITE)
{
result += result.empty() ? "WRITE" : " | WRITE";
}

return ::zserio::toString<::zserio::pmr::string::allocator_type>(m_value, allocator) + "[" + result + "]";
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Automatically generated by Zserio C++ generator version 1.0.0 using Zserio core 2.12.0.
* Automatically generated by Zserio C++ generator version 1.0.1 using Zserio core 2.14.0.
* Generator setup: writerCode, pubsubCode, serviceCode, sqlCode, typeInfoCode, reflectionCode, polymorphicAllocator.
*/

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Automatically generated by Zserio C++ generator version 1.0.0 using Zserio core 2.12.0.
* Automatically generated by Zserio C++ generator version 1.0.1 using Zserio core 2.14.0.
* Generator setup: writerCode, pubsubCode, serviceCode, sqlCode, typeInfoCode, reflectionCode, polymorphicAllocator.
*/

Expand Down Expand Up @@ -62,14 +62,14 @@ ::zserio::pmr::IReflectablePtr enumReflectable(::test_object::polymorphic_alloca
::zserio::write(writer, m_value);
}

::zserio::pmr::AnyHolder getAnyValue(const ::zserio::pmr::PropagatingPolymorphicAllocator<>& allocator) const override
::zserio::pmr::AnyHolder getAnyValue(const ::zserio::pmr::PropagatingPolymorphicAllocator<>& alloc) const override
{
return ::zserio::pmr::AnyHolder(m_value, allocator);
return ::zserio::pmr::AnyHolder(m_value, alloc);
}

::zserio::pmr::AnyHolder getAnyValue(const ::zserio::pmr::PropagatingPolymorphicAllocator<>& allocator) override
::zserio::pmr::AnyHolder getAnyValue(const ::zserio::pmr::PropagatingPolymorphicAllocator<>& alloc) override
{
return ::zserio::pmr::AnyHolder(m_value, allocator);
return ::zserio::pmr::AnyHolder(m_value, alloc);
}

int8_t getInt8() const override
Expand All @@ -87,9 +87,9 @@ ::zserio::pmr::IReflectablePtr enumReflectable(::test_object::polymorphic_alloca
return static_cast<double>(toInt());
}

::zserio::pmr::string toString(const ::zserio::pmr::PropagatingPolymorphicAllocator<>& allocator) const override
::zserio::pmr::string toString(const ::zserio::pmr::PropagatingPolymorphicAllocator<>& alloc) const override
{
return ::zserio::pmr::string(::zserio::enumToString(m_value), allocator);
return ::zserio::pmr::string(::zserio::enumToString(m_value), alloc);
}

private:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Automatically generated by Zserio C++ generator version 1.0.0 using Zserio core 2.12.0.
* Automatically generated by Zserio C++ generator version 1.0.1 using Zserio core 2.14.0.
* Generator setup: writerCode, pubsubCode, serviceCode, sqlCode, typeInfoCode, reflectionCode, polymorphicAllocator.
*/

Expand Down Expand Up @@ -60,7 +60,7 @@ template <>
const ::zserio::pmr::ITypeInfo& enumTypeInfo<::test_object::polymorphic_allocator::ArrayEnum, ::zserio::pmr::PropagatingPolymorphicAllocator<>>();

template <>
::zserio::pmr::IReflectablePtr enumReflectable(::test_object::polymorphic_allocator::ArrayEnum value, const ::zserio::pmr::PropagatingPolymorphicAllocator<>& allocator);
::zserio::pmr::IReflectablePtr enumReflectable(::test_object::polymorphic_allocator::ArrayEnum value, const ::zserio::pmr::PropagatingPolymorphicAllocator<>& alloc);

template <>
size_t enumToOrdinal<::test_object::polymorphic_allocator::ArrayEnum>(::test_object::polymorphic_allocator::ArrayEnum value);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Automatically generated by Zserio C++ generator version 1.0.0 using Zserio core 2.12.0.
* Automatically generated by Zserio C++ generator version 1.0.1 using Zserio core 2.14.0.
* Generator setup: writerCode, pubsubCode, serviceCode, sqlCode, typeInfoCode, reflectionCode, polymorphicAllocator.
*/

Expand Down Expand Up @@ -45,21 +45,29 @@ ArrayHolder::ArrayHolder(const ArrayHolder& other) :
m_packedParamArray_(::zserio::NoInit, other.m_packedParamArray_)
{
if (other.m_areChildrenInitialized)
{
initializeChildren();
}
else
{
m_areChildrenInitialized = false;
}
}

ArrayHolder& ArrayHolder::operator=(const ArrayHolder& other)
{
m_enumArray_ = other.m_enumArray_;
m_bitmaskArray_ = other.m_bitmaskArray_;
m_packedArray_ = other.m_packedArray_;
m_packedParamArray_.assign(::zserio::NoInit, other.m_packedParamArray_);
(void)m_packedParamArray_.assign(::zserio::NoInit, other.m_packedParamArray_);
if (other.m_areChildrenInitialized)
{
initializeChildren();
}
else
{
m_areChildrenInitialized = false;
}

return *this;
}
Expand All @@ -71,21 +79,29 @@ ArrayHolder::ArrayHolder(ArrayHolder&& other) :
m_packedParamArray_(::zserio::NoInit, ::std::move(other.m_packedParamArray_))
{
if (other.m_areChildrenInitialized)
{
initializeChildren();
}
else
{
m_areChildrenInitialized = false;
}
}

ArrayHolder& ArrayHolder::operator=(ArrayHolder&& other)
{
m_enumArray_ = ::std::move(other.m_enumArray_);
m_bitmaskArray_ = ::std::move(other.m_bitmaskArray_);
m_packedArray_ = ::std::move(other.m_packedArray_);
m_packedParamArray_.assign(::zserio::NoInit, ::std::move(other.m_packedParamArray_));
(void)m_packedParamArray_.assign(::zserio::NoInit, ::std::move(other.m_packedParamArray_));
if (other.m_areChildrenInitialized)
{
initializeChildren();
}
else
{
m_areChildrenInitialized = false;
}

return *this;
}
Expand All @@ -98,9 +114,13 @@ ArrayHolder::ArrayHolder(::zserio::PropagateAllocatorT,
m_packedParamArray_(::zserio::NoInit, ::zserio::allocatorPropagatingCopy(::zserio::NoInit, other.m_packedParamArray_, allocator))
{
if (other.m_areChildrenInitialized)
{
initializeChildren();
}
else
{
m_areChildrenInitialized = false;
}
}

const ::zserio::pmr::ITypeInfo& ArrayHolder::typeInfo()
Expand Down Expand Up @@ -205,8 +225,8 @@ ::zserio::pmr::IReflectableConstPtr ArrayHolder::reflectable(const allocator_typ
using ::zserio::ReflectableConstAllocatorHolderBase<allocator_type>::callFunction;
using ::zserio::ReflectableConstAllocatorHolderBase<allocator_type>::getAnyValue;

explicit Reflectable(const ::test_object::polymorphic_allocator::ArrayHolder& object, const allocator_type& allocator) :
::zserio::ReflectableConstAllocatorHolderBase<allocator_type>(::test_object::polymorphic_allocator::ArrayHolder::typeInfo(), allocator),
explicit Reflectable(const ::test_object::polymorphic_allocator::ArrayHolder& object, const allocator_type& alloc) :
::zserio::ReflectableConstAllocatorHolderBase<allocator_type>(::test_object::polymorphic_allocator::ArrayHolder::typeInfo(), alloc),
m_object(object)
{}

Expand Down Expand Up @@ -241,9 +261,9 @@ ::zserio::pmr::IReflectableConstPtr ArrayHolder::reflectable(const allocator_typ
throw ::zserio::CppRuntimeException("Field '") << name << "' doesn't exist in 'ArrayHolder'!";
}

::zserio::pmr::AnyHolder getAnyValue(const allocator_type& allocator) const override
::zserio::pmr::AnyHolder getAnyValue(const allocator_type& alloc) const override
{
return ::zserio::pmr::AnyHolder(::std::cref(m_object), allocator);
return ::zserio::pmr::AnyHolder(::std::cref(m_object), alloc);
}

private:
Expand All @@ -258,8 +278,8 @@ ::zserio::pmr::IReflectablePtr ArrayHolder::reflectable(const allocator_type& al
class Reflectable : public ::zserio::ReflectableAllocatorHolderBase<allocator_type>
{
public:
explicit Reflectable(::test_object::polymorphic_allocator::ArrayHolder& object, const allocator_type& allocator) :
::zserio::ReflectableAllocatorHolderBase<allocator_type>(::test_object::polymorphic_allocator::ArrayHolder::typeInfo(), allocator),
explicit Reflectable(::test_object::polymorphic_allocator::ArrayHolder& object, const allocator_type& alloc) :
::zserio::ReflectableAllocatorHolderBase<allocator_type>(::test_object::polymorphic_allocator::ArrayHolder::typeInfo(), alloc),
m_object(object)
{}

Expand Down Expand Up @@ -376,14 +396,14 @@ ::zserio::pmr::IReflectablePtr ArrayHolder::reflectable(const allocator_type& al
throw ::zserio::CppRuntimeException("Field '") << name << "' doesn't exist in 'ArrayHolder'!";
}

::zserio::pmr::AnyHolder getAnyValue(const allocator_type& allocator) const override
::zserio::pmr::AnyHolder getAnyValue(const allocator_type& alloc) const override
{
return ::zserio::pmr::AnyHolder(::std::cref(m_object), allocator);
return ::zserio::pmr::AnyHolder(::std::cref(m_object), alloc);
}

::zserio::pmr::AnyHolder getAnyValue(const allocator_type& allocator) override
::zserio::pmr::AnyHolder getAnyValue(const allocator_type& alloc) override
{
return ::zserio::pmr::AnyHolder(::std::ref(m_object), allocator);
return ::zserio::pmr::AnyHolder(::std::ref(m_object), alloc);
}

private:
Expand Down Expand Up @@ -521,24 +541,40 @@ bool ArrayHolder::operator==(const ArrayHolder& other) const
bool ArrayHolder::operator<(const ArrayHolder& other) const
{
if (m_enumArray_ < other.m_enumArray_)
{
return true;
}
if (other.m_enumArray_ < m_enumArray_)
{
return false;
}

if (m_bitmaskArray_ < other.m_bitmaskArray_)
{
return true;
}
if (other.m_bitmaskArray_ < m_bitmaskArray_)
{
return false;
}

if (m_packedArray_ < other.m_packedArray_)
{
return true;
}
if (other.m_packedArray_ < m_packedArray_)
{
return false;
}

if (m_packedParamArray_ < other.m_packedParamArray_)
{
return true;
}
if (other.m_packedParamArray_ < m_packedParamArray_)
{
return false;
}

return false;
}
Expand Down Expand Up @@ -607,6 +643,7 @@ ArrayHolder::ZserioArrayType_enumArray ArrayHolder::readEnumArray(::zserio::BitS

return readField;
}

ArrayHolder::ZserioArrayType_bitmaskArray ArrayHolder::readBitmaskArray(::zserio::BitStreamReader& in,
const allocator_type& allocator)
{
Expand All @@ -615,6 +652,7 @@ ArrayHolder::ZserioArrayType_bitmaskArray ArrayHolder::readBitmaskArray(::zserio

return readField;
}

ArrayHolder::ZserioArrayType_packedArray ArrayHolder::readPackedArray(::zserio::BitStreamReader& in,
const allocator_type& allocator)
{
Expand All @@ -623,6 +661,7 @@ ArrayHolder::ZserioArrayType_packedArray ArrayHolder::readPackedArray(::zserio::

return readField;
}

ArrayHolder::ZserioArrayType_packedParamArray ArrayHolder::readPackedParamArray(::zserio::BitStreamReader& in,
const allocator_type& allocator)
{
Expand All @@ -632,5 +671,6 @@ ArrayHolder::ZserioArrayType_packedParamArray ArrayHolder::readPackedParamArray(
return readField;
}


} // namespace polymorphic_allocator
} // namespace test_object
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Automatically generated by Zserio C++ generator version 1.0.0 using Zserio core 2.12.0.
* Automatically generated by Zserio C++ generator version 1.0.1 using Zserio core 2.14.0.
* Generator setup: writerCode, pubsubCode, serviceCode, sqlCode, typeInfoCode, reflectionCode, polymorphicAllocator.
*/

Expand Down
Loading

0 comments on commit d630816

Please sign in to comment.