Sophie

Sophie

distrib > Mandriva > current > i586 > media > main-updates > by-pkgid > f51238514e2abe817779ad2fe01b0759 > files > 176

icu-doc-4.4-2.1mdv2010.2.i586.rpm

<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
<!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>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>ICU 4.4: RunArray Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javaScript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Generated by Doxygen 1.6.1 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Search');
--></script>
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li class="current"><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <img id="MSearchSelect" src="search/search.png"
             onmouseover="return searchBox.OnSearchSelectShow()"
             onmouseout="return searchBox.OnSearchSelectHide()"
             alt=""/>
        <input type="text" id="MSearchField" value="Search" accesskey="S"
             onfocus="searchBox.OnSearchFieldFocus(true)" 
             onblur="searchBox.OnSearchFieldFocus(false)" 
             onkeyup="searchBox.OnSearchFieldChange(event)"/>
        <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
        </div>
      </li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li><a href="classes.html"><span>Data&nbsp;Structure&nbsp;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Data&nbsp;Fields</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>RunArray Class Reference</h1><!-- doxytag: class="RunArray" --><!-- doxytag: inherits="UObject" -->
<p>The <code><a class="el" href="classRunArray.html" title="The RunArray class is a base class for building classes which represent data that...">RunArray</a></code> class is a base class for building classes which represent data that is associated with runs of text.  
<a href="#_details">More...</a></p>

<p><code>#include &lt;<a class="el" href="RunArrays_8h_source.html">RunArrays.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for RunArray:</div>
<div class="dynsection">
 <div class="center">
  <img src="classRunArray.gif" usemap="#RunArray_map" alt=""/>
  <map id="RunArray_map" name="RunArray_map">
<area href="classUObject.html" alt="UObject" shape="rect" coords="88,56,166,80"/>
<area href="classUMemory.html" alt="UMemory" shape="rect" coords="88,0,166,24"/>
<area href="classFontRuns.html" alt="FontRuns" shape="rect" coords="0,168,78,192"/>
<area href="classLocaleRuns.html" alt="LocaleRuns" shape="rect" coords="88,168,166,192"/>
<area href="classValueRuns.html" alt="ValueRuns" shape="rect" coords="176,168,254,192"/>
</map>
 </div>
