Public Member Functions | Private Attributes | List of all members
micros_swarm::cqueue< Type > Class Template Reference

#include <circular_queue.h>

Public Member Functions

 cqueue ()
 
 cqueue (int capacity)
 
 cqueue (const cqueue &c)
 
bool empty ()
 
const Type & front ()
 
bool full ()
 
cqueueoperator= (const cqueue &c)
 
void pop ()
 
void print ()
 
void push (Type x)
 
int size ()
 
 ~cqueue ()
 

Private Attributes

int capacity_
 
Type * data_
 
int head_
 
int tail_
 

Detailed Description

template<class Type>
class micros_swarm::cqueue< Type >

Definition at line 30 of file circular_queue.h.

Constructor & Destructor Documentation

template<class Type >
micros_swarm::cqueue< Type >::cqueue ( )
inline

Definition at line 33 of file circular_queue.h.

template<class Type >
micros_swarm::cqueue< Type >::cqueue ( int  capacity)
inline

Definition at line 41 of file circular_queue.h.

template<class Type >
micros_swarm::cqueue< Type >::cqueue ( const cqueue< Type > &  c)
inline

Definition at line 49 of file circular_queue.h.

template<class Type >
micros_swarm::cqueue< Type >::~cqueue ( )
inline

Definition at line 72 of file circular_queue.h.

Member Function Documentation

template<class Type >
bool micros_swarm::cqueue< Type >::empty ( )
inline

Definition at line 77 of file circular_queue.h.

template<class Type >
const Type& micros_swarm::cqueue< Type >::front ( )
inline

Definition at line 118 of file circular_queue.h.

template<class Type >
bool micros_swarm::cqueue< Type >::full ( )
inline

Definition at line 87 of file circular_queue.h.

template<class Type >
cqueue& micros_swarm::cqueue< Type >::operator= ( const cqueue< Type > &  c)
inline

Definition at line 58 of file circular_queue.h.

template<class Type >
void micros_swarm::cqueue< Type >::pop ( )
inline

Definition at line 108 of file circular_queue.h.

template<class Type >
void micros_swarm::cqueue< Type >::print ( )
inline

Definition at line 128 of file circular_queue.h.

template<class Type >
void micros_swarm::cqueue< Type >::push ( Type  x)
inline

Definition at line 97 of file circular_queue.h.

template<class Type >
int micros_swarm::cqueue< Type >::size ( )
inline

Definition at line 123 of file circular_queue.h.

Member Data Documentation

template<class Type >
int micros_swarm::cqueue< Type >::capacity_
private

Definition at line 142 of file circular_queue.h.

template<class Type >
Type* micros_swarm::cqueue< Type >::data_
private

Definition at line 141 of file circular_queue.h.

template<class Type >
int micros_swarm::cqueue< Type >::head_
private

Definition at line 144 of file circular_queue.h.

template<class Type >
int micros_swarm::cqueue< Type >::tail_
private

Definition at line 143 of file circular_queue.h.


The documentation for this class was generated from the following file:


micros_swarm
Author(s):
autogenerated on Mon Jun 10 2019 14:02:06