Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > media > main-testing > by-pkgid > 2c50825dd66d0497b96a67f7fab2ee84 > files > 8507

openoffice.org64-devel-doc-2.4.1.10-1mdv2008.1.x86_64.rpm

<html>
<head>
<title>class Sequence</title>
<link rel="stylesheet" type="text/css" href="../../../../../cpp.css">
</head>
<body>
<div id="adc-cppref">

<a name="_top_"> </a><table class="navimain" border="0" cellpadding="1" cellspacing="0">
<tr align="center" valign="top">
<td class="navimain">&nbsp;<a href="../../../../../index.html">Overview</a>&nbsp;</td>
<td class="navimain">&nbsp;<a href="index.html">Namespace</a>&nbsp;</td>
<td class="navimainself">&nbsp;Class&nbsp;</td>
<td class="navimain">&nbsp;<a href="../../../../../index-files/index-1.html">Index</a>&nbsp;</td>
<td class="navimain">&nbsp;<a href="../../../../../help.html">Help</a>&nbsp;</td>
</tr>
</table>
<table class="navisub" cellpadding="0" cellspacing="3">
<tr>
<td width="20%"><font size="-2">PUBLIC MEMBERS:</font></td>
<td>
&nbsp;<font size="-2">CLASSES</font>
|&nbsp;<font size="-2">STRUCTS</font>
|&nbsp;<font size="-2">UNIONS</font>
|&nbsp;<font size="-2">ENUMS</font>
|&nbsp;<a href="#publ_tydefs"><font size="-2"><b>TYPEDEFS</b></font></a>
|&nbsp;<a href="#publ_ops"><font size="-2"><b>METHODS</b></font></a>
|&nbsp;<font size="-2">STATIC METHODS</font>
|&nbsp;<font size="-2">DATA</font>
|&nbsp;<font size="-2">STATIC DATA</font></td>
</tr>
</table>
<hr>
<a href="../../../../../names/index.html" alt="Global Namespace in C++"><font size="+1"><b>::</b></font></a> <a href="../../../index.html" alt="namespace"><font size="+1"><b>com</b></font></a><font size="+1"> :: </font><a href="../../index.html" alt="namespace"><font size="+1"><b>sun</b></font></a><font size="+1"> :: </font><a href="../index.html" alt="namespace"><font size="+1"><b>star</b></font></a><font size="+1"> :: </font><a href="index.html" alt="namespace"><font size="+1"><b>uno</b></font></a><font size="+1"> :: </font><br>
<p><strong>template&lt; typename E &gt;</strong></p>
<div class="title"><h2>class Sequence</h2>
</div><hr>
<dl>
<dt>Base Classes</dt>
<dd>None.</dd>
</dl>
<dl>
<dt>Known Derived Classes</dt>
<dd>None.</dd>
</dl>
<br>
<table class="flag-table" border="1" cellspacing="0">
<tr>
<td width="25%" class="flagname">virtual</td>
<td width="25%" class="flagname">abstract</td>
<td width="25%" class="flagname">interface</td>
<td width="25%" class="flagname">template</td>
</tr>
<tr>
<td class="flagno">NO</td>
<td class="flagno">NO</td>
<td class="flagno">NO</td>
<td class="flagyes">YES</td>
</tr>
</table>
<dl>
<dt>Description</dt>
<dd>Template C++ class representing an IDL sequence. Template argument is the
sequence element type.  C++ Sequences are reference counted and shared,
so the sequence keeps a handle to its data.  To keep value semantics,
copies are only generated if the sequence is to be modified (new handle).

</dd>
<dt>Template Parameters</dt>
<dd><table border="0" width="100%" cellpadding="3" cellspacing="0" class="expl-table">
<tr>
<td width="15%" style="vertical-align:top; font-weight:bold">E</td>
<td><pre>element type of sequence
</pre></td>
</tr>
</table>
</dd>
</dl>
<dl>
<dt>File</dt>
<dd>Sequence.h</dd>
</dl>
<hr>
<dl>
<dt class="subtitle"><a name="publ_"><h3>Public Members</h3>
</a></dt>
<dd><a name="publ_tydefs"> </a><table class="childlist" border="1" cellpadding="5" cellspacing="0" width="100%">
<tr class="subtitle">
<td colspan="2"><h4>Typedefs</h4>
</td>
</tr>
<tr bgcolor="white">
<td width="20%"><a href="Sequence/t-ElementType.html"><b>ElementType</b></a></td>
<td>typedefs the element type of the sequence
</td>
</tr>
</table>
<hr>
<a name="publ_ops"> </a><table class="childlist" border="1" cellpadding="5" cellspacing="0" width="100%">
<tr class="subtitle">
<td colspan="2"><h4>Methods</h4>
</td>
</tr>
<tr>
<td> <br>
<a href="Sequence/o.html#Sequence-2686">Sequence</a>( ) throw( );</td>
<td width="50%"> Default constructor: Creates an empty sequence.
</td>
</tr>
<tr>
<td> <br>
<a href="Sequence/o.html#Sequence-2687">Sequence</a>( const Sequence&lt; E &gt; &amp; rSeq ) throw( );</td>
<td width="50%"> Copy constructor: Creates a copy of given sequence.

