Author: code34
Author Website: https://github.com/code34/oo_queue.altis

Requirements: No addons required

Version: 0.3

Short description: Create a main bus message between clients & server.

Support the author:

100% of your donation goes directly to the author of this content!
Date: 2018-01-20 19:52


Comments: (0)
Rating:



 





OO_QUEUE - Priority Queue

by
code34


Description:
In computer science, a priority queue is an abstract data type which is like a regular queue or stack data structure, but where additionally each element has a "priority" associated with it. In a priority queue, an element with high priority is served before an element with low priority. If two elements have the same priority, they are served according to their order in the queue (source: wikipedia).

Features:
Add element in a priority queue according a priority
Get the first element in the queue according its priority

Applications:
Bandwidth management
Discrete event simulation
Dijkstra's algorithm
Huffman coding
Best-first search algorithms
ROAM triangulation algorithm
Prim's algorithm for minimum spanning tree


Installation / Usage:
Reference: http://forums.bistudio.com/showthread.php?167980-Object-Oriented-SQF-Scripting-and-Compiling

For usage instructions and information of how to use the OO_QUEUE - PRIORITY QUEUE please refer to the included documentation and/or example mission.

Put the "oo_template.sqf" and the "oop.h" files in your mission directory
Put this code into your mission init.sqf:
call compilefinal preprocessFileLineNumbers "oo_template.sqf";
See example mission in directory: init.sqf


Credits & Thanks:
Author: code34


License / Disclaimer:
Copyright © 2016 Nicolas BOITEUX

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or(at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

You can share, modify, distribute this script but don't remove the licence and the name of the original author


Changelog:
v0.3
- optimise performance around Killzone kid suggestions
- add unit tests

v0.2
- fix private keyword
- performance improvement

v0.1
- first release


Forum topic:
- BI forums




Enable javascript to be able to download from Armaholic please!



Tags: No tags