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



275
276
# File 'for_yard_product.rb', line 275

def !=
end

#==(arg) ⇒ Object

compare for equivalence of positions

Returns:

  • true or false

Raises:

  • ArgumentError raised in case right operand is not compatible



270
271
# File 'for_yard_product.rb', line 270

def == arg
end

#assign(arg) ⇒ EMSet::Iterator

assign the positions of argument

Returns:

Raises:

  • ArgumentError raised in case right operand is not compatible



265
266
# File 'for_yard_product.rb', line 265

def assign arg
end

#cloneEMSet::Iterator

newly construct a clone iterator

Returns:



239
240
# File 'for_yard_product.rb', line 239

def clone
end

#decEMSet::Iterator

decrement the position

Returns:

Raises:

  • RangeError raised when rewinding over the beginning

  • ArgumentError raised when decrementing erased position



251
252
# File 'for_yard_product.rb', line 251

def dec
end

#incEMSet::Iterator

increment the position

Returns:

Raises:

  • RangeError raised when advancing over the end

  • ArgumentError raised when incrementing erased position



245
246
# File 'for_yard_product.rb', line 245

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



256
257
# File 'for_yard_product.rb', line 256

def isEnd?
end

#isErased?True|False

returns true if iterator position is already erased

Returns:

  • (True|False)

    true|false



260
261
# File 'for_yard_product.rb', line 260

def isErased?
end

#itemObject

dereference the iterator, and returns the pointed object

Returns:

  • (Object)

    The pointed object



279
280
# File 'for_yard_product.rb', line 279

def item
end