Class: Yk::ESet::Iterator

Inherits:
Object
  • Object
show all
Defined in:
for_yard_product.rb

Overview

Iterator class, pointing an element in container

Instance Method Summary collapse

Instance Method Details

#!=Object

compare for unequivalence of positions

Returns:

  • true or false

Raises:

  • ArgumentError raised in case right operand is not compatible



135
136
# File 'for_yard_product.rb', line 135

def !=
end

#==(arg) ⇒ Object

compare for equivalence of positions

Returns:

  • true or false

Raises:

  • ArgumentError raised in case right operand is not compatible



130
131
# File 'for_yard_product.rb', line 130

def == arg
end

#assign(arg) ⇒ ESet::Iterator

assign the positions of argument

Returns:

Raises:

  • ArgumentError raised in case right operand is not compatible



125
126
# File 'for_yard_product.rb', line 125

def assign arg
end

#cloneESet::Iterator

newly construct a clone iterator

Returns:



99
100
# File 'for_yard_product.rb', line 99

def clone
end

#decESet::Iterator

decrement the position

Returns:

Raises:

  • RangeError raised when rewinding over the beginning

  • ArgumentError raised when decrementing erased position



111
112
# File 'for_yard_product.rb', line 111

def dec
end

#incESet::Iterator

increment the position

Returns:

Raises:

  • RangeError raised when advancing over the end

  • ArgumentError raised when incrementing erased position



105
106
# File 'for_yard_product.rb', line 105

def inc
end

#isEnd?True|False

returns true if the iterator is already reached the end

Returns:

  • (True|False)

    true|false

Raises:

  • ArgumentError raised when the pstion of the iterator is already erased



116
117
# File 'for_yard_product.rb', line 116

def isEnd?
end

#isErased?True|False

returns true if iterator position is already erased

Returns:

  • (True|False)

    true|false



120
121
# File 'for_yard_product.rb', line 120

def isErased?
end

#itemObject

dereference the iterator, and returns the pointed object

Returns:

  • (Object)

    The pointed object



139
140
# File 'for_yard_product.rb', line 139

def item
end