Lynkeos
Instance Methods | Protected Attributes | List of all members
MyImageListEnumerator Class Reference

Enumerator on MyImageList. More...

#import <MyImageListEnumerator.h>

Inheritance diagram for MyImageListEnumerator:
Inheritance graph
[legend]
Collaboration diagram for MyImageListEnumerator:
Collaboration graph
[legend]

Instance Methods

(id) - initWithImageList:startAt:directSense:skipUnselected:
 Base initializer. More...
 
(id) - initWithImageList:
 Simplified initializer. More...
 

Protected Attributes

NSArray * _itemList
 The list of items to enumerate.
 
NSUInteger _listSize
 Number of first level items.
 
NSUInteger _itemIndex
 Index of current first level item.
 
MyImageListItem_currentContainer
 Container being enumerated if any.
 
NSUInteger _containerSize
 Number of items in the container.
 
NSUInteger _itemIndexInContainer
 Index of current item in the container.
 
int _step
 Sense of enumeration (1 or -1)
 
BOOL _skipUnselected
 Do not enumerate unselected items.
 
NSRecursiveLock_lock
 Lock for multithreads access.
 

Detailed Description

Enumerator on MyImageList.

This enumerator scans all the MyImageListItem images in a MyImageList. When the list contains a container, it scans each items inside it.

Method Documentation

- (id) initWithImageList: (NSArray*)  list

Simplified initializer.

It initializes a direct enumerator for all items starting at the first item of the list.

Parameters
listThe MyImageListItem array to scan
- (id) initWithImageList: (NSArray*)  list
startAt: (MyImageListItem*)  item
directSense: (BOOL)  direct
skipUnselected: (BOOL)  skip 

Base initializer.

It initializes a MyImageListEnumerator whith a custom starting point and a custom scanning direction.

Parameters
listThe MyImageListItem array to scan
itemThe item to start with. If nil, the first or last (if reverse enumerator) is taken
directDirect or reverse enumerator
skipWhether to skip unselected images

References _containerSize, _currentContainer, _itemIndex, _itemIndexInContainer, _itemList, _listSize, _lock, _skipUnselected, _step, MyImageListItem::getParent, MyImageListItem::indexOfItem:, and MyImageListItem::numberOfChildren.


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