Python Reference Guide
 
Loading...
Searching...
No Matches
FBComponentList Class Reference

FBComponentList class. More...

#include <pyfbsdk.h>

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

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:
len(l)
print l[0]
FBComponentList()
Constructor.

Constructor & Destructor Documentation

◆ FBComponentList()

Constructor.

Member Function Documentation

◆ __getitem__()

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

◆ __len__()

int __len__ ( )

Returns the number of elements.

Corresponds to python: len(object)