GraphLab: Distributed Graph-Parallel API  2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
graphlab::atomic_add_vector2< ValueType > Class Template Reference

#include <graphlab/parallel/atomic_add_vector2.hpp>

List of all members.

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)

Detailed Description

template<typename ValueType>
class graphlab::atomic_add_vector2< ValueType >

DOCUMENT THIS CLASS

Definition at line 54 of file atomic_add_vector2.hpp.


Constructor & Destructor Documentation

template<typename ValueType>
graphlab::atomic_add_vector2< ValueType >::atomic_add_vector2 ( size_t  num_vertices = 0)
inline

Initialize the per vertex task set

Definition at line 130 of file atomic_add_vector2.hpp.


Member Function Documentation

template<typename ValueType>
bool graphlab::atomic_add_vector2< ValueType >::add ( const size_t &  idx,
const value_type &  val 
)
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.

template<typename ValueType>
bool graphlab::atomic_add_vector2< ValueType >::add ( const size_t &  idx,
const value_type &  val,
value_type &  new_value 
)
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.

template<typename ValueType>
void graphlab::atomic_add_vector2< ValueType >::resize ( size_t  num_vertices)
inline

Resize the internal locks for a different graph

Definition at line 136 of file atomic_add_vector2.hpp.

template<typename ValueType>
bool graphlab::atomic_add_vector2< ValueType >::test_and_get ( const size_t &  idx,
value_type &  ret_val 
)
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.


The documentation for this class was generated from the following file: