31 explicit ConsensusBase(std::shared_ptr<DataContainer> container)
35 void findConsensus(
const PointTimePairs &points,
double seconds_earliest_start,
36 std::function<
void(uint32_t
id,
double start_time)> success_cb,
37 std::function<
void(uint32_t
id)> fail_cb) {
38 static_cast<T *
>(
this)->findConsensusImpl(points, seconds_earliest_start, success_cb, fail_cb);
41 void recvTopicMessage(
const std::string &topic,
const std::string &msg) {
42 return static_cast<T *
>(
this)->recvTopicMessageImpl(topic, msg);