#include <circular_queue.h>
Public Member Functions | |
| cqueue () | |
| cqueue (int capacity) | |
| cqueue (const cqueue &c) | |
| bool | empty () |
| const Type & | front () |
| bool | full () |
| cqueue & | operator= (const cqueue &c) |
| void | pop () |
| void | print () |
| void | push (Type x) |
| int | size () |
| ~cqueue () | |
Private Attributes | |
| int | capacity_ |
| Type * | data_ |
| int | head_ |
| int | tail_ |
Definition at line 30 of file circular_queue.h.
| micros_swarm::cqueue< Type >::cqueue | ( | ) | [inline] |
Definition at line 33 of file circular_queue.h.
| micros_swarm::cqueue< Type >::cqueue | ( | int | capacity | ) | [inline] |
Definition at line 41 of file circular_queue.h.
| micros_swarm::cqueue< Type >::cqueue | ( | const cqueue< Type > & | c | ) | [inline] |
Definition at line 49 of file circular_queue.h.
| micros_swarm::cqueue< Type >::~cqueue | ( | ) | [inline] |
Definition at line 72 of file circular_queue.h.
| bool micros_swarm::cqueue< Type >::empty | ( | ) | [inline] |
Definition at line 77 of file circular_queue.h.
| const Type& micros_swarm::cqueue< Type >::front | ( | ) | [inline] |
Definition at line 118 of file circular_queue.h.
| bool micros_swarm::cqueue< Type >::full | ( | ) | [inline] |
Definition at line 87 of file circular_queue.h.
| cqueue& micros_swarm::cqueue< Type >::operator= | ( | const cqueue< Type > & | c | ) | [inline] |
Definition at line 58 of file circular_queue.h.
| void micros_swarm::cqueue< Type >::pop | ( | ) | [inline] |
Definition at line 108 of file circular_queue.h.
| void micros_swarm::cqueue< Type >::print | ( | ) | [inline] |
Definition at line 128 of file circular_queue.h.
| void micros_swarm::cqueue< Type >::push | ( | Type | x | ) | [inline] |
Definition at line 97 of file circular_queue.h.
| int micros_swarm::cqueue< Type >::size | ( | ) | [inline] |
Definition at line 123 of file circular_queue.h.
int micros_swarm::cqueue< Type >::capacity_ [private] |
Definition at line 142 of file circular_queue.h.
Type* micros_swarm::cqueue< Type >::data_ [private] |
Definition at line 141 of file circular_queue.h.
int micros_swarm::cqueue< Type >::head_ [private] |
Definition at line 144 of file circular_queue.h.
int micros_swarm::cqueue< Type >::tail_ [private] |
Definition at line 143 of file circular_queue.h.