FBComponentList class.
This class implements a special sort of list that can only contain instances of FBComponent objects. To users it behaves as a tuple, since it is not possible to add new objects in the list. Only methods or function that uses FBComponentList as argument can insert new objects. Users can query the content of the list with the bracket operator.
# Supported list protocol methods: l = FBComponentList() len(l) print l[0]
Public Member Functions | |
FBComponentList () | |
Constructor. | |
int | __len__ () |
Returns the number of elements. | |
FBComponent | __getitem__ (int pIndex) |
Returns the ith component Corresponds to python: print l[1]. |
FBComponentList | ( | ) |
Constructor.
int __len__ | ( | ) |
FBComponent __getitem__ | ( | int | pIndex | ) |
Returns the ith component Corresponds to python: print l[1].
pIndex | Index of the components to get |