source:
git/factory/cf_iter.h
@
341696
Last change on this file since 341696 was 341696, checked in by , 14 years ago | |
---|---|
|
|
File size: 1.1 KB |
Line | |
---|---|
1 | /* emacs edit mode for this file is -*- C++ -*- */ |
2 | /* $Id$ */ |
3 | |
4 | #ifndef INCL_CF_ITER_H |
5 | #define INCL_CF_ITER_H |
6 | |
7 | #include <config.h> |
8 | |
9 | #include "canonicalform.h" |
10 | |
11 | /*BEGINPUBLIC*/ |
12 | |
13 | #undef CF_INLINE |
14 | #define CF_INLINE |
15 | #undef CF_NO_INLINE |
16 | #define CF_NO_INLINE |
17 | |
18 | /*ENDPUBLIC*/ |
19 | |
20 | #ifdef CF_USE_INLINE |
21 | #undef CF_INLINE |
22 | #define CF_INLINE inline |
23 | #else |
24 | #undef CF_INLINE |
25 | #define CF_INLINE |
26 | #endif |
27 | |
28 | /*BEGINPUBLIC*/ |
29 | |
30 | class term; |
31 | typedef term * termList; |
32 | |
33 | class CFIterator { |
34 | private: |
35 | CanonicalForm data; |
36 | termList cursor; |
37 | bool ispoly, hasterms; |
38 | public: |
39 | CFIterator (); |
40 | CFIterator ( const CFIterator& ); |
41 | CFIterator ( const CanonicalForm& ); |
42 | CFIterator ( const CanonicalForm&, const Variable& ); |
43 | |
44 | ~CFIterator (); |
45 | |
46 | CFIterator& operator= ( const CFIterator& ); |
47 | CFIterator& operator= ( const CanonicalForm& ); |
48 | |
49 | CF_NO_INLINE CFIterator& operator++ (); |
50 | CF_NO_INLINE CFIterator& operator++ ( int ); |
51 | CF_NO_INLINE int hasTerms () const; |
52 | CF_NO_INLINE CanonicalForm coeff () const; |
53 | CF_NO_INLINE int exp () const; |
54 | }; |
55 | |
56 | /*ENDPUBLIC*/ |
57 | |
58 | #ifdef CF_USE_INLINE |
59 | #include "cf_iter_inline.cc" |
60 | #endif |
61 | |
62 | #endif /* ! INCL_CF_ITER_H */ |
Note: See TracBrowser
for help on using the repository browser.