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



432
433
# File 'for_yard_product.rb', line 432

def !=
end

#==(arg) ⇒ Object

compare for equivalence of positions

Returns:

  • true or false

Raises:

  • ArgumentError raised in case right operand is not compatible



427
428
# File 'for_yard_product.rb', line 427

def == arg
end

#assign(arg) ⇒ EMap::Iterator

assign the positions of argument

Returns:

Raises:

  • ArgumentError raised in case right operand is not compatible



422
423
# File 'for_yard_product.rb', line 422

def assign arg
end

#cloneEMap::Iterator

newly construct a clone iterator

Returns:



396
397
# File 'for_yard_product.rb', line 396

def clone
end

#decEMap::Iterator

decrement the position

Returns:

Raises:

  • RangeError raised when rewinding over the beginning

  • ArgumentError raised when decrementing erased position



408
409
# File 'for_yard_product.rb', line 408

def dec
end

#incEMap::Iterator

increment the position

Returns:

Raises:

  • RangeError raised when advancing over the end

  • ArgumentError raised when incrementing erased position



402
403
# File 'for_yard_product.rb', line 402

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



413
414
# File 'for_yard_product.rb', line 413

def isEnd?
end

#isErased?True|False

returns true if iterator position is already erased

Returns:

  • (True|False)

    true|false



417
418
# File 'for_yard_product.rb', line 417

def isErased?
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



436
437
# File 'for_yard_product.rb', line 436

def item
end