Home Reference Source
public class | source

BaseIterator

Direct Subclass:

Iterator, ReverseIterator

Base class for STL-like iterators. It references a node (or index) and a container. Navigation is achieved by calling container's prev() and next() methods.

Constructor Summary

Public Constructor
public

constructor(node: *, container: *)

Method Summary

Public Methods
public

Two iterators are considered to be equal if they point to the same node of the same container

Public Constructors

public constructor(node: *, container: *) source

Params:

NameTypeAttributeDescription
node *

current node

container *

container

Public Methods

public equals(rhs: BaseIterator): boolean source

Two iterators are considered to be equal if they point to the same node of the same container

Params:

NameTypeAttributeDescription
rhs BaseIterator

object on the 'right-hand side' of .eq. operator

Return:

boolean