![]() |
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 StaticStack< Pair< Node *, dir_t >, MAX_HEIGHT >::copy(), Array< elm::String >::copy(), WAHVector::copy(), copy(), builder::copy(), Vector< elm::dtd::AbstractAttribute * >::copy(), Buffer::copyFrom(), Buffer::copyTo(), Vector< elm::dtd::AbstractAttribute * >::grow(), Bag< T >::make(), BitVector::resize(), and WAHVector::WAHVector().
|
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< elm::dtd::AbstractAttribute * >::insert(), move(), and Vector< elm::dtd::AbstractAttribute * >::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< elm::String >::fill(), and Output::print().