<!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 - resizable array for booleans only</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> » resizable array for booleans only </div> <h1><a name="NAME" >NAME</a></h1> <p>src/pmc/resizablebooleanarray.pmc - resizable array for booleans only</p> <h1><a name="DESCRIPTION" >DESCRIPTION</a></h1> <p>The <code>ResizableBooleanArray PMC</code> implements an array of resizable size, which stores booleans. It uses the <code>Boolean PMC</code> for all conversions. The <code>ResizableBooleanArray PMC</code> extends the <code>FixedBooleanArray PMC</code>.</p> <h2><a name="Functions" >Functions</a></h2> <h2><a name="Methods" >Methods</a></h2> <dl> <dt><a name="INTVAL_get_integer_keyed_int(INTVAL_key)" ><b><code>INTVAL get_integer_keyed_int(INTVAL key)</b></code></a></dt> Returns the integer value of the element at index <code>key</code>. <dt><a name="void_set_integer_keyed_int(INTVAL_key,_INTVAL_value)" ><b><code>void set_integer_keyed_int(INTVAL key, INTVAL value)</b></code></a></dt> Sets the integer value of the element at index <code>key</code> to <code>value</code>. <dt><a name="void_set_integer_native(INTVAL_size)" ><b><code>void set_integer_native(INTVAL size)</b></code></a></dt> Resizes the array to <code>size</code> elements. <dt><a name="void_push_integer(INTVAL_value)" ><b><code>void push_integer(INTVAL value)</b></code></a></dt> Extends the array by adding an element of value <code>value</code> to the end. <dt><a name="void_pop_integer(INTVAL_value)" ><b><code>void pop_integer(INTVAL value)</b></code></a></dt> Removes and returns the last element. <dt><a name="void_unshift_integer(INTVAL_value)" ><b><code>void unshift_integer(INTVAL value)</b></code></a></dt> Extends the array by adding an element of value <code>value</code> to the beginning. <dt><a name="void_shift_integer(INTVAL_value)" ><b><code>void shift_integer(INTVAL value)</b></code></a></dt> Removes and returns the first element. <dt><a name="INTVAL_elements()" ><b><code>INTVAL elements()</b></code></a></dt> <dt><a name="INTVAL_get_integer()" ><b><code>INTVAL get_integer()</b></code></a></dt> Returns the number of elements in the array. <dt><a name="PMC_*clone()" ><b><code>PMC *clone()</b></code></a></dt> Returns a copy of the array.</dl> <h2><a name="Freeze/thaw_Interface" >Freeze/thaw Interface</a></h2> <dl> <dt><a name="void_freeze(PMC_*info)" ><b><code>void freeze(PMC *info)</b></code></a></dt> Used to archive the string. <dt><a name="void_thaw(PMC_*info)" ><b><code>void thaw(PMC *info)</b></code></a></dt> Used to unarchive the string.</dl> <h1><a name="SEE_ALSO" >SEE ALSO</a></h1> <p><em>docs/pdds/pdd17_basic_types.pod</em>.</p> </div> <!-- "mainbody" --> <div id="divider"></div> <div id="footer"> Copyright © 2002-2011, Parrot Foundation. </div> </div> <!-- "wrapper" --> </body> </html>