</div>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRunArray.html#adb0a5403e1740a80e986b6c0283cda9f">RunArray</a> (const <a class="el" href="LETypes_8h.html#a3ae79f31399d76e3055d2a2745bd0d9a">le_int32</a> *limits, <a class="el" href="LETypes_8h.html#a3ae79f31399d76e3055d2a2745bd0d9a">le_int32</a> count)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Construct a <code><a class="el" href="classRunArray.html" title="The RunArray class is a base class for building classes which represent data that...">RunArray</a></code> object from a pre-existing array of limit indices.  <a href="#adb0a5403e1740a80e986b6c0283cda9f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRunArray.html#a54003b697e0db67f1846433c746c534d">RunArray</a> (<a class="el" href="LETypes_8h.html#a3ae79f31399d76e3055d2a2745bd0d9a">le_int32</a> initialCapacity)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Construct an empty <code><a class="el" href="classRunArray.html" title="The RunArray class is a base class for building classes which represent data that...">RunArray</a></code> object.  <a href="#a54003b697e0db67f1846433c746c534d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRunArray.html#af726034756ddcc5b8877d84af80df97a">~RunArray</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The destructor; virtual so that subclass destructors are invoked as well.  <a href="#af726034756ddcc5b8877d84af80df97a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="LETypes_8h.html#a3ae79f31399d76e3055d2a2745bd0d9a">le_int32</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRunArray.html#aa27046af9057093e596e0df45aeb2dba">getCount</a> () const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the number of entries in the limit indices array.  <a href="#aa27046af9057093e596e0df45aeb2dba"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRunArray.html#ac648426b69620527e228bbc548dd2044">reset</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Reset the limit indices array.  <a href="#ac648426b69620527e228bbc548dd2044"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="LETypes_8h.html#a3ae79f31399d76e3055d2a2745bd0d9a">le_int32</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRunArray.html#a428e9f6f1ade14e5cc33c6bb0f911ab3">getLimit</a> () const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the last limit index.  <a href="#a428e9f6f1ade14e5cc33c6bb0f911ab3"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="LETypes_8h.html#a3ae79f31399d76e3055d2a2745bd0d9a">le_int32</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRunArray.html#a82da4f4973708eb1d597f44ce3b80885">getLimit</a> (<a class="el" href="LETypes_8h.html#a3ae79f31399d76e3055d2a2745bd0d9a">le_int32</a> run) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the limit index for a particular run of text.  <a href="#a82da4f4973708eb1d597f44ce3b80885"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="LETypes_8h.html#a3ae79f31399d76e3055d2a2745bd0d9a">le_int32</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRunArray.html#a7c213f82f5c9cfa16bf866203cc30f5d">add</a> (<a class="el" href="LETypes_8h.html#a3ae79f31399d76e3055d2a2745bd0d9a">le_int32</a> limit)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Add a limit index to the limit indices array and return the run index where it was stored.  <a href="#a7c213f82f5c9cfa16bf866203cc30f5d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="utypes_8h.html#a22af10545208a455a6e884008df48e9f">UClassID</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRunArray.html#a7f74856ce5a362740299a359dc945a45">getDynamicClassID</a> () const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">ICU "poor man's RTTI", returns a UClassID for the actual class.  <a href="#a7f74856ce5a362740299a359dc945a45"></a><br/></td></tr>
<tr><td colspan="2"><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="utypes_8h.html#a22af10545208a455a6e884008df48e9f">UClassID</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRunArray.html#ab9bc82428042aa0ab416de2cf5ece3df">getStaticClassID</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">ICU "poor man's RTTI", returns a UClassID for this class.  <a href="#ab9bc82428042aa0ab416de2cf5ece3df"></a><br/></td></tr>
<tr><td colspan="2"><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRunArray.html#a4a4822936fdabd6c9336134fb659a32d">init</a> (<a class="el" href="LETypes_8h.html#a3ae79f31399d76e3055d2a2745bd0d9a">le_int32</a> capacity)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Create a data array with the given initial size.  <a href="#a4a4822936fdabd6c9336134fb659a32d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRunArray.html#ac09e01408d8afa1272027a8937a4e1a1">grow</a> (<a class="el" href="LETypes_8h.html#a3ae79f31399d76e3055d2a2745bd0d9a">le_int32</a> capacity)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Grow a data array to the given initial size.  <a href="#ac09e01408d8afa1272027a8937a4e1a1"></a><br/></td></tr>
<tr><td colspan="2"><h2>Protected Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="LETypes_8h.html#a4b77bc254d0e88fdabffde9c03e6728f">le_bool</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRunArray.html#a9a1062251664dc9184f474a7134f7dfa">fClientArrays</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set by the constructors to indicate whether or not the client supplied the data arrays.  <a href="#a9a1062251664dc9184f474a7134f7dfa"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>The <code><a class="el" href="classRunArray.html" title="The RunArray class is a base class for building classes which represent data that...">RunArray</a></code> class is a base class for building classes which represent data that is associated with runs of text. </p>
<p>This class maintains an array of limit indices into the text, subclasses provide one or more arrays of data.</p>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable004184">Stable:</a></b></dt><dd>ICU 3.2 </dd></dl>

<p>Definition at line <a class="el" href="RunArrays_8h_source.html#l00048">48</a> of file <a class="el" href="RunArrays_8h_source.html">RunArrays.h</a>.</p>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="adb0a5403e1740a80e986b6c0283cda9f"></a><!-- doxytag: member="RunArray::RunArray" ref="adb0a5403e1740a80e986b6c0283cda9f" args="(const le_int32 *limits, le_int32 count)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">RunArray::RunArray </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="LETypes_8h.html#a3ae79f31399d76e3055d2a2745bd0d9a">le_int32</a> *&nbsp;</td>
          <td class="paramname"> <em>limits</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="LETypes_8h.html#a3ae79f31399d76e3055d2a2745bd0d9a">le_int32</a>&nbsp;</td>
          <td class="paramname"> <em>count</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Construct a <code><a class="el" href="classRunArray.html" title="The RunArray class is a base class for building classes which represent data that...">RunArray</a></code> object from a pre-existing array of limit indices. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>limits</em>&nbsp;</td><td>is an array of limit indices. This array must remain valid until the <code><a class="el" href="classRunArray.html" title="The RunArray class is a base class for building classes which represent data that...">RunArray</a></code> object is destroyed.</td></tr>
    <tr><td valign="top"></td><td valign="top"><em>count</em>&nbsp;</td><td>is the number of entries in the limit array.</td></tr>
  </table>
  </dd>
</dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable004188">Stable:</a></b></dt><dd>ICU 3.2 </dd></dl>

<p>Definition at line <a class="el" href="RunArrays_8h_source.html#l00234">234</a> of file <a class="el" href="RunArrays_8h_source.html">RunArrays.h</a>.</p>

