Skip to content

logo

Title: Eco.Queue1 Software Component Specification

USPD: US.ECO.00006-01 90
Component Name: Eco.Queue1
Short Description (max 300 char.): implements queue data structure
Component Use Category: MATH_ALGORITHMS
Component Type: UTILITY
CID: 25D72F83A2564F4E9F59E489BE85E2A4
Marketplace URL: n/a
Status: Draft
Modified Date: October 11, 2025
Version: 1.0
Tags: Queue, FIFO, Data structure

AuthorsCompany
Vladimir BashevPEERF

Table of Contents

1. Overview

1.1. Introduction

1.2. Notes

1.3. Links

2. Eco.Queue1 Component

3. IEcoQueue1 Interface

3.1. IEcoQueue1 Interface IDL descriptor

3.1.1. Count function

3.1.2. Peek function

3.1.3. Dequeue function

3.1.4. Enqueue function

3.1.5. Clear function

4. Error codes

Appendix A: Samples and Training programs

1. Overview

This document describes the requirements for the implementation of the Eco.Queue1 component.

1.1. Introduction

Description.

1.2. Notes

  • Keywords

1.3. Links

This paragraph contains links to information to help you understand this document:

Available in Marketplace at: http://address


2. Eco.Queue1 Component

The Eco.Queue1 component implements a queue data structure
The component has the following description:

3. IEcoQueue1 Interface


3.1. IEcoQueue1 Interface IDL descriptor

cpp
import "IEcoBase1.h"  
[  
object,  
uguid(287E5923-1366-46A3-A2D7-EAEAFD97068E),  
]  
interface IEcoQueue1 : IEcoUnknown {  
  
uint32_t	Count	([in] void);  
  
voidptr_t	Peek	([in] void);  
  
voidptr_t	Dequeue	([in] void);  
  
void	Enqueue	([in] voidptr_t obj);  
  
void	Clear	([in] void);  
}

3.1.1. Count function

The function retrieves the number of elements contained in the interface.

3.1.2. Peek function

The function returns the object that is at the beginning of the queue, but does not delete it.

3.1.3. Dequeue function

The function removes an object from the beginning of the queue and returns it.

3.1.4. Enqueue function

The function adds the object to the end of the queue.

3.1.5. Clear function

The function removes all objects from the queue.


4. Error codes

The following table contains the error codes.

Error codeValueDescription
ERR_ECO_SUCCESES0x0000Operation successful.
ERR_ECO_UNEXPECTED0xFFFFUnexpected condition.
ERR_ECO_POINTER0xFFEENULL was passed incorrectly for a pointer value.
ERR_ECO_NOINTERFACE0xFFEDNo such interface supported.
ERR_ECO_COMPONENT_NOTFOUND0xFFE9The component was not found.

Appendix A: Samples and Training programs