FBModelList Class Reference


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

List of all members.

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

Constructor & Destructor Documentation

Constructor.


Member Function Documentation

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.

Parameters:
pIndex index of modle to get (0 based).
Returns:
The pIndex model
FBModel Add ( FBModel  pModel )

Append a new modle at the end of the list.

Parameters:
pModel model to add to the list.
FBModel append ( FBModel  pModel )

Append a new modle at the end of the list.

Parameters:
pModel model to add to 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.

Corresponds to python: len(object)

FBModel __getitem__ ( int  pIndex )

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

Parameters:
pIndex Index of the components to get
Returns:
Model element value

FBModelList FBModelList FBModelList FBModelList FBModelList FBModelList FBModelList FBModelList FBModelList FBModelList
FBModelList FBModelList FBModelList FBModelList FBModelList FBModelList FBModelList FBModelList FBModelList FBModelList