59 FW_ASSERT(i <
SIZE, static_cast<FwAssertArgType>(i), static_cast<FwAssertArgType>(
SIZE));
60 return this->elements[i];
66 FW_ASSERT(i <
SIZE, static_cast<FwAssertArgType>(i), static_cast<FwAssertArgType>(
SIZE));
67 return this->elements[i];
75 this->elements[index] = obj.elements[index];
85 this->elements[index] = a[index];
91 operator=(
const std::initializer_list<ElementType>& il)
96 for (
const auto& e : il) {
97 FW_ASSERT(i <
SIZE, static_cast<FwAssertArgType>(i), static_cast<FwAssertArgType>(
SIZE));
98 this->elements[i] = e;
108 this->elements[index] = e;
117 if (!((*
this)[index] == obj[index])) {
127 return !(*
this == obj);
132 std::ostream& operator<<(std::ostream& os,
const ComQueueDepth& obj) {
183 #if FW_SERIALIZABLE_TO_STRING 185 void ComQueueDepth ::
200 tmp.
format(
"%" PRIu32
"", this->elements[index]);
Serialization/Deserialization operation was successful.
PlatformSizeType FwSizeType
ComQueueDepth & operator=(const ComQueueDepth &obj)
Copy assignment operator (object)
virtual SerializeStatus serializeFrom(U8 val, Endianness mode=Endianness::BIG)=0
Serialize an 8-bit unsigned integer value.
Array of queue depths for Fw::Com types.
SerializeStatus
forward declaration for string
virtual SerializeStatus deserializeTo(U8 &val, Endianness mode=Endianness::BIG)=0
Deserialize an 8-bit unsigned integer value.
bool operator==(const ComQueueDepth &obj) const
Equality operator.
ElementType & operator[](const FwSizeType i)
Subscript operator.
Fw::SerializeStatus serializeTo(Fw::SerialBufferBase &buffer, Fw::Endianness mode=Fw::Endianness::BIG) const
Serialization.
Fw::SerializeStatus deserializeFrom(Fw::SerialBufferBase &buffer, Fw::Endianness mode=Fw::Endianness::BIG)
Deserialization.
FwSizeType serializedSize() const
Get the dynamic serialized size of the array.
bool operator!=(const ComQueueDepth &obj) const
Inequality operator.
The size of the serial representation.
ComQueueDepth()
Constructor (default value)
FormatStatus format(const CHAR *formatString,...)
write formatted string to buffer
SizeType maxLength() const
Get the maximum length of a string that the buffer can hold (which is capacity - 1) ...
RateGroupDivider component implementation.
virtual SizeType length() const
Get the length of the string.
U32 ElementType
The element type.
PlatformAssertArgType FwAssertArgType
The type of arguments to assert functions.