Public Member Functions | Protected Member Functions | Protected Attributes

KFbxIteratorSrcBase Class Reference

Search for all occurrences

Detailed Description

Definition at line 1284 of file kfbxobject.h.

#include <kfbxobject.h>

Inheritance diagram for KFbxIteratorSrcBase:
Inheritance graph
[legend]

List of all members.

Public Member Functions

  KFbxIteratorSrcBase (KFbxProperty &pProperty, kFbxClassId pClassId)
  KFbxIteratorSrcBase (KFbxObject *pObject, kFbxClassId pClassId)
KFbxObject GetFirst ()
KFbxObject GetNext ()
KFbxObject GetSafeNext ()
KFbxObject GetLast ()
KFbxObject GetPrevious ()
KFbxObject GetSafePrevious ()

Protected Member Functions

void  ResetToBegin ()
void  ResetToEnd ()

Protected Attributes

KFbxProperty  mProperty
kFbxClassId  mClassId
int  mSize
int  mIndex

Constructor & Destructor Documentation

KFbxIteratorSrcBase ( KFbxProperty pProperty,
kFbxClassId  pClassId 
) [inline]

Definition at line 1292 of file kfbxobject.h.

                                                                             :
        mProperty(pProperty),
        mClassId(pClassId),
        mSize(0),
        mIndex(-1)
    {
        ResetToBegin();
    }
KFbxIteratorSrcBase ( KFbxObject pObject,
kFbxClassId  pClassId 
) [inline]

Definition at line 1300 of file kfbxobject.h.

                                                                         :
        mProperty(pObject->RootProperty),
        mClassId(pClassId),
        mSize(0),
        mIndex(-1)
    {
        ResetToBegin();
    }

Member Function Documentation

KFbxObject* GetFirst ( ) [inline]

Reimplemented in KFbxIteratorSrc< Type >.

Definition at line 1308 of file kfbxobject.h.

    {
        ResetToBegin();
        return GetNext();
    }
KFbxObject* GetNext ( ) [inline]

Reimplemented in KFbxIteratorSrc< Type >.

Definition at line 1313 of file kfbxobject.h.

    {
        mIndex++;
        return ((mIndex>=0) && (mIndex<mSize)) ? mProperty.GetSrcObject(mClassId,mIndex) : NULL;
    }
KFbxObject* GetSafeNext ( ) [inline]

Reimplemented in KFbxIteratorSrc< Type >.

Definition at line 1318 of file kfbxobject.h.

KFbxObject* GetLast ( ) [inline]

Reimplemented in KFbxIteratorSrc< Type >.

Definition at line 1323 of file kfbxobject.h.

    {
        ResetToEnd();
        return GetPrevious();
    }
KFbxObject* GetPrevious ( ) [inline]

Reimplemented in KFbxIteratorSrc< Type >.

Definition at line 1328 of file kfbxobject.h.

    {
        mIndex--;
        return ((mIndex>=0) && (mIndex<mSize)) ? mProperty.GetSrcObject(mClassId,mIndex) : NULL;
    }
KFbxObject* GetSafePrevious ( ) [inline]

Reimplemented in KFbxIteratorSrc< Type >.

Definition at line 1333 of file kfbxobject.h.

void ResetToBegin ( ) [inline, protected]
void ResetToEnd ( ) [inline, protected]

Member Data Documentation

Definition at line 1287 of file kfbxobject.h.

kFbxClassId mClassId [protected]

Definition at line 1288 of file kfbxobject.h.

int mSize [protected]

Definition at line 1289 of file kfbxobject.h.

int mIndex [protected]

Definition at line 1290 of file kfbxobject.h.


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

KFbxIteratorSrcBase KFbxIteratorSrcBase KFbxIteratorSrcBase KFbxIteratorSrcBase KFbxIteratorSrcBase KFbxIteratorSrcBase KFbxIteratorSrcBase KFbxIteratorSrcBase KFbxIteratorSrcBase KFbxIteratorSrcBase
KFbxIteratorSrcBase KFbxIteratorSrcBase KFbxIteratorSrcBase KFbxIteratorSrcBase KFbxIteratorSrcBase KFbxIteratorSrcBase KFbxIteratorSrcBase KFbxIteratorSrcBase KFbxIteratorSrcBase KFbxIteratorSrcBase