<!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 - LexPad 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> » LexPad PMC </div> <h1><a name="NAME" >NAME</a></h1> <p>src/pmc/lexpad.pmc - LexPad PMC</p> <h1><a name="DESCRIPTION" >DESCRIPTION</a></h1> <p>These are the vtable functions for the lexpad PMC.</p> <h2><a name="Functions" >Functions</a></h2> <dl> <dt><a name="static_INTVAL_register_number_for_get(PARROT_INTERP,_PMC_*self,_PMC_*info,_STRING_*name,_INTVAL_reg_type)" ><b><code>static INTVAL register_number_for_get(PARROT_INTERP, PMC *self, PMC *info, STRING *name, INTVAL reg_type)</b></code></a></dt> Locates the register number for getting the specified name and type of lexical. <dt><a name="static_INTVAL_register_number_for_set(PARROT_INTERP,_PMC_*self,_PMC_*info,_STRING_*name,_INTVAL_reg_type)" ><b><code>static INTVAL register_number_for_set(PARROT_INTERP, PMC *self, PMC *info, STRING *name, INTVAL reg_type)</b></code></a></dt> Locates the register number for setting the specified name and type of lexical. <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="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="PMC_*get_lexinfo()" ><b><code>PMC *get_lexinfo()</b></code></a></dt> Return the LexInfo PMC, if any or a Null PMC. <dt><a name="PMC_*get_iter()" ><b><code>PMC *get_iter()</b></code></a></dt> Get iterator for declared lexicals.</dl> <h1><a name="SEE_ALSO" >SEE ALSO</a></h1> <p><em>docs/pdds/pdd20_lexical_vars.pod</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>