# Supported list protocol methods:
len(propertyListComponent)
component= propertyListComponent[0]
propertyListComponent[0] = my_component
if my_component in propertyListComponent:
print "it is contained!"
del propertyListComponent[0]
Public Member Functions |
|
int | __len__ () |
Returns the number of elements. |
|
FBComponent | __getitem__ (int pIndex) |
Returns the ith component Corresponds to
python: print v[1]. |
|
__setitem__ (int pIndex, FBComponent pComponentValue) | |
Sets the ith components Corresponds to
python: v[1] = my_component. |
|
bool | __contains__ (FBComponent pComponent) |
Check if a FCComponent is already in
PropertyList Corresponds to python: if object
in propertyList:. |
|
append (FBComponent pComp) | |
Append new FBComponent at end of list. |
|
int | count () |
Returns the number of elements. |
|
insert (int pIndex, FBComponent pComp) | |
Insert a new element in list. |
|
remove (int pIndex) | |
Remove an element in list. |
|
removeall () | |
Remove all elements of list. |
|
FBComponent | pop () |
Remove last element of list. |
|
FBComponent | pop (int pIndex) |
Remove an element in list. |
int __len__ | ( | ) |
Returns the number of elements.
Corresponds to python: len(object)
Reimplemented from FBPropertyList.
FBComponent __getitem__ | ( | int | pIndex | ) |
Returns the ith component Corresponds to python: print v[1].
pIndex | Index of the components to get (0 to 2) |
Reimplemented from FBPropertyList.
__setitem__ | ( | int | pIndex, | |
FBComponent | pComponentValue | |||
) |
Sets the ith components Corresponds to python: v[1] = my_component.
pIndex | Index of the components to set | |
pComponentValue | a FBComponent to set |
bool __contains__ | ( | FBComponent | pComponent | ) |
Check if a FCComponent is already in PropertyList Corresponds to python: if object in propertyList:.
pComponent | Component to check for inclusion |
append | ( | FBComponent | pComp | ) |
Append new FBComponent at end of list.
pComp | to append |
int count | ( | ) |
Returns the number of elements.
Corresponds to python: del propertyList[2]
insert | ( | int | pIndex, | |
FBComponent | pComp | |||
) |
Insert a new element in list.
pIndex | Index where to insert component | |
pComp | Component to append |
removeall | ( | ) |
Remove all elements of list.
FBComponent pop | ( | ) |
Remove last element of list.
FBComponent pop | ( | int | pIndex | ) |
Remove an element in list.
pIndex | Index where to remove element. |