FBComponentList Class Reference


Detailed Description

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]

List of all members.

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].

Constructor & Destructor Documentation

Constructor.


Member Function Documentation

int __len__ ( )

Returns the number of elements.

Corresponds to python: len(object)

FBComponent __getitem__ ( int  pIndex)

Returns the ith component Corresponds to python: print l[1].

Parameters:
pIndexIndex of the components to get
Returns:
FBComponent element value

FBComponentList FBComponentList FBComponentList FBComponentList FBComponentList FBComponentList FBComponentList FBComponentList FBComponentList FBComponentList
FBComponentList FBComponentList FBComponentList FBComponentList FBComponentList FBComponentList FBComponentList FBComponentList FBComponentList FBComponentList