</td>
</tr>
<tr>
<td> <br>
<a href="Sequence/o.html#Sequence-2688">Sequence</a>( uno_Sequence * pSequence, __sal_NoAcquire  ) throw( );</td>
<td width="50%"> Constructor: Takes over ownership of given sequence.

</td>
</tr>
<tr>
<td> <br>
<a href="Sequence/o.html#Sequence-2689">Sequence</a>( const E * pElements, sal_Int32 len );</td>
<td width="50%"> Constructor: Creates a copy of given elements.

</td>
</tr>
<tr>
<td> <br>
<a href="Sequence/o.html#Sequence-2690">Sequence</a>( sal_Int32 len );</td>
<td width="50%"> Constructor: Creates a default constructed sequence of given length.

</td>
</tr>
<tr>
<td> <br>
<a href="Sequence/o.html#~Sequence-2691">~Sequence</a>( ) throw( );</td>
<td width="50%"> Destructor: Releases sequence handle. Last handle will destruct
elements and free memory.
</td>
</tr>
<tr>
<td>Sequence&lt; E &gt; &amp; <br>
<a href="Sequence/o.html#operator=-2692">operator=</a>( const Sequence&lt; E &gt; &amp; rSeq ) throw( );</td>
<td width="50%"> Assignment operator: Acquires given sequence handle and releases
previously set handle.

</td>
</tr>
<tr>
<td>sal_Int32 <br>
<a href="Sequence/o.html#getLength-2693">getLength</a>( ) const throw( );</td>
<td width="50%"> Gets length of the sequence.

</td>
</tr>
<tr>
<td>sal_Bool <br>
<a href="Sequence/o.html#hasElements-2694">hasElements</a>( ) const throw( );</td>
<td width="50%"> Tests whether the sequence has elements, i.e. elements count is
greater than zero.

</td>
</tr>
<tr>
<td>const E * <br>
<a href="Sequence/o.html#getConstArray-2695">getConstArray</a>( ) const throw( );</td>
<td width="50%"> </td>
</tr>
<tr>
<td>E * <br>
<a href="Sequence/o.html#getArray-2696">getArray</a>( );</td>
<td width="50%"> </td>
</tr>
<tr>
<td>E &amp; <br>
<a href="Sequence/o.html#operator[]-2697">operator[]</a>( sal_Int32 nIndex );</td>
<td width="50%"> </td>
</tr>
<tr>
<td>const E &amp; <br>
<a href="Sequence/o.html#operator[]-2698">operator[]</a>( sal_Int32 nIndex ) const throw( );</td>
<td width="50%"> Const index operator: Obtains a reference to element indexed at
given position.  The implementation does not check for array bounds!

</td>
</tr>
<tr>
<td>sal_Bool <br>
<a href="Sequence/o.html#operator==-2699">operator==</a>( const Sequence&lt; E &gt; &amp; rSeq ) const throw( );</td>
<td width="50%"> Equality operator: Compares two sequences.

</td>
</tr>
<tr>
<td>sal_Bool <br>
<a href="Sequence/o.html#operator!=-2700">operator!=</a>( const Sequence&lt; E &gt; &amp; rSeq ) const throw( );</td>
<td width="50%"> Unequality operator: Compares two sequences.

</td>
</tr>
<tr>
<td>void <br>
<a href="Sequence/o.html#realloc-2701">realloc</a>( sal_Int32 nSize );</td>
<td width="50%"> </td>
</tr>
<tr>
<td>uno_Sequence * <br>
<a href="Sequence/o.html#get-2702">get</a>( ) const throw( );</td>
<td width="50%"> Provides UNacquired sequence handle.

</td>
</tr>
</table>
<hr>
</dd>
</dl>
<a href="#_top_" class="objchapter">Top of Page</a><hr size="3"><p class="copyright" align="center">Copyright &copy; 2008 Sun Microsystems, Inc.</p>

</div> <!-- id="adc-cppref" -->
</body>

</html>