|
ADS
Algorithms and Data Structures
|
A double ended queue on a circular vector that grows, beyond the book. More...
Files | |
| file | ADS/queue/RingDeque.h |
| A double ended queue on a circular vector that grows, beyond the book: the circular vector of ArrayQueue [see ArrayQueue.h] whose capacity is a power of 2, so that a place is reduced by a mask instead of a division, and that doubles when full, the items moved in order to the front of the new vector (\( O( 1 ) \) amortized time per insertion). | |
Classes | |
| class | ADS::RingDeque< T > |
| a double ended queue on a circular vector of \( 2^k \) places that doubles More... | |
Macros | |
| #define | ADS_RING_INLINE ADS_ALWAYS_INLINE |
| the operations at the ends, inlined even where the compiler would not | |
| #define | ADS_RING_NOINLINE ADS_NOINLINE |
| the growth, never inlined | |
A double ended queue on a circular vector that grows, beyond the book.
The definitions, the invariants and the costs of the area are in Theory of queues.
| #define ADS_RING_INLINE ADS_ALWAYS_INLINE |
the operations at the ends, inlined even where the compiler would not
| #define ADS_RING_NOINLINE ADS_NOINLINE |
the growth, never inlined