Scorum
vote_evaluator.hpp
Go to the documentation of this file.
1 #pragma once
2 
5 
6 namespace scorum {
7 namespace chain {
8 
9 struct data_service_factory_i;
10 struct account_service_i;
11 struct comment_service_i;
12 struct dynamic_global_property_service_i;
13 struct comment_vote_service_i;
14 struct hardfork_property_service_i;
15 
16 class vote_evaluator : public evaluator_impl<data_service_factory_i, vote_evaluator>
17 {
18 public:
20 
21  vote_evaluator(data_service_factory_i& services);
22 
23  void do_apply(const operation_type& op);
24 
26 
27 private:
28  account_service_i& _account_service;
29  comment_service_i& _comment_service;
30  comment_vote_service_i& _comment_vote_service;
32  hardfork_property_service_i& _hardfork_service;
33 };
34 
35 } // namespace chain
36 } // namespace scorum
vote_evaluator(data_service_factory_i &services)
void do_apply(const operation_type &op)
protocol::vote_weight_type get_weigth(const operation_type &o) const
int16_t vote_weight_type
Definition: types.hpp:70
Definition: asset.cpp:15