GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
Numbers.hh
Go to the documentation of this file.
1
2class Integer
3{
4 std::string rep;
5};
6
8{
9 Integer a;
10 Integer b;
11};
12
13class IReal
14{
15public:
16 virtual bool Inside(Rational r) const=0; // {x \in Q: x<a}
17 virtual IReal *Upgrade(Rational r) const=0; // if (r<a) return r else return 0
18};
19struct Real
20{
22};
23class RealCut : public IReal
24{
25public:
26 RealCut(Real &p) : p(p) { }
27 bool Inside(Rational r) const
28 {
29 return
30 }
31private:
32 Real &p;
33};
Definition Numbers.hh:14
virtual IReal * Upgrade(Rational r) const =0
virtual bool Inside(Rational r) const =0
Definition Language.hh:540
Definition Numbers.hh:8
RealCut(Real &p)
Definition Numbers.hh:26
bool Inside(Rational r) const
Definition Numbers.hh:27
Definition Numbers.hh:20
IReal * real
Definition Numbers.hh:21