/* 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; namespace NGenerics.DataStructures.General { /// /// An interface for the data structure. /// /// The type of elements in the heap. public interface IHeap { /// /// Adds the specified item. /// /// The item. void Add(T item); /// /// Removes the root and returns it. /// /// The root of the . /// The is empty. T RemoveRoot(); /// /// Gets the root. /// /// The root. /// The is empty. T Root { get; } } }