35 const Node* new_node) {
41 if (observation->
state == new_state)
return;
44 observation->
state = new_state;
52 if (old_node != new_node) {
virtual Observation OnNodeChanged(const char *reducer_name, const Node *node, const ObservableNodeState &old_state)
virtual Observation OnNodeCreated(const Node *node)
void set_has_observed_changes()
ObservableNodeState(const Node *node, Zone *zone)
void OnNodeChanged(const char *reducer_name, const Node *old_node, const Node *new_node)
ZoneMap< NodeId, NodeObservation * > observations_
void StartObserving(Node *node, NodeObserver *observer)
ZoneVector< RpoNumber > & result
#define DCHECK_NOT_NULL(val)
#define DCHECK(condition)
#define DCHECK_EQ(v1, v2)
ObservableNodeState state