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

FBModelList class. More...

#include <pyfbsdk.h>

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

Detailed Description

FBModelList class.

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

Constructor & Destructor Documentation

◆ FBModelList()

Constructor.

Member Function Documentation

◆ __getitem__()

FBModel __getitem__ ( int  pIndex)

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

Parameters
pIndexIndex of the components to get
Returns
Model element value

◆ __len__()

int __len__ ( )

Returns the number of elements.

Corresponds to python: len(object)

◆ Add()

FBModel Add ( FBModel  pModel)

Append a new modle at the end of the list.

Parameters
pModelmodel to add to the list.

◆ append()

FBModel append ( FBModel  pModel)

Append a new modle at the end of the list.

Parameters
pModelmodel to add to the list.

◆ Clear()

void Clear ( )

Empty the list from all models.

◆ count()

int count ( )

Get number of models in list.

◆ GetCount()

int GetCount ( )

Get number of models in list.

◆ GetModel()

FBModel GetModel ( int  pIndex)

Get the ith model in list.

Parameters
pIndexindex of modle to get (0 based).
Returns
The pIndex model

◆ removeAll()

void removeAll ( )

Empty the list from all models.