58 FW_ASSERT(i <
SIZE, static_cast<FwAssertArgType>(i), static_cast<FwAssertArgType>(
SIZE));
59 return this->elements[i];
65 FW_ASSERT(i <
SIZE, static_cast<FwAssertArgType>(i), static_cast<FwAssertArgType>(
SIZE));
66 return this->elements[i];
74 this->elements[index] = obj.elements[index];
84 this->elements[index] = a[index];
90 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 BuffQueueDepth& obj) {
177 #if FW_SERIALIZABLE_TO_STRING 179 void BuffQueueDepth ::
194 tmp.
format(
"%" PRIu32
"", this->elements[index]);
Serialization/Deserialization operation was successful.
Fw::SerializeStatus serializeTo(Fw::SerializeBufferBase &buffer) const
Serialization.
PlatformSizeType FwSizeType
bool operator==(const BuffQueueDepth &obj) const
Equality operator.
FwSizeType serializedSize() const
Get the dynamic serialized size of the array.
U32 ElementType
The element type.
SerializeStatus
forward declaration for string
SizeType maxLength() const
Get the maximum length of a string that the buffer can hold (which is capacity - 1) ...
ElementType & operator[](const FwSizeType i)
Subscript operator.
Array of queue depths for Fw::Buffer types.
Fw::SerializeStatus deserializeFrom(Fw::SerializeBufferBase &buffer)
Deserialization.
SizeType length() const
Get length of string.
BuffQueueDepth & operator=(const BuffQueueDepth &obj)
Copy assignment operator (object)
The size of the serial representation.
FormatStatus format(const CHAR *formatString,...)
write formatted string to buffer
BuffQueueDepth()
Constructor (default value)
RateGroupDivider component implementation.
SerializeStatus serializeFrom(U8 val)
serialize 8-bit unsigned int
bool operator!=(const BuffQueueDepth &obj) const
Inequality operator.
PlatformAssertArgType FwAssertArgType
The type of arguments to assert functions.
SerializeStatus deserializeTo(U8 &val)
deserialize 8-bit unsigned int