Main Page | Modules | Class Hierarchy | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

ITSSectionEnumerator Class Reference

Collaboration diagram for ITSSectionEnumerator:

Collaboration graph
[legend]

Detailed Description

An NSEnumerator that traverses the scrollback and terminal sections of an IntegratedTSView.

Intended for the internal use of IntegratedTSView, in sectionEnumerator (IntegratedTSView) and reverseSectionEnumerator (IntegratedTSView).

Definition at line 24 of file IntegratedTSView.m.

Public Member Functions

(id) - initWithSections:terminal:reversed:
 Designated initializer.
(void) - dealloc [implementation]
(id) - nextObject [implementation]
(NSArray *) - allObjects [implementation]

Protected Attributes

NSMutableArray * sectionArray
SectionRecordterminalSection
int index
BOOL reversed


Member Function Documentation

- (NSArray *) allObjects   [implementation]
 

Definition at line 86 of file IntegratedTSView.m.

References index, reversed, and sectionArray.

- (void) dealloc   [implementation]
 

Definition at line 52 of file IntegratedTSView.m.

References sectionArray, and terminalSection.

- (id) initWithSections: (NSMutableArray *)  sects
terminal: (SectionRecord *)  terminal
reversed: (BOOL)  inReverse
 
 

Designated initializer.

Given the scrollback sections and the terminal section, and the direction, initialize the receiver. Retains the array and terminal section so that the iteration can be valid for the life of the iterator.

Parameters:
[in] sects The array of scrollback SectionRecords.
[in] terminal The TerminalSection containing the terminal view.
[in] inReverse BOOL, whether the enumerator starts at the terminal and goes back.
Return values:
self 

Definition at line 43 of file IntegratedTSView.m.

References index, reversed, sectionArray, and terminalSection.

- (id) nextObject   [implementation]
 

Definition at line 59 of file IntegratedTSView.m.

References index, reversed, sectionArray, and terminalSection.


Field Documentation

- (int) index [protected]
 

Definition at line 27 of file IntegratedTSView.m.

Referenced by allObjects, initWithSections:terminal:reversed:, and nextObject.

- (BOOL) reversed [protected]
 

Definition at line 28 of file IntegratedTSView.m.

Referenced by allObjects, initWithSections:terminal:reversed:, and nextObject.

- (NSMutableArray*) sectionArray [protected]
 

Definition at line 25 of file IntegratedTSView.m.

Referenced by allObjects, dealloc, initWithSections:terminal:reversed:, and nextObject.

- (SectionRecord*) terminalSection [protected]
 

Definition at line 26 of file IntegratedTSView.m.

Referenced by dealloc, initWithSections:terminal:reversed:, and nextObject.


The documentation for this class was generated from the following file:
Generated on Fri Sep 30 12:01:13 2005 for Crescat by  doxygen 1.4.4