27 #ifndef WF_VECTOR_API_H_
28 #define WF_VECTOR_API_H_
31 #include <tervel/containers/wf/vector/vector.hpp>
44 container =
new tervel::containers::wf::vector::Vector<T>(capacity);
58 bool at(
size_t idx, T &value) {
62 bool cas(
size_t idx, T &expValue, T newValue) {
63 return container->cas(idx, expValue, newValue);
81 tervel::containers::wf::vector::Vector<T> *
container;
84 #endif // WF_VECTOR_API_H_
void detach_thread()
Definition: wf_vector_api.h:56
Thread local information.
Definition: thread_context.h:62
bool pop_back(T &value)
Definition: wf_vector_api.h:71
map_t * container
Definition: cliff_api.h:102
bool cas(size_t idx, T &expValue, T newValue)
Definition: wf_vector_api.h:62
void attach_thread()
Definition: blank_api.h:40
size_t push_back(T value)
Definition: wf_vector_api.h:66
Contains shared information that should be accessible by all threads.
Definition: tervel.h:39
size_t size()
Definition: wf_vector_api.h:75
tervel::containers::wf::vector::Vector< T > * container
Definition: wf_vector_api.h:81
bool at(size_t idx, T &value)
Definition: wf_vector_api.h:58
Definition: blank_api.h:31
TestClass(size_t num_threads, size_t capacity)
Definition: wf_vector_api.h:41
tervel::Tervel * tervel_obj
Definition: wf_hashmap_api.h:98
std::string toString()
Definition: wf_vector_api.h:47