(Inherits from MfEnumerableBase)
Represents a first-in, first-out collection of objects.
Name |
Description |
|
Initializes a new instance of the MfQueue class |
Name |
Description |
|
Returns a new enumerator to enumerate this object's key-value pairs. This method is usually not called directly, but by the for-loop or by GetEnumerator(). Overrides MfEnumerableBase._NewEnum() |
||
Adds MfAttribute extended items to extended classes. Inherited from MfObject. |
||
Removes all elements from the instance and sets Count to Zero |
||
Clones all the elements of the current instance an return a new instance. |
||
Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object. Inherited from MfObject. |
||
Determines whether the MfQueue contains a specific element. |
||
Removes and returns the object at the beginning of the MfQueue. |
||
Adds an object to the end of the MfQueue. |
||
Compares obj to current instance to see if they are the same. Inherited from MfObject. |
||
Gets an MfAttribute of the class. Inherited from MfObject. |
||
Gets a MfGenericList of MfAttribute that Contains the attributes for the current class instance. Inherited from MfObject. |
||
Gets an enumerator. Inherited from MfEnumerableBase |
||
Gets the zero-based index value of the position of MfAttribute within the instance of the class. Inherited from MfObject. |
||
Gets the Type for the for the Class .Inherited from MfObject. |
||
Gets if the current instance of class derived from MfSystemException has MfAttribute. Inherited from MfObject. |
||
Gets if current instance of object is of the same type. Inherited from MfObject. Inherited from MfObject. |
||
Get if the current class is an instance. Inherited from MfObject. |
||
Creates a shallow copy of the current MfObject instance. Inherited from MfObject. |
||
Returns the object at the beginning of the MfQueue without removing it. |
||
Gets a string representation of the MfObject. Inherited from MfObject. |
||
Verifies the the current object is set to an instance. Inherited from MfObject. |
||
VerifyIsNotInstance([MethodName, LineFile, LineNumber, Source]) |
Verifies the the current object is NOT set to an instance. Used in Static methods. Inherited from MfObject. |
mfQ := new MfQueue()
i := 0
iEnd := 5
While, (i < iEnd)
{
mss := new MfString()
mss.Value := MfString.Format("String Value: '{0}'", i)
mfQ.Enqueue(mss)
i++
}
mfsOutput := new MfString()
While mfQ.Count > 0
{
mfsOutput.AppendLine(mfQ.Dequeue())
}
MsgBox, 64, Text, % mfsOutput.Value
/*
String Value: '0'
String Value: '1'
String Value: '2'
String Value: '3'
String Value: '4'
*/