메소드 | 설명 | |
---|---|---|
Add ( object obj ) : int |
IList implementation. Adds the object at the right place.
|
|
AddRange ( ICollection coll ) : void |
The objects will be added at the right place.
|
|
Clear ( ) : void |
IList implementation. Idem
|
|
Clone ( ) : object |
ICloneable implementation. Idem
|
|
Contains ( object obj ) : bool |
IList implementation. Search for a specified object in the list. If the list is sorted, a <see cref = "ArrayList.BinarySearch">BinarySearch</see> is performed using IComparer interface. Else the <see cref = "Equals">Object.Equals</see> implementation is used.
|
|
CopyTo ( |
IList.ICollection implementation. Idem
|
|
Equals ( object obj ) : bool |
Object.Equals() override.
|
|
GetEnumerator ( ) : IEnumerator |
IList.IEnumerable implementation. Idem
|
|
GetHashCode ( ) : int |
Object.GetHashCode() override.
|
|
Heap ( ) : System |
Default constructor. Since no IComparer is provided here, added objects must implement the IComparer interface.
|
|
Heap ( IComparer comparer ) : System |
Constructor.
|
|
Heap ( IComparer comparer, int capacity ) : System |
Constructor.
|
|
Heap ( int capacity ) : System |
Constructor. Since no IComparer is provided, added objects must implement the IComparer interface.
|
|
IndexOf ( object obj ) : int |
IList implementation. Returns the index of the specified object in the list. If the list is sorted, a <see cref = "ArrayList.BinarySearch">BinarySearch</see> is performed using IComparer interface. Else the <see cref = "Equals">Object.Equals</see> implementation of objects is used.
|
|
IndexOf ( object obj, Equality areEqual ) : int |
Idem IndexOf(object), but with a specified equality function
|
|
IndexOf ( object obj, int start ) : int |
Idem IndexOf(object), but starting at a specified position in the list
|
|
IndexOf ( object obj, int start, Equality areEqual ) : int |
Idem IndexOf(object), but with a start index and a specified equality function
|
|
IndexOfMax ( ) : int |
Returns the object of the list whose value is maximum
|
|
IndexOfMin ( ) : int |
Returns the object of the list whose value is minimum
|
|
InitProperties ( IComparer comparer, int capacity ) : void | ||
Insert ( int index, object obj ) : void |
IList implementation. Cannot be used on a Heap.
|
|
InsertRange ( int index, ICollection coll ) : void |
Cannot be called on a Heap.
|
|
LimitOccurrences ( object value, int numberToKeep ) : void |
Limits the number of occurrences of a specified value. Same values are equals according to the Equals() method of objects in the list. The first occurrences encountered are kept.
|
|
Pop ( ) : object |
Returns the topmost object on the list and removes it from the list
|
|
Push ( object obj ) : int |
Pushes an object on list. It will be inserted at the right spot.
|
|
Remove ( object value ) : void |
IList implementation. Idem
|
|
RemoveAt ( int index ) : void |
IList implementation. Idem
|
|
RemoveDuplicates ( ) : void |
Removes all duplicates in the list. Each value encountered will have only one representant
|
|
ToString ( ) : string |
Object.ToString() override. Build a string to represent the list.
|
|
this ( int index ) : object |
IList implementation. Gets object's value at a specified index. The set operation is impossible on a Heap.
|
메소드 | 설명 | |
---|---|---|
ObjectIsCompliant ( object obj ) : bool |
public AddRange ( ICollection coll ) : void | ||
coll | ICollection | The object to add. |
리턴 | void |
public CopyTo ( |
||
array | ||
arrayIndex | int | |
리턴 | void |
public Heap ( IComparer comparer ) : System | ||
comparer | IComparer | Will be used to compare added elements for sort and search operations. |
리턴 | System |
public Heap ( IComparer comparer, int capacity ) : System | ||
comparer | IComparer | Will be used to compare added elements for sort and search operations. |
capacity | int |
/// Capacity of the list ( |
리턴 | System |
public Heap ( int capacity ) : System | ||
capacity | int |
/// Capacity of the list ( |
리턴 | System |
public IndexOf ( object obj, Equality areEqual ) : int | ||
obj | object | The object to locate. |
areEqual | Equality | Equality function to use for the search. |
리턴 | int |
public IndexOf ( object obj, int start ) : int | ||
obj | object | The object to locate. |
start | int | The index for start position. |
리턴 | int |
public IndexOf ( object obj, int start, Equality areEqual ) : int | ||
obj | object | The object to locate. |
start | int | The index for start position. |
areEqual | Equality | Equality function to use for the search. |
리턴 | int |
public InitProperties ( IComparer comparer, int capacity ) : void | ||
comparer | IComparer | |
capacity | int | |
리턴 | void |
public Insert ( int index, object obj ) : void | ||
index | int | The index before which the object must be added. |
obj | object | The object to add. |
리턴 | void |
public InsertRange ( int index, ICollection coll ) : void | ||
index | int | The index before which the objects must be added. |
coll | ICollection | The object to add. |
리턴 | void |
public LimitOccurrences ( object value, int numberToKeep ) : void | ||
value | object | Value whose occurrences number must be limited. |
numberToKeep | int | Number of occurrences to keep |
리턴 | void |
public Remove ( object value ) : void | ||
value | object | The object whose value must be removed if found in the list. |
리턴 | void |