GraphLab: Distributed Graph-Parallel API
2.1
|
#include <graphlab/parallel/atomic_add_vector2.hpp>
Public Types | |
typedef ValueType | value_type |
Public Member Functions | |
atomic_add_vector2 (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_vector2.hpp.
|
inline |
Initialize the per vertex task set
Definition at line 130 of file atomic_add_vector2.hpp.
|
inline |
Add a task to the set returning false if the task was already present.
Definition at line 142 of file atomic_add_vector2.hpp.
|
inline |
Add a task to the set returning false if the task was already
present.
Definition at line 159 of file atomic_add_vector2.hpp.
|
inline |
Resize the internal locks for a different graph
Definition at line 136 of file atomic_add_vector2.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 192 of file atomic_add_vector2.hpp.