31 for (U32 index = 0; index <
SIZE; index++) {
32 this->elements[index] = a[index];
40 for (U32 index = 0; index <
SIZE; index++) {
41 this->elements[index] = e;
52 this->elements[0] = e1;
53 this->elements[1] = e2;
60 for (U32 index = 0; index <
SIZE; index++) {
61 this->elements[index] = obj.elements[index];
72 FW_ASSERT(i <
SIZE, static_cast<FwAssertArgType>(i), static_cast<FwAssertArgType>(
SIZE));
73 return this->elements[i];
79 FW_ASSERT(i <
SIZE, static_cast<FwAssertArgType>(i), static_cast<FwAssertArgType>(
SIZE));
80 return this->elements[i];
90 for (U32 index = 0; index <
SIZE; index++) {
91 this->elements[index] = obj.elements[index];
99 for (U32 index = 0; index <
SIZE; index++) {
100 this->elements[index] = a[index];
108 for (U32 index = 0; index <
SIZE; index++) {
109 this->elements[index] = e;
117 for (U32 index = 0; index <
SIZE; index++) {
118 if (!((*
this)[index] == obj[index])) {
128 return !(*
this == obj);
133 std::ostream& operator<<(std::ostream& os,
const ComQueueDepth& obj) {
150 for (U32 index = 0; index <
SIZE; index++) {
151 status = buffer.
serialize((*
this)[index]);
163 for (U32 index = 0; index <
SIZE; index++) {
172 #if FW_SERIALIZABLE_TO_STRING 174 void ComQueueDepth ::
177 static const char *formatString =
"[ " Serialization/Deserialization operation was successful.
SerializeStatus serialize(U8 val)
serialize 8-bit unsigned int
ComQueueDepth & operator=(const ComQueueDepth &obj)
Copy assignment operator (object)
Array of queue depths for Fw::Com types.
SerializeStatus
forward declaration for string
Fw::SerializeStatus deserialize(Fw::SerializeBufferBase &buffer)
Deserialization.
bool operator==(const ComQueueDepth &obj) const
Equality operator.
bool operator!=(const ComQueueDepth &obj) const
Inequality operator.
ComQueueDepth()
Constructor (default value)
ElementType & operator[](const U32 i)
Subscript operator.
Fw::SerializeStatus serialize(Fw::SerializeBufferBase &buffer) const
Serialization.
FormatStatus format(const CHAR *formatString,...)
write formatted string to buffer
SerializeStatus deserialize(U8 &val)
deserialize 8-bit unsigned int
U32 ElementType
The element type.