#include <Sequence.h>
|
typedef bool | ElementType |
| typedefs the element type of the sequence
|
|
| ~Sequence () |
| Destructor: Releases sequence handle.
|
Sequence & | operator= (const Sequence &rSeq) |
| Assignment operator: Acquires given sequence handle and releases previously set handle.
|
sal_Int32 | getLength () const |
| Gets length of the sequence.
|
bool | hasElements () const |
| Tests whether the sequence has elements, i.e.
|
const bool * | getConstArray () const |
| Gets a pointer to elements array for reading.
|
bool * | getArray () |
| Gets a pointer to elements array for reading and writing.
|
bool * | begin () |
| This function allows to use Sequence in standard algorithms, like std::find and others.
|
bool * | end () |
| This function allows to use Sequence in standard algorithms, like std::find and others.
|
bool & | operator[] (sal_Int32 nIndex) |
| Non-const index operator: Obtains a reference to element indexed at given position.
|
bool | operator== (const Sequence &rSeq) const |
| Equality operator: Compares two sequences.
|
bool | operator!= (const Sequence &rSeq) const |
| Inequality operator: Compares two sequences.
|
void | realloc (sal_Int32 nSize) |
| Reallocates sequence to new length.
|
uno_Sequence * | get () const |
| Provides UNacquired sequence handle.
|
◆ ElementType
typedefs the element type of the sequence
◆ ~Sequence()
Destructor: Releases sequence handle.
Last handle will destruct elements and free memory.
◆ begin()
This function allows to use Sequence in standard algorithms, like std::find and others.
- Since
- LibreOffice 4.2
◆ end()
This function allows to use Sequence in standard algorithms, like std::find and others.
- Since
- LibreOffice 4.2
◆ get()
Provides UNacquired sequence handle.
- Returns
- UNacquired sequence handle
◆ getArray()
Gets a pointer to elements array for reading and writing.
In general if the sequence has a handle acquired by other sequences (reference count > 1), then a new sequence is created copy constructing all elements to keep value semantics! If the sequence has a length of 0, then the returned pointer is undefined.
- Returns
- pointer to elements array
◆ getConstArray()
Gets a pointer to elements array for reading.
If the sequence has a length of 0, then the returned pointer is undefined.
- Returns
- pointer to elements array
◆ getLength()
Gets length of the sequence.
- Returns
- length of sequence
◆ hasElements()
Tests whether the sequence has elements, i.e.
elements count is greater than zero.
- Returns
- true, if elements count is greater than zero
◆ operator!=()
Inequality operator: Compares two sequences.
- Parameters
-
rSeq | another sequence of same type (right side) |
- Returns
- false if both sequences are equal, true otherwise
◆ operator=()
Assignment operator: Acquires given sequence handle and releases previously set handle.
- Parameters
-
rSeq | another sequence of same type |
- Returns
- this sequence
◆ operator==()
Equality operator: Compares two sequences.
- Parameters
-
rSeq | another sequence of same type (right side) |
- Returns
- true if both sequences are equal, false otherwise
◆ operator[]()
Non-const index operator: Obtains a reference to element indexed at given position.
The implementation does not check for array bounds! In general if the sequence has a handle acquired by other sequences (reference count > 1), then a new sequence is created copy constructing all elements to keep value semantics!
- Parameters
-
- Returns
- non-const C++ reference to element
◆ realloc()
Reallocates sequence to new length.
If the new length is smaller than the former, then upper elements will be destructed (and their memory freed). If the new length is greater than the former, then upper (new) elements are default constructed. If the sequence has a handle acquired by other sequences (reference count > 1), then the remaining elements are copy constructed to a new sequence handle to keep value semantics!
- Parameters
-
nSize | new size of sequence |
The documentation for this class was generated from the following files: