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 BuffQueueDepth& obj) {
183 #if FW_SERIALIZABLE_TO_STRING 185 void BuffQueueDepth ::
200 tmp.
format(
"%" PRIu32
"", this->elements[index]);
Serialization/Deserialization operation was successful.
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.
virtual SerializeStatus serializeFrom(U8 val, Endianness mode=Endianness::BIG)=0
Serialize an 8-bit unsigned integer value.
SerializeStatus
forward declaration for string
virtual SerializeStatus deserializeTo(U8 &val, Endianness mode=Endianness::BIG)=0
Deserialize an 8-bit unsigned integer value.
ElementType & operator[](const FwSizeType i)
Subscript operator.
Array of queue depths for Fw::Buffer types.
BuffQueueDepth & operator=(const BuffQueueDepth &obj)
Copy assignment operator (object)
FormatStatus format(const CHAR *formatString,...)
write formatted string to buffer
Fw::SerializeStatus deserializeFrom(Fw::SerialBufferBase &buffer, Fw::Endianness mode=Fw::Endianness::BIG)
Deserialization.
BuffQueueDepth()
Constructor (default value)
SizeType maxLength() const
Get the maximum length of a string that the buffer can hold (which is capacity - 1) ...
The size of the serial representation.
RateGroupDivider component implementation.
virtual SizeType length() const
Get the length of the string.
Fw::SerializeStatus serializeTo(Fw::SerialBufferBase &buffer, Fw::Endianness mode=Fw::Endianness::BIG) const
Serialization.
bool operator!=(const BuffQueueDepth &obj) const
Inequality operator.
PlatformAssertArgType FwAssertArgType
The type of arguments to assert functions.