35 for (U32 index = 0; index <
SIZE; index++) {
36 this->elements[index] = a[index];
44 for (U32 index = 0; index <
SIZE; index++) {
45 this->elements[index] = e;
56 this->elements[0] = e1;
57 this->elements[1] = e2;
64 for (U32 index = 0; index <
SIZE; index++) {
65 this->elements[index] = obj.elements[index];
77 return this->elements[i];
84 return this->elements[i];
94 for (U32 index = 0; index <
SIZE; index++) {
95 this->elements[index] = obj.elements[index];
103 for (U32 index = 0; index <
SIZE; index++) {
104 this->elements[index] = a[index];
112 for (U32 index = 0; index <
SIZE; index++) {
113 this->elements[index] = e;
121 for (U32 index = 0; index <
SIZE; index++) {
122 if (!((*
this)[index] == obj[index])) {
132 return !(*
this == obj);
137 std::ostream& operator<<(std::ostream& os,
const ComQueueDepth& obj) {
154 for (U32 index = 0; index <
SIZE; index++) {
155 status = buffer.
serialize((*
this)[index]);
167 for (U32 index = 0; index <
SIZE; index++) {
176 #if FW_ARRAY_TO_STRING
178 void ComQueueDepth ::
181 static const char *formatString =
"[ "
PlatformAssertArgType FwAssertArgType
#define FW_ARRAY_TO_STRING_BUFFER_SIZE
Size of string to store toString() string output.
SerializeStatus deserialize(U8 &val)
deserialize 8-bit unsigned int
SerializeStatus serialize(U8 val)
serialize 8-bit unsigned int
Array of queue depths for Fw::Com types.
ElementType & operator[](const U32 i)
Subscript operator.
bool operator==(const ComQueueDepth &obj) const
Equality operator.
@ SIZE
The size of the array.
U32 ElementType
The element type.
Fw::SerializeStatus serialize(Fw::SerializeBufferBase &buffer) const
Serialization.
Fw::SerializeStatus deserialize(Fw::SerializeBufferBase &buffer)
Deserialization.
ComQueueDepth & operator=(const ComQueueDepth &obj)
Copy assignment operator (object)
ComQueueDepth()
Constructor (default value)
bool operator!=(const ComQueueDepth &obj) const
Inequality operator.
SerializeStatus
forward declaration for string
@ FW_SERIALIZE_OK
Serialization/Deserialization operation was successful.