]> www.ginac.de Git - ginac.git/blob - ginac/flags.h
- Fixed the bug that broke xloop's po_redux.
[ginac.git] / ginac / flags.h
1 /** @file flags.h
2  *
3  *  Collection of all flags used through the GiNaC framework. */
4
5 /*
6  *  GiNaC Copyright (C) 1999-2000 Johannes Gutenberg University Mainz, Germany
7  *
8  *  This program is free software; you can redistribute it and/or modify
9  *  it under the terms of the GNU General Public License as published by
10  *  the Free Software Foundation; either version 2 of the License, or
11  *  (at your option) any later version.
12  *
13  *  This program is distributed in the hope that it will be useful,
14  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  *  GNU General Public License for more details.
17  *
18  *  You should have received a copy of the GNU General Public License
19  *  along with this program; if not, write to the Free Software
20  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
21  */
22
23 #ifndef __GINAC_FLAGS_H__
24 #define __GINAC_FLAGS_H__
25
26 #ifndef NO_NAMESPACE_GINAC
27 namespace GiNaC {
28 #endif // ndef NO_NAMESPACE_GINAC
29
30 class expand_options {
31 public:
32     enum { expand_trigonometric      = 0x0001
33          };
34 };
35
36 class series_options {
37 public:
38     enum { suppress_branchcut        = 0x0001
39          };
40 };
41
42 class determinant_options {
43 public:
44     enum { laplace,
45            bareiss
46          };
47 };
48
49 class status_flags {
50 public:
51     enum { dynallocated              = 0x0001,
52            evaluated                 = 0x0002,
53            expanded                  = 0x0004,
54            hash_calculated           = 0x0008
55          };
56 };
57
58 /** Possible attributes an object can have. */
59 class info_flags {
60 public:
61     enum {
62            // answered by class numeric
63            numeric,
64            real,
65            rational,
66            integer,
67            crational,
68            cinteger,
69            positive,
70            negative,
71            nonnegative,
72            posint,
73            negint,
74            nonnegint,
75            even,
76            odd,
77            prime,
78            
79            // answered by class relation
80            relation,
81            relation_equal,
82            relation_not_equal,
83            relation_less,
84            relation_less_or_equal,
85            relation_greater,
86            relation_greater_or_equal,
87            
88            // answered by class symbol
89            symbol,
90            
91            // answered by class lst
92            list,
93            
94            // answered by class exprseq
95            exprseq,
96            
97            // answered by classes numeric, symbol, add, mul, power
98            polynomial,
99            integer_polynomial,
100            cinteger_polynomial,
101            rational_polynomial,
102            crational_polynomial,
103            rational_function,
104            algebraic,
105            
106            // answered by class indexed
107            indexed,      // class can carry indices
108            has_indices,  // object has at least one index
109            
110            // answered by class idx
111            idx,
112            
113            // answered by class coloridx
114            coloridx,
115            
116            // answered by class lorentzidx
117            lorentzidx
118     };
119 };
120
121 class return_types {
122 public:
123     enum { commutative, noncommutative, noncommutative_composite};
124 };
125
126 class csrc_types {
127 public:
128         enum {
129                 ctype_float,
130                 ctype_double,
131                 ctype_cl_N
132         };
133 };
134
135 class remember_strategies {
136 public:
137     enum { delete_never, // let table grow undefinitely, not recommmended, but currently default
138            delete_lru,   // least recently used
139            delete_lfu,   // least frequently used
140            delete_cyclic // first (oldest) one in list
141     };
142 };
143
144 #ifndef NO_NAMESPACE_GINAC
145 } // namespace GiNaC
146 #endif // ndef NO_NAMESPACE_GINAC
147
148 #endif // ndef __GINAC_FLAGS_H__