CoxIter  1.3
CoxIter - Computing invariants of hyperbolic Coxeter groups
number_template.h
Go to the documentation of this file.
1 /*
2 Copyright (C) 2013, 2014
3 Rafael Guglielmetti, rafael.guglielmetti@unifr.ch
4 */
5 
6 /*
7 This file is part of CoxIter.
8 
9 CoxIter is free software: you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as
11 published by the Free Software Foundation, either version 3 of the
12 License, or (at your option) any later version.
13 
14 CoxIter is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18 
19 You should have received a copy of the GNU General Public License
20 along with CoxIter. If not, see <http://www.gnu.org/licenses/>.
21 */
22 
30 #ifndef __NUMBER_TEMPLATE_H__
31 #define __NUMBER_TEMPLATE_H__
32 
33 #include <iostream>
34 
35 using namespace std;
36 
38 public:
39  bool isZero;
40  bool isMinusOne;
41  bool isOne;
42  bool isInt;
43 
44 public:
45  virtual bool operator==(Number_template const &) const;
46  virtual bool operator!=(Number_template const &) const;
47 
48  virtual Number_template operator+(Number_template const &n) const;
49  virtual Number_template &operator+=(Number_template const &n);
50 
51  virtual Number_template operator-(Number_template const &n) const;
52  virtual Number_template &operator-=(Number_template const &n);
53 
54  virtual Number_template operator*(Number_template const &n) const;
55  virtual Number_template &operator*=(Number_template const &n);
56 
57  virtual Number_template operator/(Number_template const &n) const;
58  virtual Number_template &operator/=(Number_template const &n);
59 
60  virtual void print(ostream &) const;
61 };
62 
63 ostream &operator<<(ostream &, Number_template const &);
64 
65 #endif
Definition: number_template.h:37
bool isOne
Definition: number_template.h:41
bool isMinusOne
Definition: number_template.h:40
bool isInt
Definition: number_template.h:42
bool isZero
Definition: number_template.h:39
bool operator==(const Graph &g1, const Graph &g2)
Definition: graph.cpp:991
ostream & operator<<(ostream &, Number_template const &)