WsfPlatformList

WsfPlatformList

Container

WsfPlatformList is a container of references to WsfPlatform objects. Platform lists are returned by many script types including:

In addition to the methods described below, the container may be processed using the foreach script language statement as follows:

WsfPlatformList platformList = <a method that returns a WsfPlatformList>;
foreach (WsfPlatform p in platformList)
{
   # ...Code to process the WsfPlatform object referenced through the variable 'p'...
}

Methods

int Count()
int Size()

Returns the number of entries list.

bool Empty()

Returns true if the list is empty.

Note

This is faster than checking for Count() != 0.

WsfPlatform Entry(int aIndex)
WsfPlatform Get(int aIndex)

Returns the entry at the given index, which must be in the range [ 0 .. Count()-1 ].

Note

The Get method allows the entries to be accessed via array indexing: e.g:

WsfPlatform p = platformList[i];
Iterator WsfPlatformListIterator GetIterator()

Returns an iterator that points to the beginning of the list. This is used by the script language to support the foreach command but may also be used directly.

Military Specific

WsfPlatformList is a container of references to WsfPlatform objects. Platform lists are returned by many script types including: