<!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 - Key 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> » Key PMC </div> <h1><a name="NAME" >NAME</a></h1> <p>src/pmc/key.pmc - Key PMC</p> <h1><a name="DESCRIPTION" >DESCRIPTION</a></h1> <p>These are the vtable functions for the Key PMC class.</p> <h2><a name="Methods" >Methods</a></h2> <dl> <dt><a name="void_init()" ><b><code>void init()</b></code></a></dt> Initializes the key. <dt><a name="PMC_*clone()" ><b><code>PMC *clone()</b></code></a></dt> Creates and returns a clone of the key. <dt><a name="void_mark()" ><b><code>void mark()</b></code></a></dt> Marks the key as live. <dt><a name="INTVAL_get_integer()" ><b><code>INTVAL get_integer()</b></code></a></dt> Returns the integer value of the key. <dt><a name="STRING_*get_string()" ><b><code>STRING *get_string()</b></code></a></dt> Returns the Parrot string value of the key. <dt><a name="PMC_*get_pmc()" ><b><code>PMC *get_pmc()</b></code></a></dt> Returns the PMC value of the key. <dt><a name="void_set_integer_native(INTVAL_value)" ><b><code>void set_integer_native(INTVAL value)</b></code></a></dt> <dt><a name="void_set_string_native(STRING_*value)" ><b><code>void set_string_native(STRING *value)</b></code></a></dt> <dt><a name="void_set_pmc(PMC_*value)" ><b><code>void set_pmc(PMC *value)</b></code></a></dt> Sets the value of the key to <code>*value</code>. <dt><a name="void_push_pmc(PMC_*value)" ><b><code>void push_pmc(PMC *value)</b></code></a></dt> Appends <code>*value</code> to the key. <dt><a name="PMC_*shift_pmc()" ><b><code>PMC *shift_pmc()</b></code></a></dt> Returns the next key.Actually doesn't remove the entry but might be useful to traverse a key chain.</dl> <h2><a name="Iterator_Interface" >Iterator Interface</a></h2> <dl> <dt><a name="PMC_*get_pmc_keyed(PMC_*key)" ><b><code>PMC *get_pmc_keyed(PMC *key)</b></code></a></dt> Returns the key itself. <dt><a name="void_freeze(PMC_*info)" ><b><code>void freeze(PMC *info)</b></code></a></dt> Archives the Key. <dt><a name="void_thaw(PMC_*info)" ><b><code>void thaw(PMC *info)</b></code></a></dt> Unarchives the Key. <dt><a name="void_thawfinish(PMC_*info)" ><b><code>void thawfinish(PMC *info)</b></code></a></dt> Called after the Key has been thawed: convert last PMC_NULL key to NULL. <dt><a name="set_register(reg_no,_type)" ><b><code>set_register(reg_no, type)</b></code></a></dt> Set key to hold particular register. <dt><a name="INTVAL_elements()" ><b><code>INTVAL elements()</b></code></a></dt> <dt><a name="INTVAL_get_integer_keyed_int(INTVAL_n)" ><b><code>INTVAL get_integer_keyed_int(INTVAL n)</b></code></a></dt> <dt><a name="STRING_*get_string_keyed_int(INTVAL_n)" ><b><code>STRING *get_string_keyed_int(INTVAL n)</b></code></a></dt> <dt><a name="PMC_*get_pmc_keyed_init(INTVAL_n)" ><b><code>PMC *get_pmc_keyed_init(INTVAL n)</b></code></a></dt> Aggregate interface.</dl> </div> <!-- "mainbody" --> <div id="divider"></div> <div id="footer"> Copyright © 2002-2011, Parrot Foundation. </div> </div> <!-- "wrapper" --> </body> </html>