<p>References <a class="el" href="RunArrays_8h_source.html#l00234">RunArray()</a>.</p>

<p>Referenced by <a class="el" href="RunArrays_8h_source.html#l00234">RunArray()</a>.</p>

</div>
</div>
<a class="anchor" id="a54003b697e0db67f1846433c746c534d"></a><!-- doxytag: member="RunArray::RunArray" ref="a54003b697e0db67f1846433c746c534d" args="(le_int32 initialCapacity)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">RunArray::RunArray </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="LETypes_8h.html#a3ae79f31399d76e3055d2a2745bd0d9a">le_int32</a>&nbsp;</td>
          <td class="paramname"> <em>initialCapacity</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Construct an empty <code><a class="el" href="classRunArray.html" title="The RunArray class is a base class for building classes which represent data that...">RunArray</a></code> object. </p>
<p>Clients can add limit indices array using the <code>add</code> method.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>initialCapacity</em>&nbsp;</td><td>is the initial size of the limit indices array. If this value is zero, no array will be allocated.</td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classRunArray.html#a7c213f82f5c9cfa16bf866203cc30f5d" title="Add a limit index to the limit indices array and return the run index where it was...">add</a></dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable004189">Stable:</a></b></dt><dd>ICU 3.2 </dd></dl>

</div>
</div>
<a class="anchor" id="af726034756ddcc5b8877d84af80df97a"></a><!-- doxytag: member="RunArray::~RunArray" ref="af726034756ddcc5b8877d84af80df97a" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual RunArray::~RunArray </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>The destructor; virtual so that subclass destructors are invoked as well. </p>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable004190">Stable:</a></b></dt><dd>ICU 3.2 </dd></dl>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a7c213f82f5c9cfa16bf866203cc30f5d"></a><!-- doxytag: member="RunArray::add" ref="a7c213f82f5c9cfa16bf866203cc30f5d" args="(le_int32 limit)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="LETypes_8h.html#a3ae79f31399d76e3055d2a2745bd0d9a">le_int32</a> RunArray::add </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="LETypes_8h.html#a3ae79f31399d76e3055d2a2745bd0d9a">le_int32</a>&nbsp;</td>
          <td class="paramname"> <em>limit</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Add a limit index to the limit indices array and return the run index where it was stored. </p>
<p>If the array does not exist, it will be created by calling the <code>init</code> method. If it is full, it will be grown by calling the <code>grow</code> method.</p>
<p>If the <code><a class="el" href="classRunArray.html" title="The RunArray class is a base class for building classes which represent data that...">RunArray</a></code> object was created with a client-supplied limit indices array, this method will return a run index of -1.</p>
<p>Subclasses should not override this method. Rather they should provide a new <code>add</code> method which takes a limit index along with whatever other data they implement. The new <code>add</code> method should first call this method to grow the data arrays, and use the return value to store the data in their own arrays.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>limit</em>&nbsp;</td><td>is the limit index to add to the array.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the run index where the limit index was stored, or -1 if the limit index cannt be stored.</dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classRunArray.html#a4a4822936fdabd6c9336134fb659a32d" title="Create a data array with the given initial size.">init</a> </dd>
<dd>
<a class="el" href="classRunArray.html#ac09e01408d8afa1272027a8937a4e1a1" title="Grow a data array to the given initial size.">grow</a></dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable004195">Stable:</a></b></dt><dd>ICU 3.2 </dd></dl>

</div>
</div>
<a class="anchor" id="aa27046af9057093e596e0df45aeb2dba"></a><!-- doxytag: member="RunArray::getCount" ref="aa27046af9057093e596e0df45aeb2dba" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="LETypes_8h.html#a3ae79f31399d76e3055d2a2745bd0d9a">le_int32</a> RunArray::getCount </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get the number of entries in the limit indices array. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the number of entries in the limit indices array.</dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable004191">Stable:</a></b></dt><dd>ICU 3.2 </dd></dl>

<p>Definition at line <a class="el" href="RunArrays_8h_source.html#l00240">240</a> of file <a class="el" href="RunArrays_8h_source.html">RunArrays.h</a>.</p>

</div>
</div>
<a class="anchor" id="a7f74856ce5a362740299a359dc945a45"></a><!-- doxytag: member="RunArray::getDynamicClassID" ref="a7f74856ce5a362740299a359dc945a45" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="utypes_8h.html#a22af10545208a455a6e884008df48e9f">UClassID</a> RunArray::getDynamicClassID </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>ICU "poor man's RTTI", returns a UClassID for the actual class. </p>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable004197">Stable:</a></b></dt><dd>ICU 3.2 </dd></dl>

<p>Implements <a class="el" href="classUObject.html#a9b1acc95efd89cb86ec31f2dc947a262">UObject</a>.</p>

<p>Reimplemented in <a class="el" href="classFontRuns.html#a25081829cead67f5bea9f4713ed1bc0d">FontRuns</a>, <a class="el" href="classLocaleRuns.html#a6bda9996d279606a34deca94b171eb3f">LocaleRuns</a>, and <a class="el" href="classValueRuns.html#a67df1e43e2f102e33ec94af3729e939e">ValueRuns</a>.</p>

<p>Definition at line <a class="el" href="RunArrays_8h_source.html#l00162">162</a> of file <a class="el" href="RunArrays_8h_source.html">RunArrays.h</a>.</p>

</div>
</div>
<a class="anchor" id="a82da4f4973708eb1d597f44ce3b80885"></a><!-- doxytag: member="RunArray::getLimit" ref="a82da4f4973708eb1d597f44ce3b80885" args="(le_int32 run) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="LETypes_8h.html#a3ae79f31399d76e3055d2a2745bd0d9a">le_int32</a> RunArray::getLimit </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="LETypes_8h.html#a3ae79f31399d76e3055d2a2745bd0d9a">le_int32</a>&nbsp;</td>
          <td class="paramname"> <em>run</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get the limit index for a particular run of text. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>run</em>&nbsp;</td><td>is the run. This is an index into the limit index array.</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the limit index for the run, or -1 if <code>run</code> is out of bounds.</dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable004194">Stable:</a></b></dt><dd>ICU 3.2 </dd></dl>

<p>Definition at line <a class="el" href="RunArrays_8h_source.html#l00250">250</a> of file <a class="el" href="RunArrays_8h_source.html">RunArrays.h</a>.</p>

</div>
</div>
<a class="anchor" id="a428e9f6f1ade14e5cc33c6bb0f911ab3"></a><!-- doxytag: member="RunArray::getLimit" ref="a428e9f6f1ade14e5cc33c6bb0f911ab3" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="LETypes_8h.html#a3ae79f31399d76e3055d2a2745bd0d9a">le_int32</a> RunArray::getLimit </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get the last limit index. </p>
<p>This is the number of characters in the text.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>the last limit index.</dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable004193">Stable:</a></b></dt><dd>ICU 3.2 </dd></dl>

<p>Definition at line <a class="el" href="RunArrays_8h_source.html#l00259">259</a> of file <a class="el" href="RunArrays_8h_source.html">RunArrays.h</a>.</p>

</div>
</div>
<a class="anchor" id="ab9bc82428042aa0ab416de2cf5ece3df"></a><!-- doxytag: member="RunArray::getStaticClassID" ref="ab9bc82428042aa0ab416de2cf5ece3df" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="utypes_8h.html#a22af10545208a455a6e884008df48e9f">UClassID</a> RunArray::getStaticClassID </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline, static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>ICU "poor man's RTTI", returns a UClassID for this class. </p>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable004196">Stable:</a></b></dt><dd>ICU 3.2 </dd></dl>

<p>Reimplemented in <a class="el" href="classFontRuns.html#aec8bc3b6506ef15bb628ca85bc3bee03">FontRuns</a>, <a class="el" href="classLocaleRuns.html#a52edcaca01912fae1acf10599b392fbb">LocaleRuns</a>, and <a class="el" href="classValueRuns.html#aabeaef6897245191ee77d30ed6765928">ValueRuns</a>.</p>

<p>Definition at line <a class="el" href="RunArrays_8h_source.html#l00155">155</a> of file <a class="el" href="RunArrays_8h_source.html">RunArrays.h</a>.</p>

<p>Referenced by <a class="el" href="RunArrays_8h_source.html#l00636">ValueRuns::getDynamicClassID()</a>, <a class="el" href="RunArrays_8h_source.html#l00499">LocaleRuns::getDynamicClassID()</a>, and <a class="el" href="RunArrays_8h_source.html#l00362">FontRuns::getDynamicClassID()</a>.</p>

</div>
</div>
<a class="anchor" id="ac09e01408d8afa1272027a8937a4e1a1"></a><!-- doxytag: member="RunArray::grow" ref="ac09e01408d8afa1272027a8937a4e1a1" args="(le_int32 capacity)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void RunArray::grow </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="LETypes_8h.html#a3ae79f31399d76e3055d2a2745bd0d9a">le_int32</a>&nbsp;</td>
          <td class="paramname"> <em>capacity</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Grow a data array to the given initial size. </p>
<p>This method will be called by the <code>add</code> method if the limit indices array is full. Subclasses which override this method must also call it from the overriding method to grow the limit indices array.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>capacity</em>&nbsp;</td><td>is the initial size of the data array.</td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classRunArray.html#a7c213f82f5c9cfa16bf866203cc30f5d" title="Add a limit index to the limit indices array and return the run index where it was...">add</a></dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable004199">Stable:</a></b></dt><dd>ICU 3.2 </dd></dl>

<p>Reimplemented in <a class="el" href="classFontRuns.html#aafd123d2d077d7ce16e2760f70c905df">FontRuns</a>, <a class="el" href="classLocaleRuns.html#aba460e67106115f688bae111d2cf39ca">LocaleRuns</a>, and <a class="el" href="classValueRuns.html#ab72ad12ee037660be28f3ab785a4a7c7">ValueRuns</a>.</p>

</div>
</div>
<a class="anchor" id="a4a4822936fdabd6c9336134fb659a32d"></a><!-- doxytag: member="RunArray::init" ref="a4a4822936fdabd6c9336134fb659a32d" args="(le_int32 capacity)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void RunArray::init </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="LETypes_8h.html#a3ae79f31399d76e3055d2a2745bd0d9a">le_int32</a>&nbsp;</td>
          <td class="paramname"> <em>capacity</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Create a data array with the given initial size. </p>
<p>This method will be called by the <code>add</code> method if there is no limit indices array. Subclasses which override this method must also call it from the overriding method to create the limit indices array.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>capacity</em>&nbsp;</td><td>is the initial size of the data array.</td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classRunArray.html#a7c213f82f5c9cfa16bf866203cc30f5d" title="Add a limit index to the limit indices array and return the run index where it was...">add</a></dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable004198">Stable:</a></b></dt><dd>ICU 3.2 </dd></dl>

<p>Reimplemented in <a class="el" href="classFontRuns.html#a54b467a29c09e1a9a05c4da12c1553d9">FontRuns</a>, <a class="el" href="classLocaleRuns.html#ac1f490b06fabd89568a68afce43e758c">LocaleRuns</a>, and <a class="el" href="classValueRuns.html#ac19d6e6dbba7e66516bf2451e95ef8fd">ValueRuns</a>.</p>

</div>
</div>
<a class="anchor" id="ac648426b69620527e228bbc548dd2044"></a><!-- doxytag: member="RunArray::reset" ref="ac648426b69620527e228bbc548dd2044" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void RunArray::reset </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Reset the limit indices array. </p>
<p>This method sets the number of entries in the limit indices array to zero. It does not delete the array.</p>
<p>Note: Subclass arrays will also be reset and not deleted.</p>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable004192">Stable:</a></b></dt><dd>ICU 3.6 </dd></dl>

<p>Definition at line <a class="el" href="RunArrays_8h_source.html#l00245">245</a> of file <a class="el" href="RunArrays_8h_source.html">RunArrays.h</a>.</p>

</div>
</div>
<hr/><h2>Field Documentation</h2>
<a class="anchor" id="a9a1062251664dc9184f474a7134f7dfa"></a><!-- doxytag: member="RunArray::fClientArrays" ref="a9a1062251664dc9184f474a7134f7dfa" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="LETypes_8h.html#a4b77bc254d0e88fdabffde9c03e6728f">le_bool</a> <a class="el" href="classRunArray.html#a9a1062251664dc9184f474a7134f7dfa">RunArray::fClientArrays</a><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set by the constructors to indicate whether or not the client supplied the data arrays. </p>
<p>If they were supplied by the client, the <code>add</code> method won't change the arrays and the destructor won't delete them.</p>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable004200">Stable:</a></b></dt><dd>ICU 3.2 </dd></dl>

<p>Definition at line <a class="el" href="RunArrays_8h_source.html#l00202">202</a> of file <a class="el" href="RunArrays_8h_source.html">RunArrays.h</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="RunArrays_8h_source.html">RunArrays.h</a></li>
</ul>
</div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&nbsp;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&nbsp;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&nbsp;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&nbsp;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&nbsp;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&nbsp;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&nbsp;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&nbsp;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&nbsp;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&nbsp;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr size="1"/><address style="text-align: right;"><small>Generated on 16 Mar 2010 for ICU 4.4 by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
</body>
</html>