Public Member Functions

FBPropertyBaseList< tType > Class Template Reference

Search for all occurrences

Detailed Description

template<class tType>
class FBPropertyBaseList< tType >

Base template class for list properties.

Definition at line 740 of file fbproperties.h.

#include <fbproperties.h>

Inheritance diagram for FBPropertyBaseList< tType >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

  FBPropertyBaseList ()
  Constructor.
  ~FBPropertyBaseList ()
  Destructor.
  FBPropertyBaseList (HIObject pParent, char *pName)
  Constructor.
virtual int  Add (tType pItem)=0
  Add a property to the list.
virtual tType  operator[] (int pIndex)=0
  [] operator overload.
virtual int  Find (tType pItem)
  Locate a property in the list.
virtual int  Remove (tType pItem)
  Remove pItem from the list.
virtual tType  GetAt (int pIndex)
  Get a property at pIndex.

Constructor & Destructor Documentation

FBPropertyBaseList ( ) [inline]

Constructor.

Definition at line 744 of file fbproperties.h.

~FBPropertyBaseList ( ) [inline]

Destructor.

Definition at line 747 of file fbproperties.h.

    {

    }
FBPropertyBaseList ( HIObject  pParent,
char *  pName 
) [inline]

Constructor.

Parameters:
pParent Parent for property list.
pName Name of property list.

Definition at line 755 of file fbproperties.h.

:FBPropertyBasicList( pParent, pName ) {}

Member Function Documentation

virtual int Add ( tType  pItem ) [pure virtual]
virtual tType operator[] ( int  pIndex ) [pure virtual]
virtual int Find ( tType  pItem ) [inline, virtual]

Locate a property in the list.

Parameters:
pItem Property to find in the list.
Returns:
Index where pItem can be found.

Definition at line 785 of file fbproperties.h.

    { 
        int Index;
        for(Index=0; Index<GetCount(); Index++ ) 
        {
            if( operator[](Index)==pItem ) 
            {
                return Index; 
            }
        }
        return -1;
    }
virtual int Remove ( tType  pItem ) [inline, virtual]

Remove pItem from the list.

Parameters:
pItem Property to remove from the list.
Returns:
Index where property was removed.

Reimplemented in FBPropertyListAnimationNode, and FBPropertyListCommPort.

Definition at line 802 of file fbproperties.h.

    {
        int Index = Find( pItem ); 
        if (Index!=-1)
        {
            RemoveAt( Index );
        }
        return Index;
    }
virtual tType GetAt ( int  pIndex ) [inline, virtual]

Get a property at pIndex.

Parameters:
pIndex Index to access.
Returns:
Property at pIndex.

Definition at line 816 of file fbproperties.h.

    {
        return operator[](pIndex); 
    }

The documentation for this class was generated from the following file: