MCPcopy Create free account
hub / github.com/alibaba/libgrape-lite / Init

Method Init

grape/parallel/sync_buffer.h:78–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76 inline const std::type_info& GetTypeId() const override { return typeid(T); }
77
78 void Init(const VERTEX_SET_T& range, const T& value,
79 const std::function<bool(T*, T&&)>& aggregator) {
80 range_ = range;
81 data_.Init(range, value);
82 updated_.Init(range, false);
83 aggregator_ = aggregator;
84 }
85
86 void SetValue(const vertex_t& v, const T& value) {
87 if (value != data_[v]) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected