FBModelList Class Reference

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

List of all members.


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]

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

FBModelList (  ) 

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

Generated on Tue Feb 9 19:34:01 2010 for Python Reference Guide by  doxygen 1.5.3