Class: Yk::EMMap::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



464
465
# File 'for_yard_product.rb', line 464

def !=
end

#==(arg) ⇒ Object

compare for equivalence of positions

Returns:

  • true or false

Raises:

  • ArgumentError raised in case right operand is not compatible



459
460
# File 'for_yard_product.rb', line 459

def == arg
end

#assign(arg) ⇒ EMMap::Iterator

assign the positions of argument

Returns:

Raises:

  • ArgumentError raised in case right operand is not compatible



454
455
# File 'for_yard_product.rb', line 454

def assign arg
end

#cloneEMMap::Iterator

newly construct a clone iterator

Returns:



439
440
# File 'for_yard_product.rb', line 439

def clone
end

#decEMMap::Iterator

decrement the position

Returns:

Raises:

  • RangeError raised when rewinding over the beginning



449
450
# File 'for_yard_product.rb', line 449

def dec
end

#incEMMap::Iterator

increment the position

Returns:

Raises:

  • RangeError raised when advancing over the end



444
445
# File 'for_yard_product.rb', line 444

def inc
end

#itemArray

dereference the iterator, and returns the key object and the value object

Returns:

  • (Array)

    Array of the pointed key object and value object



468
469
# File 'for_yard_product.rb', line 468

def item
end