GraphLab: Distributed Graph-Parallel API
2.1
|
#include <graphlab/parallel/atomic_add_vector.hpp>
Public Types | |
typedef ValueType | value_type |
Public Member Functions | |
atomic_add_vector (size_t num_vertices=0) | |
void | resize (size_t num_vertices) |
bool | add (const size_t &idx, const value_type &val) |
bool | add (const size_t &idx, const value_type &val, value_type &new_value) |
bool | test_and_get (const size_t &idx, value_type &ret_val) |
bool | peek (const size_t &idx, value_type &ret_val) |
bool | empty (const size_t &idx) |
size_t | size () const |
size_t | num_joins () const |
void | clear () |
void | clear (size_t i) |
DOCUMENT THIS CLASS
Definition at line 54 of file atomic_add_vector.hpp.
|
inline |
Initialize the per vertex task set
Definition at line 207 of file atomic_add_vector.hpp.
|
inline |
Add a task to the set returning false if the task was already present.
Definition at line 220 of file atomic_add_vector.hpp.
|
inline |
Add a task to the set returning false if the task was already
present.
Definition at line 237 of file atomic_add_vector.hpp.
|
inline |
Resize the internal locks for a different graph
Definition at line 213 of file atomic_add_vector.hpp.
|
inline |
Add a task to the set returning false if the task was already
present. Returns the priority of the task before and after insertion. If the task did not exist prior to the add, prev_priority = 0
Definition at line 270 of file atomic_add_vector.hpp.