CoxIter  1.2
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 {
39  public:
40  bool isZero;
41  bool isMinusOne;
42  bool isOne;
43  bool isInt;
44 
45  public:
46  virtual bool operator==(Number_template const &) const;
47  virtual bool operator!=(Number_template const &) const;
48 
49  virtual Number_template operator+( Number_template const &n ) const;
50  virtual Number_template& operator+=( Number_template const &n );
51 
52  virtual Number_template operator-( Number_template const &n ) const;
53  virtual Number_template& operator-=( Number_template const &n );
54 
55  virtual Number_template operator*( Number_template const &n ) const;
56  virtual Number_template& operator*=( Number_template const &n );
57 
58  virtual Number_template operator/( Number_template const &n ) const;
59  virtual Number_template& operator/=( Number_template const &n );
60 
61  virtual void print( ostream & ) const;
62 };
63 
64 ostream& operator<<( ostream& , Number_template const & );
65 
66 #endif
Definition: number_template.h:37
ostream & operator<<(ostream &, Number_template const &)
bool isInt
Definition: number_template.h:43
bool isMinusOne
Definition: number_template.h:41
bool operator==(const Graph &g1, const Graph &g2)
Definition: graph.cpp:918
bool isOne
Definition: number_template.h:42
bool isZero
Definition: number_template.h:40