Learn R Programming

epivizr (version 1.4.6)

IndexedArray-class: Indexed array

Description

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

Arguments

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

See Also

EpivizDeviceMgr-class

Examples

Run this code
  array <- epivizr:::IndexedArray$new()
  aId <- array$append("a")
  array$get(aId)

Run the code above in your browser using DataLab