COMMS
Template library intended to help with implementation of communication protocols.
Loading...
Searching...
No Matches
Bundle.h
Go to the documentation of this file.
1//
2// Copyright 2015 - 2024 (C). Alex Robenko. All rights reserved.
3//
4// This Source Code Form is subject to the terms of the Mozilla Public
5// License, v. 2.0. If a copy of the MPL was not distributed with this
6// file, You can obtain one at http://mozilla.org/MPL/2.0/.
7
10
11#pragma once
12
13#include "comms/ErrorStatus.h"
14#include "comms/options.h"
15#include "comms/field/basic/Bundle.h"
16#include "comms/field/details/AdaptBasicField.h"
17
18namespace comms
19{
20
21namespace field
22{
23
52template <typename TFieldBase, typename TMembers, typename... TOptions>
53class Bundle : public
54 details::AdaptBasicFieldT<
55 basic::Bundle<
56 TFieldBase,
57 details::OptionsParser<TOptions...>::ForcedMembersVersionDependency,
58 TMembers>,
59 TOptions...
60 >
61{
62 using BaseImpl =
63 details::AdaptBasicFieldT<
64 basic::Bundle<
65 TFieldBase,
66 details::OptionsParser<TOptions...>::ForcedMembersVersionDependency,
67 TMembers>,
68 TOptions...
69 >;
71 "TMembers is expected to be a tuple of std::tuple<...>");
72
73 static_assert(
74 1U <= std::tuple_size<TMembers>::value,
75 "Number of members is expected to be at least 1.");
76
77public:
79 using FieldBase = TFieldBase;
80
82 using Endian = typename BaseImpl::Endian;
83
85 using VersionType = typename BaseImpl::VersionType;
86
88 using ParsedOptions = details::OptionsParser<TOptions...>;
89
91 using CommsTag = typename BaseImpl::CommsTag;
92
96 using ValueType = typename BaseImpl::ValueType;
97
101 using FieldType = typename ParsedOptions::FieldType;
102
105 Bundle() = default;
106
108 explicit Bundle(const ValueType& val)
109 : BaseImpl(val)
110 {
111 }
112
114 explicit Bundle(ValueType&& val)
115 : BaseImpl(std::move(val))
116 {
117 }
118
121 static constexpr bool hasFailOnInvalid()
122 {
123 return ParsedOptions::HasFailOnInvalid;
124 }
125
128 static constexpr bool hasIgnoreInvalid()
129 {
130 return ParsedOptions::HasIgnoreInvalid;
131 }
132
135 static constexpr bool hasEmptySerialization()
136 {
137 return ParsedOptions::HasEmptySerialization;
138 }
139
142 static constexpr bool hasFieldType()
143 {
144 return ParsedOptions::HasFieldType;
145 }
146
149 {
150 return BaseImpl::value();
151 }
152
154 const ValueType& value() const
155 {
156 return BaseImpl::value();
157 }
158
161 const ValueType& getValue() const
162 {
163 return BaseImpl::getValue();
164 }
165
168 template <typename U>
169 void setValue(U&& val)
170 {
171 BaseImpl::setValue(std::forward<U>(val));
172 }
173
178 std::size_t length() const
179 {
180 return BaseImpl::length();
181 }
182
189 template <std::size_t TFromIdx>
190 std::size_t lengthFrom() const
191 {
192 return BaseImpl::template lengthFrom<TFromIdx>();
193 }
194
201 template <std::size_t TUntilIdx>
202 std::size_t lengthUntil() const
203 {
204 return BaseImpl::template lengthUntil<TUntilIdx>();
205 }
206
215 template <std::size_t TFromIdx, std::size_t TUntilIdx>
216 std::size_t lengthFromUntil() const
217 {
218 return BaseImpl::template lengthFromUntil<TFromIdx, TUntilIdx>();
219 }
220
223 static constexpr std::size_t minLength()
224 {
225 return BaseImpl::minLength();
226 }
227
232 template <std::size_t TFromIdx>
233 static constexpr std::size_t minLengthFrom()
234 {
235 return BaseImpl::template minLengthFrom<TFromIdx>();
236 }
237
242 template <std::size_t TUntilIdx>
243 static constexpr std::size_t minLengthUntil()
244 {
245 return BaseImpl::template minLengthUntil<TUntilIdx>();
246 }
247
254 template <std::size_t TFromIdx, std::size_t TUntilIdx>
255 static constexpr std::size_t minLengthFromUntil()
256 {
257 return BaseImpl::template minLengthFromUntil<TFromIdx, TUntilIdx>();
258 }
259
262 static constexpr std::size_t maxLength()
263 {
264 return BaseImpl::maxLength();
265 }
266
271 template <std::size_t TFromIdx>
272 static constexpr std::size_t maxLengthFrom()
273 {
274 return BaseImpl::template maxLengthFrom<TFromIdx>();
275 }
276
281 template <std::size_t TUntilIdx>
282 static constexpr std::size_t maxLengthUntil()
283 {
284 return BaseImpl::template maxLengthUntil<TUntilIdx>();
285 }
286
293 template <std::size_t TFromIdx, std::size_t TUntilIdx>
294 static constexpr std::size_t maxLengthFromUntil()
295 {
296 return BaseImpl::template maxLengthFromUntil<TFromIdx, TUntilIdx>();
297 }
298
305 template <typename TIter>
306 ErrorStatus read(TIter& iter, std::size_t size)
307 {
308 return BaseImpl::read(iter, size);
309 }
310
321 template <std::size_t TFromIdx, typename TIter>
322 ErrorStatus readFrom(TIter& iter, std::size_t len)
323 {
324 return BaseImpl::template readFrom<TFromIdx>(iter, len);
325 }
326
338 template <std::size_t TFromIdx, typename TIter>
339 ErrorStatus readFromAndUpdateLen(TIter& iter, std::size_t& len)
340 {
341 return BaseImpl::template readFromAndUpdateLen<TFromIdx>(iter, len);
342 }
343
354 template <std::size_t TUntilIdx, typename TIter>
355 ErrorStatus readUntil(TIter& iter, std::size_t len)
356 {
357 return BaseImpl::template readUntil<TUntilIdx>(iter, len);
358 }
359
371 template <std::size_t TUntilIdx, typename TIter>
372 ErrorStatus readUntilAndUpdateLen(TIter& iter, std::size_t& len)
373 {
374 return BaseImpl::template readUntilAndUpdateLen<TUntilIdx>(iter, len);
375 }
376
390 template <std::size_t TFromIdx, std::size_t TUntilIdx, typename TIter>
391 ErrorStatus readFromUntil(TIter& iter, std::size_t len)
392 {
393 return BaseImpl::template readFromUntil<TFromIdx, TUntilIdx>(iter, len);
394 }
395
410 template <std::size_t TFromIdx, std::size_t TUntilIdx, typename TIter>
411 ErrorStatus readFromUntilAndUpdateLen(TIter& iter, std::size_t& len)
412 {
413 return BaseImpl::template readFromUntilAndUpdateLen<TFromIdx, TUntilIdx>(iter, len);
414 }
415
418 static constexpr bool hasReadNoStatus()
419 {
420 return BaseImpl::hasReadNoStatus();
421 }
422
428 template <typename TIter>
429 void readNoStatus(TIter& iter)
430 {
431 BaseImpl::readNoStatus(iter);
432 }
433
443 template <std::size_t TFromIdx, typename TIter>
444 void readFromNoStatus(TIter& iter)
445 {
446 BaseImpl::template readFromNoStatus<TFromIdx>(iter);
447 }
448
458 template <std::size_t TUntilIdx, typename TIter>
459 void readUntilNoStatus(TIter& iter)
460 {
461 BaseImpl::template readUntilNoStatus<TUntilIdx>(iter);
462 }
463
476 template <std::size_t TFromIdx, std::size_t TUntilIdx, typename TIter>
477 void readFromUntilNoStatus(TIter& iter)
478 {
479 BaseImpl::template readFromUntilNoStatus<TFromIdx, TUntilIdx>(iter);
480 }
481
483 bool canWrite() const
484 {
485 return BaseImpl::canWrite();
486 }
487
494 template <typename TIter>
495 ErrorStatus write(TIter& iter, std::size_t size) const
496 {
497 return BaseImpl::write(iter, size);
498 }
499
510 template <std::size_t TFromIdx, typename TIter>
511 ErrorStatus writeFrom(TIter& iter, std::size_t size) const
512 {
513 return BaseImpl::template writeFrom<TFromIdx>(iter, size);
514 }
515
526 template <std::size_t TUntilIdx, typename TIter>
527 ErrorStatus writeUntil(TIter& iter, std::size_t size) const
528 {
529 return BaseImpl::template writeUntil<TUntilIdx>(iter, size);
530 }
531
545 template <std::size_t TFromIdx, std::size_t TUntilIdx, typename TIter>
546 ErrorStatus writeFromUntil(TIter& iter, std::size_t size) const
547 {
548 return BaseImpl::template writeFromUntil<TFromIdx, TUntilIdx>(iter, size);
549 }
550
553 static constexpr bool hasWriteNoStatus()
554 {
555 return BaseImpl::hasWriteNoStatus();
556 }
557
563 template <typename TIter>
564 void writeNoStatus(TIter& iter) const
565 {
566 BaseImpl::writeNoStatus(iter);
567 }
568
578 template <std::size_t TFromIdx, typename TIter>
579 void writeFromNoStatus(TIter& iter)
580 {
581 BaseImpl::template writeFromNoStatus<TFromIdx>(iter);
582 }
583
593 template <std::size_t TUntilIdx, typename TIter>
594 void writeUntilNoStatus(TIter& iter)
595 {
596 BaseImpl::template writeUntilNoStatus<TUntilIdx>(iter);
597 }
598
610 template <std::size_t TFromIdx, std::size_t TUntilIdx, typename TIter>
611 void writeFromUntilNoStatus(TIter& iter)
612 {
613 BaseImpl::template writeFromUntilNoStatus<TFromIdx, TUntilIdx>(iter);
614 }
615
617 bool valid() const
618 {
619 return BaseImpl::valid();
620 }
621
625 bool refresh()
626 {
627 return BaseImpl::refresh();
628 }
629
631 static constexpr bool isVersionDependent()
632 {
633 return ParsedOptions::HasCustomVersionUpdate || BaseImpl::isVersionDependent();
634 }
635
637 static constexpr bool hasNonDefaultRefresh()
638 {
639 return BaseImpl::hasNonDefaultRefresh();
640 }
641
645 {
646 return BaseImpl::getVersion();
647 }
648
652 {
653 return BaseImpl::setVersion(version);
654 }
655
656protected:
657 using BaseImpl::readData;
658 using BaseImpl::writeData;
659
660private:
661 static_assert(!ParsedOptions::HasSerOffset,
662 "comms::option::def::NumValueSerOffset option is not applicable to Bundle field");
663 static_assert(!ParsedOptions::HasFixedLengthLimit,
664 "comms::option::def::FixedLength option is not applicable to Bundle field");
665 static_assert(!ParsedOptions::HasFixedBitLengthLimit,
666 "comms::option::def::FixedBitLength option is not applicable to Bundle field");
667 static_assert(!ParsedOptions::HasVarLengthLimits,
668 "comms::option::def::VarLength option is not applicable to Bundle field");
669 static_assert(!ParsedOptions::HasAvailableLengthLimit,
670 "comms::option::def::AvailableLengthLimit option is not applicable to Bundle field");
671 static_assert(!ParsedOptions::HasSequenceElemLengthForcing,
672 "comms::option::def::SequenceElemLengthForcingEnabled option is not applicable to Bundle field");
673 static_assert(!ParsedOptions::HasSequenceSizeForcing,
674 "comms::option::def::SequenceSizeForcingEnabled option is not applicable to Bundle field");
675 static_assert(!ParsedOptions::HasSequenceLengthForcing,
676 "comms::option::def::SequenceLengthForcingEnabled option is not applicable to Bundle field");
677 static_assert(!ParsedOptions::HasSequenceFixedSize,
678 "comms::option::def::SequenceFixedSize option is not applicable to Bundle field");
679 static_assert(!ParsedOptions::HasSequenceFixedSizeUseFixedSizeStorage,
680 "comms::option::app::SequenceFixedSizeUseFixedSizeStorage option is not applicable to Bundle field");
681 static_assert(!ParsedOptions::HasSequenceSizeFieldPrefix,
682 "comms::option::def::SequenceSizeFieldPrefix option is not applicable to Bundle field");
683 static_assert(!ParsedOptions::HasSequenceSerLengthFieldPrefix,
684 "comms::option::def::SequenceSerLengthFieldPrefix option is not applicable to Bundle field");
685 static_assert(!ParsedOptions::HasSequenceElemSerLengthFieldPrefix,
686 "comms::option::def::SequenceElemSerLengthFieldPrefix option is not applicable to Bundle field");
687 static_assert(!ParsedOptions::HasSequenceElemFixedSerLengthFieldPrefix,
688 "comms::option::def::SequenceElemSerLengthFixedFieldPrefix option is not applicable to Bundle field");
689 static_assert(!ParsedOptions::HasSequenceTrailingFieldSuffix,
690 "comms::option::def::SequenceTrailingFieldSuffix option is not applicable to Bundle field");
691 static_assert(!ParsedOptions::HasSequenceTerminationFieldSuffix,
692 "comms::option::def::SequenceTerminationFieldSuffix option is not applicable to Bundle field");
693 static_assert(!ParsedOptions::HasFixedSizeStorage,
694 "comms::option::app::FixedSizeStorage option is not applicable to Bundle field");
695 static_assert(!ParsedOptions::HasCustomStorageType,
696 "comms::option::app::CustomStorageType option is not applicable to Bundle field");
697 static_assert(!ParsedOptions::HasScalingRatio,
698 "comms::option::def::ScalingRatio option is not applicable to Bundle field");
699 static_assert(!ParsedOptions::HasUnits,
700 "comms::option::def::Units option is not applicable to Bundle field");
701 static_assert(!ParsedOptions::HasOrigDataView,
702 "comms::option::app::OrigDataView option is not applicable to Bundle field");
703 static_assert(!ParsedOptions::HasMultiRangeValidation,
704 "comms::option::def::ValidNumValueRange (or similar) option is not applicable to Bundle field");
705 static_assert(!ParsedOptions::HasVersionsRange,
706 "comms::option::def::ExistsBetweenVersions (or similar) option is not applicable to Bundle field");
707 static_assert(!ParsedOptions::HasInvalidByDefault,
708 "comms::option::def::InvalidByDefault option is not applicable to Bundle field");
709 static_assert(!ParsedOptions::HasMissingOnReadFail,
710 "comms::option::def::MissingOnReadFail option is not applicable to Bundle field");
711 static_assert(!ParsedOptions::HasMissingOnInvalid,
712 "comms::option::def::MissingOnInvalid option is not applicable to Bundle field");
713};
714
720template <typename TFieldBase, typename TMembers, typename... TOptions>
723 const Bundle<TFieldBase, TMembers, TOptions...>& field2) noexcept
724{
725 return field1.value() == field2.value();
726}
727
733template <typename TFieldBase, typename TMembers, typename... TOptions>
736 const Bundle<TFieldBase, TMembers, TOptions...>& field2) noexcept
737{
738 return field1.value() != field2.value();
739}
740
745template <typename TFieldBase, typename TMembers, typename... TOptions>
748 const Bundle<TFieldBase, TMembers, TOptions...>& field2) noexcept
749{
750 return field1.value() < field2.value();
751}
752
757template <typename TFieldBase, typename TMembers, typename... TOptions>
760 const Bundle<TFieldBase, TMembers, TOptions...>& field2) noexcept
761{
762 return field1.value() <= field2.value();
763}
764
769template <typename TFieldBase, typename TMembers, typename... TOptions>
772 const Bundle<TFieldBase, TMembers, TOptions...>& field2) noexcept
773{
774 return field1.value() > field2.value();
775}
776
781template <typename TFieldBase, typename TMembers, typename... TOptions>
784 const Bundle<TFieldBase, TMembers, TOptions...>& field2) noexcept
785{
786 return field1.value() >= field2.value();
787}
788
794template <typename T>
795constexpr bool isBundle()
796{
797 return std::is_same<typename T::CommsTag, tag::Bundle>::value;
798}
799
802template <typename TFieldBase, typename TMembers, typename... TOptions>
803inline
804Bundle<TFieldBase, TMembers, TOptions...>&
806{
807 return field;
808}
809
812template <typename TFieldBase, typename TMembers, typename... TOptions>
813inline
814const Bundle<TFieldBase, TMembers, TOptions...>&
816{
817 return field;
818}
819
820} // namespace field
821
822} // namespace comms
823
824
This file contain definition of error statuses used by comms module.
Bundles multiple fields into a single field.
Definition Bundle.h:61
ValueType & value()
Get access to the stored tuple of fields.
Definition Bundle.h:148
static constexpr std::size_t maxLengthFromUntil()
Get maximal length that is required to serialise specified bundled fields.
Definition Bundle.h:294
bool operator>(const Bundle< TFieldBase, TMembers, TOptions... > &field1, const Bundle< TFieldBase, TMembers, TOptions... > &field2) noexcept
Equivalence comparison operator.
Definition Bundle.h:770
ErrorStatus readFrom(TIter &iter, std::size_t len)
Read selected number of member fields (from specified index).
Definition Bundle.h:322
static constexpr bool hasNonDefaultRefresh()
Compile time check if this class has non-default refresh functionality.
Definition Bundle.h:637
std::size_t length() const
Get length required to serialise bundled fields.
Definition Bundle.h:178
ErrorStatus readUntil(TIter &iter, std::size_t len)
Read selected number of member fields (until specified index).
Definition Bundle.h:355
Bundle()=default
Default constructor.
typename BaseImpl::ValueType ValueType
Value type.
Definition Bundle.h:96
static constexpr std::size_t minLength()
Get minimal length that is required to serialise all bundled fields.
Definition Bundle.h:223
static constexpr std::size_t maxLength()
Get maximal length that is required to serialise all bundled fields.
Definition Bundle.h:262
Bundle(const ValueType &val)
Constructor.
Definition Bundle.h:108
typename BaseImpl::Endian Endian
Endian used for serialisation.
Definition Bundle.h:82
void readFromUntilNoStatus(TIter &iter)
Read selected member fields from input data sequence without error check and status report.
Definition Bundle.h:477
bool operator>=(const Bundle< TFieldBase, TMembers, TOptions... > &field1, const Bundle< TFieldBase, TMembers, TOptions... > &field2) noexcept
Equivalence comparison operator.
Definition Bundle.h:782
constexpr bool isBundle()
Compile time check function of whether a provided type is any variant of comms::field::Bundle.
Definition Bundle.h:795
std::size_t lengthFrom() const
Get length required to serialise specified bundled member fields.
Definition Bundle.h:190
static constexpr std::size_t minLengthFrom()
Get minimal length that is required to serialise specified bundled fields.
Definition Bundle.h:233
void readNoStatus(TIter &iter)
Read field value from input data sequence without error check and status report.
Definition Bundle.h:429
static constexpr std::size_t maxLengthFrom()
Get maximal length that is required to serialise specified bundled fields.
Definition Bundle.h:272
static constexpr bool hasFailOnInvalid()
Compile time inquiry of whether comms::option::def::FailOnInvalid option has been used.
Definition Bundle.h:121
void writeFromUntilNoStatus(TIter &iter)
Write selected member fields to output data sequence without error check and status report.
Definition Bundle.h:611
bool operator<(const Bundle< TFieldBase, TMembers, TOptions... > &field1, const Bundle< TFieldBase, TMembers, TOptions... > &field2) noexcept
Equivalence comparison operator.
Definition Bundle.h:746
ErrorStatus write(TIter &iter, std::size_t size) const
Write current field value to output data sequence.
Definition Bundle.h:495
TFieldBase FieldBase
Base class provided in the first template parameter.
Definition Bundle.h:79
const ValueType & value() const
Get access to the stored tuple of fields.
Definition Bundle.h:154
bool operator==(const Bundle< TFieldBase, TMembers, TOptions... > &field1, const Bundle< TFieldBase, TMembers, TOptions... > &field2) noexcept
Equality comparison operator.
Definition Bundle.h:721
void readUntilNoStatus(TIter &iter)
Read selected member fields from input data sequence without error check and status report.
Definition Bundle.h:459
static constexpr bool hasWriteNoStatus()
Compile time check of whether the field has proper writeNoStatus() member function.
Definition Bundle.h:553
ErrorStatus writeFromUntil(TIter &iter, std::size_t size) const
Write selected member fields to output data sequence.
Definition Bundle.h:546
static constexpr std::size_t maxLengthUntil()
Get maximal length that is required to serialise specified bundled fields.
Definition Bundle.h:282
VersionType getVersion() const
Get version of the field.
Definition Bundle.h:644
static constexpr bool hasIgnoreInvalid()
Compile time inquiry of whether comms::option::def::IgnoreInvalid option has been used.
Definition Bundle.h:128
typename BaseImpl::CommsTag CommsTag
Tag indicating type of the field.
Definition Bundle.h:91
const ValueType & getValue() const
Get value.
Definition Bundle.h:161
ErrorStatus read(TIter &iter, std::size_t size)
Read field value from input data sequence.
Definition Bundle.h:306
std::size_t lengthUntil() const
Get length required to serialise specified bundled member fields.
Definition Bundle.h:202
bool canWrite() const
Check of whether the field has a consistent value for writing.
Definition Bundle.h:483
bool valid() const
Check validity of all the bundled fields.
Definition Bundle.h:617
typename ParsedOptions::FieldType FieldType
Type of actual extending field specified via comms::option::def::FieldType.
Definition Bundle.h:101
Bundle(ValueType &&val)
Constructor.
Definition Bundle.h:114
bool operator<=(const Bundle< TFieldBase, TMembers, TOptions... > &field1, const Bundle< TFieldBase, TMembers, TOptions... > &field2) noexcept
Equivalence comparison operator.
Definition Bundle.h:758
static constexpr bool isVersionDependent()
Compile time check if this class is version dependent.
Definition Bundle.h:631
static constexpr std::size_t minLengthUntil()
Get minimal length that is required to serialise specified bundled fields.
Definition Bundle.h:243
details::OptionsParser< TOptions... > ParsedOptions
All the options provided to this class bundled into struct.
Definition Bundle.h:88
void setValue(U &&val)
Set value.
Definition Bundle.h:169
ErrorStatus writeUntil(TIter &iter, std::size_t size) const
Write selected member fields to output data sequence.
Definition Bundle.h:527
void writeFromNoStatus(TIter &iter)
Write selected member fields to output data sequence without error check and status report.
Definition Bundle.h:579
void writeNoStatus(TIter &iter) const
Write current field value to output data sequence without error check and status report.
Definition Bundle.h:564
bool setVersion(VersionType version)
Default implementation of version update.
Definition Bundle.h:651
ErrorStatus writeFrom(TIter &iter, std::size_t size) const
Write selected member fields to output data sequence.
Definition Bundle.h:511
void readFromNoStatus(TIter &iter)
Read selected member fields from input data sequence without error check and status report.
Definition Bundle.h:444
static constexpr std::size_t minLengthFromUntil()
Get minimal length that is required to serialise specified bundled fields.
Definition Bundle.h:255
ErrorStatus readUntilAndUpdateLen(TIter &iter, std::size_t &len)
Read selected number of member fields (until specified index) while updating remaining length informa...
Definition Bundle.h:372
static constexpr bool hasReadNoStatus()
Compile time check of whether the field has proper readNoStatus() member function (or similar).
Definition Bundle.h:418
ErrorStatus readFromUntil(TIter &iter, std::size_t len)
Read selected number of member fields (between specified indices).
Definition Bundle.h:391
ErrorStatus readFromUntilAndUpdateLen(TIter &iter, std::size_t &len)
Read selected number of member fields (between specified indices) while updating remaining length inf...
Definition Bundle.h:411
ErrorStatus readFromAndUpdateLen(TIter &iter, std::size_t &len)
Read selected number of member fields (from specified index) while updating remaining length informat...
Definition Bundle.h:339
std::size_t lengthFromUntil() const
Get length required to serialise specified bundled member fields.
Definition Bundle.h:216
void writeUntilNoStatus(TIter &iter)
Write selected member fields to output data sequence without error check and status report.
Definition Bundle.h:594
typename BaseImpl::VersionType VersionType
Version type.
Definition Bundle.h:85
bool refresh()
Refresh the field's contents.
Definition Bundle.h:625
bool operator!=(const Bundle< TFieldBase, TMembers, TOptions... > &field1, const Bundle< TFieldBase, TMembers, TOptions... > &field2) noexcept
Non-equality comparison operator.
Definition Bundle.h:734
static constexpr bool hasFieldType()
Compile time inquiry of whether comms::option::def::FieldType option has been used.
Definition Bundle.h:142
static constexpr bool hasEmptySerialization()
Compile time inquiry of whether comms::option::def::EmptySerialization option has been used.
Definition Bundle.h:135
Bundle< TFieldBase, TMembers, TOptions... > & toFieldBase(Bundle< TFieldBase, TMembers, TOptions... > &field)
Upcast type of the field definition to its parent comms::field::Bundle type in order to have access t...
Definition Bundle.h:805
Main namespace for all classes / functions of COMMS library.
ErrorStatus
Error statuses reported by the Communication module.
Definition ErrorStatus.h:17
constexpr unsigned version()
Version of the COMMS library as single numeric value.
Definition version.h:64
STL namespace.
Contains definition of all the options used by the COMMS library.
Check whether provided type is a variant of std::tuple.
Definition Tuple.h:36