Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Protected Attributes
AEListIterator Class Reference

#include <nsAEUtils.h>

List of all members.

Public Member Functions

 AEListIterator (AEDesc *token)
 ~AEListIterator ()
Boolean Next (AEDesc *outItemData)
SInt32 GetNumItems ()

Protected Attributes

AEDesc mListToken
SInt32 mNumItems
SInt32 mCurItem
Boolean mIsListDesc

Detailed Description

Definition at line 269 of file nsAEUtils.h.

Constructor & Destructor Documentation

AEListIterator::AEListIterator ( AEDesc *  token)

Definition at line 656 of file nsAEUtils.cpp.

Here is the call graph for this function:

Definition at line 273 of file nsAEUtils.h.


Member Function Documentation

SInt32 AEListIterator::GetNumItems ( ) [inline]

Definition at line 276 of file nsAEUtils.h.

{ return mNumItems; }
Boolean AEListIterator::Next ( AEDesc *  outItemData)

Definition at line 681 of file nsAEUtils.cpp.

       if (mIsListDesc)
              AEKeyword     keyword;
              if (mCurItem == 0 || mCurItem > mNumItems)
                     return false;
              ThrowIfOSErr(::AEGetNthDesc(&mListToken, mCurItem, typeWildCard, &keyword, outItemData));
              // what about nested lists?
              AE_ASSERT(!AEListUtils::TokenContainsTokenList(outItemData), "Nested list found");
              if (mCurItem > 0)
                     return false;
              ThrowIfOSErr(::AEDuplicateDesc(&mListToken, outItemData));
       mCurItem ++;
       return true;

Here is the call graph for this function:

Member Data Documentation

SInt32 AEListIterator::mCurItem [protected]

Definition at line 281 of file nsAEUtils.h.

Definition at line 282 of file nsAEUtils.h.

AEDesc AEListIterator::mListToken [protected]

Definition at line 279 of file nsAEUtils.h.

SInt32 AEListIterator::mNumItems [protected]

Definition at line 280 of file nsAEUtils.h.

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