Tizen Native API
3.0
|
Vector algorithm variant for trivial types. More...
Protected Member Functions | |
VectorAlgorithms () | |
Empty constructor. | |
~VectorAlgorithms () | |
Empty destructor. | |
void | Copy (const VectorBase &rhs, SizeType elementSize) |
Copy vector contents. | |
void | Reserve (SizeType count, SizeType elementSize) |
Reserves space in the vector. | |
void | Resize (SizeType count, SizeType elementSize) |
Resizes the vector. Does not change capacity. | |
void | Clear () |
Clears the contents. | |
void | Release () |
Releases the vector. | |
void | Erase (char *address, SizeType elementSize) |
Erases an element. Does not change capacity. | |
char * | Erase (char *first, char *last, SizeType elementSize) |
Erases a range of elements. Does not change capacity. | |
void | Insert (char *at, char *from, char *to, SizeType elementSize) |
Inserts the given elements into the vector. |
Detailed Description
template<bool IsTrivial>
class Dali::VectorAlgorithms< IsTrivial >
Vector algorithm variant for trivial types.
Trivial types do not need destructor or copy constructor called.
- Since:
- 2.4, DALi version 1.0.0
Constructor & Destructor Documentation
Dali::VectorAlgorithms< IsTrivial >::VectorAlgorithms | ( | ) | [protected] |
Empty constructor.
- Since:
- 2.4, DALi version 1.0.0
Dali::VectorAlgorithms< IsTrivial >::~VectorAlgorithms | ( | ) | [protected] |
Empty destructor.
- Since:
- 2.4, DALi version 1.0.0
Member Function Documentation
void Dali::VectorAlgorithms< IsTrivial >::Clear | ( | ) | [protected] |
Clears the contents.
For simple types, nothing to do.
- Since:
- 2.4, DALi version 1.0.0
Reimplemented in Dali::Vector< T, IsTrivialType >, Dali::Vector< SlotConnection * >, and Dali::Vector< SignalConnection * >.
void Dali::VectorAlgorithms< IsTrivial >::Copy | ( | const VectorBase & | rhs, |
SizeType | elementSize | ||
) | [protected] |
Copy vector contents.
- Since:
- 2.4, DALi version 1.0.0
- Parameters:
-
[in] rhs VectorBase object to copy from [in] elementSize Size of the content
Reimplemented from Dali::VectorBase.
void Dali::VectorAlgorithms< IsTrivial >::Erase | ( | char * | address, |
SizeType | elementSize | ||
) | [protected] |
Erases an element. Does not change capacity.
- Since:
- 2.4, DALi version 1.0.0
- Parameters:
-
[in] address Address to erase from [in] elementSize Size to erase
Reimplemented from Dali::VectorBase.
char* Dali::VectorAlgorithms< IsTrivial >::Erase | ( | char * | first, |
char * | last, | ||
SizeType | elementSize | ||
) | [protected] |
Erases a range of elements. Does not change capacity.
- Since:
- 2.4, DALi version 1.0.0
- Parameters:
-
[in] first Address to the first element to be erased [in] last Address to the last element to be erased [in] elementSize Size of one of the elements to be erased
- Returns:
- Address pointing to the next element of the last one
Reimplemented from Dali::VectorBase.
void Dali::VectorAlgorithms< IsTrivial >::Insert | ( | char * | at, |
char * | from, | ||
char * | to, | ||
SizeType | elementSize | ||
) | [protected] |
Inserts the given elements into the vector.
- Since:
- 2.4, DALi version 1.0.0
- Parameters:
-
[in] at Address where to insert the elements into the vector [in] from Address to the first element to be inserted [in] to Address to the last element to be inserted [in] elementSize Size of one of the elements to be inserted
void Dali::VectorAlgorithms< IsTrivial >::Release | ( | ) | [protected] |
Releases the vector.
- Since:
- 2.4, DALi version 1.0.0
Reimplemented from Dali::VectorBase.
Reimplemented in Dali::Vector< T, IsTrivialType >, Dali::Vector< SlotConnection * >, and Dali::Vector< SignalConnection * >.
void Dali::VectorAlgorithms< IsTrivial >::Reserve | ( | SizeType | count, |
SizeType | elementSize | ||
) | [protected] |
Reserves space in the vector.
- Since:
- 2.4, DALi version 1.0.0
- Parameters:
-
[in] count Count of elements to reserve [in] elementSize Size of a single element
Reimplemented from Dali::VectorBase.
void Dali::VectorAlgorithms< IsTrivial >::Resize | ( | SizeType | count, |
SizeType | elementSize | ||
) | [protected] |
Resizes the vector. Does not change capacity.
- Since:
- 2.4, DALi version 1.0.0
- Parameters:
-
[in] count Count to resize to [in] elementSize Size of a single element