/*
Copyright 2007-2013 The NGenerics Team
(https://github.com/ngenerics/ngenerics/wiki/Team)
This program is licensed under the GNU Lesser General Public License (LGPL). You should
have received a copy of the license along with the source code. If not, an online copy
of the license can be found at http://www.gnu.org/copyleft/lesser.html.
*/
using System;
using System.Diagnostics.CodeAnalysis;
namespace NGenerics.DataStructures.Queues
{
///
/// A queue interface.
///
/// The type of the elements in the queue.
[SuppressMessage("Microsoft.Naming", "CA1711:IdentifiersShouldNotHaveIncorrectSuffix")]
public interface IQueue
{
///
/// Enqueues the item at the back of the queue.
///
/// The item.
void Enqueue(T item);
///
/// Dequeues the item at the front of the queue.
///
/// The item at the front of the queue.
/// The is empty.
T Dequeue();
///
/// Peeks at the item in the front of the queue, without removing it.
///
/// The item at the front of the queue.
/// The is empty.
T Peek();
}
}