树
0.1
数据结构_第6章
|
队列的抽象类 More...
#include <Queue.h>
Public Types | |
typedef T | value_type |
类型别名定义 More... | |
typedef value_type & | reference |
数据的引用 More... | |
typedef size_t | size_type |
计数器类型 More... | |
Public Member Functions | |
virtual bool | isEmpty () const =0 |
判队空 More... | |
virtual void | enQueue (const value_type &x)=0 |
入队一个元素 More... | |
virtual value_type | deQueue ()=0 |
出队一个元素 More... | |
virtual value_type | getHead () const =0 |
Get the Head object. More... | |
virtual | ~Queue ()=default |
Destroy the Queue object. More... | |
Public Attributes | |
const typedef value_type & | const_reference |
数据的常量引用 More... | |
队列的抽象类
T | 数据的类型 |
typedef value_type& Queue::Queue< T >::reference |
typedef size_t Queue::Queue< T >::size_type |
typedef T Queue::Queue< T >::value_type |
|
virtualdefault |
Destroy the Queue object.
|
pure virtual |
出队一个元素
Implemented in Queue::linkQueue< T >, Queue::seqQueue< T >, and Queue::vecQueue< T >.
|
pure virtual |
入队一个元素
x | 数据的值 |
|
pure virtual |
Get the Head object.
Implemented in Queue::linkQueue< T >, Queue::seqQueue< T >, and Queue::vecQueue< T >.
|
pure virtual |
判队空
Implemented in Queue::linkQueue< T >, Queue::seqQueue< T >, and Queue::vecQueue< T >.
const typedef value_type& Queue::Queue< T >::const_reference |