Macaulay2 » Documentation
Packages » ForeignFunctions » SharedLibrary
next | previous | forward | backward | up | index | toc

SharedLibrary -- a shared library

Description

A shared library that could be used to load foreign functions. Each shared library object consists of a pointer to a handle for the library and a string that is used by describe, expression, net, texMath, toExternalString, and toString.

i1 : mpfr = openSharedLibrary "mpfr"

o1 = mpfr

o1 : SharedLibrary
i2 : peek mpfr

o2 = SharedLibrary{0x7f3965ac2aa0, mpfr}

Menu

Functions and methods returning a shared library:

Methods that use a shared library:

  • foreignFunction(SharedLibrary,String,ForeignType,ForeignType) -- see foreignFunction -- construct a foreign function
  • foreignFunction(SharedLibrary,String,ForeignType,VisibleList) -- see foreignFunction -- construct a foreign function
  • foreignSymbol(SharedLibrary,String,ForeignType) -- see foreignSymbol -- get a foreign symbol
  • describe(SharedLibrary)
  • expression(SharedLibrary)
  • net(SharedLibrary)
  • texMath(SharedLibrary)
  • toExternalString(SharedLibrary)
  • toString(SharedLibrary)

For the programmer

The object SharedLibrary is a self initializing type, with ancestor classes BasicList < Thing.


The source of this document is in ForeignFunctions.m2:1830:0.