![]() |
Elm
2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
Classes | |
| class | fast |
| class | slow |
Functions | |
| template<class T > | |
| void | copy (T *target, const T *source, int size) |
| template<class T > | |
| void | copy_back (T *target, const T *source, int size) |
| template<class T > | |
| void | move (T *target, const T *source, int size) |
| template<class T > | |
| void | set (T *target, int size, const T &v) |
| template<class T > | |
| void | clear (T *target, int size) |
| template<class T > | |
| bool | equals (const T *t1, const T *t2, int size) |
| template<class T > | |
| void | construct (T *t, int size) |
| template<class T > | |
| void | destruct (T *t, int size) |
| void | copy (cstring *d, cstring *a, int s) |
| void | move (cstring *d, cstring *a, int s) |
| void | clear (cstring *d, int s) |
| template<class T > | |
| void | reverse (T *a, int n) |
|
inline |
Set the items of an array of the given size to 0.
| target | Target array. |
| size | Size of both arrays. |
Referenced by clear().
|
inline |
|
inline |
Copy source array of the given size to the target as fast as possible. The arrays must not overlap.
| target | Target array. |
| source | Source array. |
| size | Size of both arrays. |
Referenced by WAHVector::WAHVector(), Array< T >::copy(), StaticStack< T, N >::copy(), Vector< T, E, A >::copy(), WAHVector::copy(), copy(), builder::copy(), Buffer::copyFrom(), Buffer::copyTo(), Vector< T, E, A >::grow(), Bag< T >::make(), and BitVector::resize().
|
inline |
|
inline |
|
inline |
|
inline |
Copy source array of the given size to the target as fast as possible. The arrays may overlap.
| target | Target array. |
| source | Source array. |
| size | Size of both arrays. |
Referenced by Vector< T, E, A >::insert(), move(), and Vector< T, E, A >::removeAt().
| void reverse | ( | T * | a, |
| int | n | ||
| ) |
Reverse the elements of the given array.
| a | Array to reverse. |
| n | Number of elements in a. |
References elm::swap().
|
inline |
Set the items of an array of the given size to the given value, as fast as possible.
| target | Target array. |
| size | Size of both arrays. |
| v | Value to set. |
Referenced by Array< T >::fill(), and Output::print().