<!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 - Boolean 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> » Boolean PMC </div> <h1><a name="NAME" >NAME</a></h1> <p>src/pmc/boolean.pmc - Boolean PMC</p> <h1><a name="DESCRIPTION" >DESCRIPTION</a></h1> <p>This class implements a boolean value variable.</p> <p>Albeit the <code>Boolean PMC</code> is derived from the <code>Integer PMC</code>, it doesn't morph to other types. Only its value is changed.</p> <h2><a name="Methods" >Methods</a></h2> <dl> <dt><a name="void_init_pmc(PMC_*value)" ><b><code>void init_pmc(PMC *value)</b></code></a></dt> Initialises SELF value according to the boolean value of the passed PMC. <dt><a name="STRING_*get_string()" ><b><code>STRING *get_string()</b></code></a></dt> Return "1" or "0". <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_bool(INTVAL_value)" ><b><code>void set_bool(INTVAL value)</b></code></a></dt> <dt><a name="void_set_pmc(PMC_*value)" ><b><code>void set_pmc(PMC *value)</b></code></a></dt> <dt><a name="void_set_number_native(FLOATVAL_value)" ><b><code>void set_number_native(FLOATVAL value)</b></code></a></dt> Sets the value to <code>value</code> evaluated in a boolean context. <dt><a name="void_set_string_native(STRING_*value)" ><b><code>void set_string_native(STRING *value)</b></code></a></dt> Sets the value to <code>*value</code> evaluated in a boolean context.</dl> </div> <!-- "mainbody" --> <div id="divider"></div> <div id="footer"> Copyright © 2002-2009, Parrot Foundation. </div> </div> <!-- "wrapper" --> </body> </html>