RLib  5.7
RLib - an opensource, lightweight and multi-platform framework for cpp programming
System::Collections::Generic::Queue< R > Class Template Reference

表示对象的先进先出集合 More...

Inheritance diagram for System::Collections::Generic::Queue< R >:
System::Collections::Generic::List< R >

Public Member Functions

const intptr_t GetLength ()
 获取 Queue<Of R> 中包含的元素数 More...
 
 RLIB_PROPERTY_GET (const intptr_t Count, GetLength)
 获取 Queue<Of R> 中包含的元素数 More...
 
R & Peek () const
 返回位于 Queue<Of R> 顶部的对象但不将其移除 More...
 
Dequeue ()
 移除并返回位于 Queue<Of R> 开始处的对象 More...
 
bool Enqueue (R item)
 将对象添加到 Queue<Of R> 的结尾处 More...
 
void Clear ()
 清空队列 More...
 

Public Attributes

 RLIB_DECLARE_DYNCREATE
 

Detailed Description

template<class R>
class System::Collections::Generic::Queue< R >

表示对象的先进先出集合

Member Function Documentation

template<class R>
void System::Collections::Generic::Queue< R >::Clear ( )
inline

清空队列

template<class R>
R System::Collections::Generic::Queue< R >::Dequeue ( )
inline

移除并返回位于 Queue<Of R> 开始处的对象

template<class R>
bool System::Collections::Generic::Queue< R >::Enqueue ( item)
inline

将对象添加到 Queue<Of R> 的结尾处

template<class R>
const intptr_t System::Collections::Generic::Queue< R >::GetLength ( )
inline

获取 Queue<Of R> 中包含的元素数

template<class R>
R& System::Collections::Generic::Queue< R >::Peek ( ) const
inline

返回位于 Queue<Of R> 顶部的对象但不将其移除

template<class R>
System::Collections::Generic::Queue< R >::RLIB_PROPERTY_GET ( const intptr_t  Count,
GetLength   
)

获取 Queue<Of R> 中包含的元素数


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