|
Olaf
Overly Lightweight Acoustic Fingerprinting
|
A double ended queue interface. More...
Go to the source code of this file.
Typedefs | |
| typedef struct Olaf_Deque | Olaf_Deque |
Functions | |
| Olaf_Deque * | olaf_deque_new (size_t size) |
| Create an new double ended queue. | |
| void | olaf_deque_push_back (Olaf_Deque *olaf_deque, size_t value) |
| Push a value to the end of the deque. | |
| size_t | olaf_deque_back (Olaf_Deque *olaf_deque) |
| Return the back of the deque. | |
| bool | olaf_deque_empty (Olaf_Deque *olaf_deque) |
| Checks if the deque is empty. | |
| size_t | olaf_deque_front (Olaf_Deque *olaf_deque) |
| The front of the deque. | |
| void | olaf_deque_pop_back (Olaf_Deque *olaf_deque) |
| Pop the back from the deque. | |
| void | olaf_deque_pop_front (Olaf_Deque *olaf_deque) |
| Remove the front of the deque. | |
| void | olaf_deque_destroy (Olaf_Deque *olaf_deque) |
| Free resources and memory related to the deque. | |
A double ended queue interface.
This hides the underlying dequeue implementation used and gives a stable and simple interface for use in Olaf. It also manages memory related to the deque. Additionally, it adds a level of indirection which might come in handy to replace the underlying implementation.
| size_t olaf_deque_back | ( | Olaf_Deque * | olaf_deque | ) |
Return the back of the deque.
| olaf_deque | The olaf deque |
| void olaf_deque_destroy | ( | Olaf_Deque * | olaf_deque | ) |
Free resources and memory related to the deque.
| olaf_deque | The olaf deque |
| bool olaf_deque_empty | ( | Olaf_Deque * | olaf_deque | ) |
Checks if the deque is empty.
| olaf_deque | The olaf deque |
| size_t olaf_deque_front | ( | Olaf_Deque * | olaf_deque | ) |
The front of the deque.
| olaf_deque | The olaf deque |
| Olaf_Deque * olaf_deque_new | ( | size_t | size | ) |
Create an new double ended queue.
| [in] | size | The maximum size of de deque. Memory is allocated on initialization. |
| void olaf_deque_pop_back | ( | Olaf_Deque * | olaf_deque | ) |
Pop the back from the deque.
| olaf_deque | The olaf deque |
| void olaf_deque_pop_front | ( | Olaf_Deque * | olaf_deque | ) |
Remove the front of the deque.
| olaf_deque | The olaf deque |
| void olaf_deque_push_back | ( | Olaf_Deque * | olaf_deque, |
| size_t | value ) |
Push a value to the end of the deque.
| olaf_deque | The olaf deque | |
| [in] | value | The value |