Comments (3)
Hello,
Well, you can probably make a loop (limited to q.nbRecs
) as you said using q.peekIdx
method to get every values to check.
But... a queue is not a list of elements, it is designed to be used as FIFO
or LIFO
, thus you can peek records to see if new record has to be stored in the queue, but you can't remove a record at any desired index.
Some kind of workaround for you would be flushing the whole queue (with q.flush
), or if in need of a circular buffer, using FIFO
implementation with overwrite=true
might work too (without the need to pull items from queue).
Please keep in mind an issue tracker is not a place to ask for implementation help (there are lots of forums for that (eg. stack exchange)) but to raise bugs/issues or ask for improvements / new functionalities.
Regards,
SMFSW
from queue.
Thanks for the answer and sorry for the misusing of the issue tracker !
from queue.
Glad if I was able to help!
If needed, my libraries includes a contact email in README.md
.
Closing the issue for now,
Regards,
SMFSW
from queue.
Related Issues (16)
- Request: add keyword and function POP HOT 6
- Feature request: interrupt safe HOT 5
- Add method to peek last item in queue HOT 5
- number of records in the queue HOT 1
- Here's a more simple example script, in case it's useful to anyone HOT 2
- can't transmit string to queue HOT 2
- Missing definition for size_t
- ESP8266 - error: 'Queue' does not name a type HOT 3
- parallel access of getRemainingCount() / getCount() / nbRecs() HOT 4
- print all members of a static queue HOT 1
- Esp32 compatibility HOT 1
- free() in constructor? HOT 2
- Add unit tests and continuous integration HOT 6
- Publish Doxygen doc to GitHub pages HOT 3
- Limit on data types a Queue may hold? HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from queue.