Class: Yk::EMap::Iterator
- Inherits:
-
Object
- Object
- Yk::EMap::Iterator
- Defined in:
- for_yard_product.rb
Overview
Iterator class, pointing an element in container
Instance Method Summary collapse
-
#!= ⇒ Object
compare for unequivalence of positions.
-
#==(arg) ⇒ Object
compare for equivalence of positions.
-
#assign(arg) ⇒ EMap::Iterator
assign the positions of argument.
-
#clone ⇒ EMap::Iterator
newly construct a clone iterator.
-
#dec ⇒ EMap::Iterator
decrement the position.
-
#inc ⇒ EMap::Iterator
increment the position.
-
#isEnd? ⇒ True|False
returns true if the iterator is already reached the end.
-
#isErased? ⇒ True|False
returns true if iterator position is already erased.
-
#item ⇒ Array
dereference the iterator, and returns the key object and the value object.
Instance Method Details
#!= ⇒ Object
compare for unequivalence of positions
432 433 |
# File 'for_yard_product.rb', line 432 def != end |
#==(arg) ⇒ Object
compare for equivalence of positions
427 428 |
# File 'for_yard_product.rb', line 427 def == arg end |
#assign(arg) ⇒ EMap::Iterator
assign the positions of argument
422 423 |
# File 'for_yard_product.rb', line 422 def assign arg end |
#clone ⇒ EMap::Iterator
newly construct a clone iterator
396 397 |
# File 'for_yard_product.rb', line 396 def clone end |
#dec ⇒ EMap::Iterator
decrement the position
408 409 |
# File 'for_yard_product.rb', line 408 def dec end |
#inc ⇒ EMap::Iterator
increment the 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
413 414 |
# File 'for_yard_product.rb', line 413 def isEnd? end |
#isErased? ⇒ True|False
returns true if iterator position is already erased
417 418 |
# File 'for_yard_product.rb', line 417 def isErased? end |
#item ⇒ Array
dereference the iterator, and returns the key object and the value object
436 437 |
# File 'for_yard_product.rb', line 436 def item end |