This class implements a special sort of list that can only contain instances of FBModel objects. Users can query the content of the list with the bracket operator.
# Supported list protocol methods: l = FBModelList() len(l) print l[0]
Public Member Functions |
|
| FBModelList () | |
| Constructor. |
|
| int | GetCount () |
| Get number of models in list. |
|
| int | count () |
| Get number of models in list. |
|
| FBModel | GetModel (int pIndex) |
| Get the ith model in list. |
|
| FBModel | Add (FBModel pModel) |
| Append a new modle at the end of the
list. |
|
| FBModel | append (FBModel pModel) |
| Append a new modle at the end of the
list. |
|
| void | Clear () |
| Empty the list from all models.
|
|
| void | removeall () |
| Empty the list from all models.
|
|
| int | __len__ () |
| Returns the number of elements. |
|
| FBModel | __getitem__ (int pIndex) |
| Returns the ith component Corresponds to
python: print l[1]. |
|
| FBModelList | ( | ) |
Constructor.
Get the ith model in list.
| pIndex | index of modle to get (0 based). |
| void Clear | ( | ) |
Empty the list from all models.
| void removeall | ( | ) |
Empty the list from all models.
| int __len__ | ( | ) |
Returns the number of elements.
Corresponds to python: len(object)
Returns the ith component Corresponds to python: print l[1].
| pIndex | Index of the components to get |
1.5.3