Scorum
wincase.hpp
Go to the documentation of this file.
1 #pragma once
2 #include <cstdint>
4 
5 namespace scorum {
6 namespace protocol {
7 
8 template <bool site, market_kind kind, typename tag> struct over_under_wincase
9 {
11  int16_t threshold;
12 
14  static constexpr market_kind kind_v = kind;
15 
17  {
18  return { threshold };
19  }
20 };
21 
22 template <bool site, market_kind kind, typename tag> struct score_yes_no_wincase
23 {
24  uint16_t home;
25  uint16_t away;
26 
28  static constexpr market_kind kind_v = kind;
29 
31  {
32  return { home, away };
33  }
34 };
35 
36 template <bool site, market_kind kind, typename tag> struct yes_no_wincase
37 {
39  static constexpr market_kind kind_v = kind;
40 
42  {
43  return {};
44  }
45 };
46 }
47 }
Definition: asset.cpp:15
static constexpr market_kind kind_v
Definition: wincase.hpp:14
opposite_type create_opposite() const
Definition: wincase.hpp:16
int16_t threshold
Market threshold x 1000 (i.e. -500 in 'handicap' market means -0.5)
Definition: wincase.hpp:11
static constexpr market_kind kind_v
Definition: wincase.hpp:28
opposite_type create_opposite() const
Definition: wincase.hpp:30
opposite_type create_opposite() const
Definition: wincase.hpp:41
static constexpr market_kind kind_v
Definition: wincase.hpp:39