IndexedArray-class: Indexed array

Description Fields Methods Author(s) See Also Examples

Description

This class is used by EpivizDeviceMgr-class objects to store requests callbacks.

Fields

nextId

Next integer id to return when item is appended

items

Stored items

Methods

append(item): Append item to array, returns id of appended item

get(id): Return item with given id

empty(): Empty the array

Author(s)

Hector Corrada Bravo

See Also

EpivizDeviceMgr-class

Examples

1
2
3
  array <- epivizr:::IndexedArray$new()
  aId <- array$append("a")
  array$get(aId)

epiviz/epivizr-release documentation built on May 16, 2019, 8:18 a.m.