Scorum
wincase_comparison.hpp
Go to the documentation of this file.
1 #include <scorum/utils/static_variant_comparison.hpp>
2 
3 namespace scorum {
4 namespace protocol {
5 
6 template <bool side, market_kind kind, typename tag>
8 {
9  return lhs.threshold < rhs.threshold;
10 }
11 
12 template <bool side, market_kind kind, typename tag>
14 {
15  return false;
16 }
17 
18 template <bool side, market_kind kind, typename tag>
20 {
21  return std::tie(lhs.home, lhs.away) < std::tie(rhs.home, rhs.away);
22 }
23 }
24 }
25 
26 namespace fc {
28 
29 template <> inline bool wincase_type::less_than(const wincase_type& that) const
30 {
31  return scorum::utils::variant_less(*this, that);
32 }
33 
34 template <> inline bool wincase_type::equal_to(const wincase_type& that) const
35 {
36  return scorum::utils::variant_eq(*this, that);
37 }
38 }
Definition: game.cpp:4
bool operator<(const over_under_market< kind, tag > &lhs, const over_under_market< kind, tag > &rhs)
fc::static_variant< result_home::yes, result_home::no, result_draw::yes, result_draw::no, result_away::yes, result_away::no, round_home::yes, round_home::no, handicap::over, handicap::under, correct_score_home::yes, correct_score_home::no, correct_score_draw::yes, correct_score_draw::no, correct_score_away::yes, correct_score_away::no, correct_score::yes, correct_score::no, goal_home::yes, goal_home::no, goal_both::yes, goal_both::no, goal_away::yes, goal_away::no, total::over, total::under, total_goals_home::over, total_goals_home::under, total_goals_away::over, total_goals_away::under > wincase_type
Definition: market.hpp:128
Definition: asset.cpp:15
int16_t threshold
Market threshold x 1000 (i.e. -500 in 'handicap' market means -0.5)
Definition: wincase.hpp:11