Pointers.LookupPointer

(in ./Carbon/Pointers/LookupPointer.lua)

Provides an interface to referencing a data lookup. LookupPointers themselves are copied, but the data they point to is not.


Methods

class public LookupPointer:New(indexable parent, list<string> path)

Returns LookupPointer

  • required parent: The base of the lookup to be performed.
  • required path: A list of strings to navigate through the parent with.

Creates a new LookupPointer pointing at the given parent with a given navigation table.


object public LookupPointer:Copy()

Returns LookupPointer

Copies the LookupPointer but not the data it points to.


object public (indexable, list<string>)

Returns

LookupPointer:Get()

Returns the current parent and navigation table.


object public LookupPointer:Get(indexable parent, list<string> path)

Returns void

  • required parent: The base of the lookup to be performed.
  • required path: A list of strings to navigate through the parent with.

Sets a new parent and navigation table for the LookupPointer.


Properties

[none]