<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"> <a href="../../../../../index.html">Overview</a> </td> <td class="navimain"> <a href="index.html">Namespace</a> </td> <td class="navimainself"> Class </td> <td class="navimain"> <a href="../../../../../index-files/index-1.html">Index</a> </td> <td class="navimain"> <a href="../../../../../help.html">Help</a> </td> </tr> </table> <table class="navisub" cellpadding="0" cellspacing="3"> <tr> <td width="20%"><font size="-2">PUBLIC MEMBERS:</font></td> <td> <font size="-2">CLASSES</font> | <font size="-2">STRUCTS</font> | <font size="-2">UNIONS</font> | <font size="-2">ENUMS</font> | <a href="#publ_tydefs"><font size="-2"><b>TYPEDEFS</b></font></a> | <a href="#publ_ops"><font size="-2"><b>METHODS</b></font></a> | <font size="-2">STATIC METHODS</font> | <font size="-2">DATA</font> | <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< typename E ></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-2642">Sequence</a>( ) throw( );</td> <td width="50%"> Default constructor: Creates an empty sequence. </td> </tr> <tr> <td> <br> <a href="Sequence/o.html#Sequence-2643">Sequence</a>( const Sequence< E > & 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-2644">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-2645">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-2646">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-2647">~Sequence</a>( ) throw( );</td> <td width="50%"> Destructor: Releases sequence handle. Last handle will destruct elements and free memory. </td> </tr> <tr> <td>Sequence< E > & <br> <a href="Sequence/o.html#operator=-2648">operator=</a>( const Sequence< E > & 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-2649">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-2650">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-2651">getConstArray</a>( ) const throw( );</td> <td width="50%"> </td> </tr> <tr> <td>E * <br> <a href="Sequence/o.html#getArray-2652">getArray</a>( );</td> <td width="50%"> </td> </tr> <tr> <td>E & <br> <a href="Sequence/o.html#operator[]-2653">operator[]</a>( sal_Int32 nIndex );</td> <td width="50%"> </td> </tr> <tr> <td>const E & <br> <a href="Sequence/o.html#operator[]-2654">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==-2655">operator==</a>( const Sequence< E > & 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!=-2656">operator!=</a>( const Sequence< E > & rSeq ) const throw( );</td> <td width="50%"> Unequality operator: Compares two sequences. </td> </tr> <tr> <td>void <br> <a href="Sequence/o.html#realloc-2657">realloc</a>( sal_Int32 nSize );</td> <td width="50%"> </td> </tr> <tr> <td>uno_Sequence * <br> <a href="Sequence/o.html#get-2658">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 © 2011, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.</p> </div> <!-- id="adc-cppref" --> </body> </html>