list class
Description
Represents a list that can be accessed by index.
Notes
This class is a standard built-in class in the Rice language.
Instance that is created by declaration have been already initialized.
You can limit the type of the element by using the "{}" in the declaration.
If do not use the "{}" in the declaration, will be able to have an instance of any type as a element.
fitter
Signature | Description |
list() | Get an instance with initial value. |
list(string) | Gets an instance initialized by the initialization string. |
list{bool}(string) | Gets an instance initialized by the initialization string. |
list{int}(string) | Gets an instance initialized by the initialization string. |
list{long}(string) | Gets an instance initialized by the initialization string. |
list{real}(string) | Gets an instance initialized by the initialization string. |
list{string}(string) | Gets an instance initialized by the initialization string. |
getter
Signature | Description |
Count | Gets the number of elements that contained in the list. |
End | Gets the last element of the list. |
First | Gets the first element of the list. |
FirstChild | Gets the first element of the list. |
Fitted | Gets the value that indicates whether this instance was already initialized. |
LastChild | Gets the last element of the list. |
TypeName | Gets the type name. |
setter
This class does not have a setter.
method
Signature | Description |
Add(class) | Adds an instance to the end of the list. |
AddRange(class) | Adds the specified list to the end of the list. |
Clear() | Removes all elements from the list. |
ContainsByRef(class) | Gets a value that indicates whether there are elements that match as reference. |
ContainsByVal(class) | Gets a value that indicates whether there are elements that match as value. |
Copy() | It returns a shallow copy of the caller. |
Find(class) | It stores the first child that matches as a value in the proxy and returns it. |
Find(class,int) | It stores the first child that matches as a value in the proxy and returns it. |
FindAll(class) | It stores the all children that matches as a value in the list and returns it. |
FindLast(class) | It stores the last child that matches as a value in the proxy and returns it. |
FindLast(class,int) | It stores the last child that matches as a value in the proxy and returns it. |
GetAt(int) | Gets the element at the specified index. |
IndexOfByRef(class) | It returns an index of the first child that matches as a reference. |
IndexOfByRef(class,int) | It returns an index of the first child that matches as a reference. |
IndexOfByVal(class) | It returns an index of the first child that matches as a value. |
IndexOfByVal(class,int) | It returns an index of the first child that matches as a value. |
Insert(int,class) | Inserts an element at the specified index. |
LastIndexOfByRef(class) | It returns an index of the last child that matches as a reference. |
LastIndexOfByRef(class,int) | It returns an index of the last child that matches as a reference. |
LastIndexOfByVal(class) | It returns an index of the last child that matches as a value. |
LastIndexOfByVal(class,int) | It returns an index of the last child that matches as a value. |
Remove(class) | Removes the first element equal to the arguments from the list. |
RemoveAt(int) | Removes the element at the specified index of the list. |
RemoveFirst() | Removes the first element of the list. |
RemoveLast() | Removes the last element from the list. |
Reverse() | Reverses the order of the elements in the entire list. |
SetAt(int,class) | Sets the element at the specified index. |
Sort() | It sorts the caller list. |
Sort(bool) | Gets a new list is sorted. |