|
LLVM OpenMP
|
kmp_vector is a vector class for managing small vectors. More...
#include "/work/as-worker-4/publish-doxygen-docs/llvm-project/openmp/runtime/src/kmp_adt.h"
Public Member Functions | |
| ~kmp_vector () | |
| kmp_vector (size_t capacity=0) | |
| kmp_vector (size_t capacity, const T *init_data, size_t count) | |
| kmp_vector (const kmp_vector &other) | |
| kmp_vector (kmp_vector &&other) noexcept | |
| kmp_vector & | operator= (const kmp_vector &other) |
| kmp_vector & | operator= (kmp_vector &&other) noexcept |
| void | clear () |
| Destroy all elements in the vector. Doesn't free the memory. | |
| template<typename Fn = default_eq> | |
| bool | contains (const T &value, const Fn &comp=Fn{}) const |
| Check if the vector contains the given value. | |
| bool | empty () const |
| template<typename Fn = default_eq> | |
| bool | is_set_equal (const kmp_vector &other, const Fn &comp=Fn{}) const |
| Check if the two vectors are equal with set semantics. | |
| void | push_back (const T &value) |
| Add a new element to the end of the vector. | |
| void | reserve (size_t new_capacity) |
| Reserve space for the given number of elements. | |
| size_t | size () const |
| T & | operator[] (size_t index) |
| const T & | operator[] (size_t index) const |
| T * | begin () |
| Iterator support (raw pointers work as iterators for contiguous storage) | |
| T * | end () |
| const T * | begin () const |
| const T * | end () const |
kmp_vector is a vector class for managing small vectors.
INLINE_THRESHOLD: Number of elements in the inline array. If exceeded, the vector will grow dynamically.
|
inline |
|
inlineexplicit |
|
inline |
|
inline |
|
inlinenoexcept |
|
inline |
Iterator support (raw pointers work as iterators for contiguous storage)
Definition at line 330 of file kmp_adt.h.
Referenced by kmp_trait_context::begin(), and kmp_trait_context::begin().
|
inline |
|
inline |
|
inline |
Check if the vector contains the given value.
If a comparator is provided, it will be used to compare the values. Otherwise, the equality operator will be used.
Definition at line 271 of file kmp_adt.h.
Referenced by kmp_trait_context::match().
|
inline |
|
inline |
Definition at line 331 of file kmp_adt.h.
Referenced by kmp_trait_context::end(), and kmp_trait_context::end().
|
inline |
|
inline |
|
inline |
|
inlinenoexcept |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |