Overview | Namespace | Class | Index | Help |
PUBLIC MEMBERS: | CLASSES | STRUCTS | UNIONS | ENUMS | TYPEDEFS | METHODS | STATIC METHODS | DATA | STATIC DATA |
template< typename E >
virtual | abstract | interface | template |
NO | NO | NO | YES |
E | element type of sequence |
Typedefs |
|
ElementType | typedefs the element type of the sequence |
Methods |
|
Sequence( ) throw( ); |
Default constructor: Creates an empty sequence. |
Sequence( const Sequence< E > & rSeq ) throw( ); |
Copy constructor: Creates a copy of given sequence. |
Sequence( uno_Sequence * pSequence, __sal_NoAcquire ) throw( ); |
Constructor: Takes over ownership of given sequence. |
Sequence( const E * pElements, sal_Int32 len ); |
Constructor: Creates a copy of given elements. |
explicit Sequence( sal_Int32 len ); |
Constructor: Creates a default constructed sequence of given length. |
~Sequence( ) throw( ); |
Destructor: Releases sequence handle. Last handle will destruct elements and free memory. |
Sequence< E > & operator=( const Sequence< E > & rSeq ) throw( ); |
Assignment operator: Acquires given sequence handle and releases previously set handle. |
sal_Int32 getLength( ) const throw( ); |
Gets length of the sequence. |
sal_Bool hasElements( ) const throw( ); |
Tests whether the sequence has elements, i.e. elements count is greater than zero. |
const E * getConstArray( ) const throw( ); |
|
E * getArray( ); |
|
E & operator[]( sal_Int32 nIndex ); |
|
const E & operator[]( sal_Int32 nIndex ) const throw( ); |
Const index operator: Obtains a reference to element indexed at given position. The implementation does not check for array bounds! |
sal_Bool operator==( const Sequence< E > & rSeq ) const throw( ); |
Equality operator: Compares two sequences. |
sal_Bool operator!=( const Sequence< E > & rSeq ) const throw( ); |
Unequality operator: Compares two sequences. |
void realloc( sal_Int32 nSize ); |
|
uno_Sequence * get( ) const throw( ); |
Provides UNacquired sequence handle. |
Copyright © 2000, 2012 LibreOffice contributors and/or their affiliates. All rights reserved.
LibreOffice was created by The Document Foundation, based on OpenOffice.org, which is Copyright 2000, 2010 Oracle and/or its affiliates.
The Document Foundation acknowledges all community members, please find more info at our website.
Privacy Policy | Impressum (Legal Info) | Copyright information: The source code of LibreOffice is licensed under the GNU Lesser General Public License (LGPLv3). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.