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

Concept checks if a type T supports operator+=. More...

#include <graphlab/vertex_program/op_plus_eq_concept.hpp>

List of all members.

Public Member Functions

 BOOST_CONCEPT_USAGE (OpPlusEq)

Detailed Description

template<typename T>
class graphlab::OpPlusEq< T >

Concept checks if a type T supports operator+=.

This is a concept checking class for boost::concept and can be used to enforce that a type T is "additive." In particular many types in GraphLab (e.g., messages, gather_type, as well as aggregation types) must support operator+=. To achieve this the class should implement:

class gather_type {
int member1;
public:
gather_type& operator+=(const gather_type& other) {
member1 += other.member1;
return *this;
} // end of operator+=
};
Template Parameters:
TThe type to test for additivity

Definition at line 59 of file op_plus_eq_concept.hpp.


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