<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Parrot - DynLexPad PMC</title> <link rel="stylesheet" type="text/css" href="../../../resources/parrot.css" media="all"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> </head> <body> <div id="wrapper"> <div id="header"> <a href="http://www.parrot.org"> <img border=0 src="../../../resources/parrot_logo.png" id="logo" alt="parrot"> </a> </div> <!-- "header" --> <div id="divider"></div> <div id="mainbody"> <div id="breadcrumb"> <a href="../../../html/index.html">Home</a> » <a href="../../../html/pmc.html">PMCs</a> » DynLexPad PMC </div> <h1><a name="NAME" >NAME</a></h1> <p>src/dynpmc/dynlexpad.pmc - DynLexPad PMC</p> <h1><a name="DESCRIPTION" >DESCRIPTION</a></h1> <p>DynLexPad provides a more dynamic lexpad that allows the addition of lexicals at runtime.</p> <h2><a name="Functions" >Functions</a></h2> <dl> <dt><a name="init_pmc(PMC_*lexinfo)" ><b><code>init_pmc(PMC *lexinfo)</b></code></a></dt> Initialize the LexPad PMC and remember the associate lexinfo. <dt><a name="void_set_pointer(void_*)" ><b><code>void set_pointer(void *)</b></code></a></dt> Initialize the LexPad PMC and remember the associate context. <dt><a name="void*_get_pointer()" ><b><code>void* get_pointer()</b></code></a></dt> Return the raw Hash pointer, for use in iterators <dt><a name="PMC_*get_iter()" ><b><code>PMC *get_iter()</b></code></a></dt> Get an iterator for items in the DynLexPad <dt><a name="INTVAL_elements()" ><b><code>INTVAL elements()</b></code></a></dt> Returns the number of elements in the hash. <dt><a name="INTVAL_exists_keyed(PMC_*name)" ><b><code>INTVAL exists_keyed(PMC *name)</b></code></a></dt> <dt><a name="INTVAL_exists_keyed_str(STRING_*name)" ><b><code>INTVAL exists_keyed_str(STRING *name)</b></code></a></dt> Returns whether a lexical <code>name</code> exists in the hash. <dt><a name="PMC_*get_pmc_keyed_str(STRING_*name)" ><b><code>PMC *get_pmc_keyed_str(STRING *name)</b></code></a></dt> <dt><a name="PMC_*get_pmc_keyed(PMC_*name)" ><b><code>PMC *get_pmc_keyed(PMC *name)</b></code></a></dt> Return the lexical with the given name, or NULL (not PMCNULL), if the lexical doesn't exist. <dt><a name="void_set_pmc_keyed(PMC_*name,_PMC_*value)" ><b><code>void set_pmc_keyed(PMC *name, PMC *value)</b></code></a></dt> <dt><a name="void_set_pmc_keyed_str(STRING_*name,_PMC_*value)" ><b><code>void set_pmc_keyed_str(STRING *name, PMC *value)</b></code></a></dt> Set the lexical with the given name to value. If the lexical name doesn't exist, it is created. <dt><a name="void_destroy()" ><b><code>void destroy()</b></code></a></dt> Destroy DynLexPad. <dt><a name="void_mark()" ><b><code>void mark()</b></code></a></dt> Marks the lexpad hash as live.</dl> <h1><a name="SEE_ALSO" >SEE ALSO</a></h1> <p><em>docs/pdds/pdd20_lexical_vars.pod</em>, <em>src/pmc/lexpad.pmc</em>, <em>src/pmc/lexinfo.pmc</em>.</p> </div> <!-- "mainbody" --> <div id="divider"></div> <div id="footer"> Copyright © 2002-2011, Parrot Foundation. </div> </div> <!-- "wrapper" --> </body> </html>