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 868 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, const 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 872 of file fbproperties.h.

~FBPropertyBaseList ( ) [inline]

Destructor.

Definition at line 875 of file fbproperties.h.

        {

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

Constructor.

Parameters:
pParentParent for property list.
pNameName of property list.

Definition at line 883 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:
pItemProperty to find in the list.
Returns:
Index where pItem can be found.

Definition at line 913 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:
pItemProperty to remove from the list.
Returns:
Index where property was removed.

Reimplemented in FBPropertyListAnimationNode, and FBPropertyListCommPort.

Definition at line 930 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:
pIndexIndex to access.
Returns:
Property at pIndex.

Definition at line 944 of file fbproperties.h.

        {
            return operator[](pIndex); 
        }

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