jengelh-datetimespielwiese
Last change
on this file since e4fe2b was
e4fe2b,
checked in by Oleksandr Motsak <motsak@…>, 12 years ago
|
FIX: Fixed huge BUG in cf_gmp.h
CHG: starting to cleanup factory
|
-
Property mode set to
100644
|
File size:
1.1 KB
|
Rev | Line | |
---|
[493c477] | 1 | /* emacs edit mode for this file is -*- C++ -*- */ |
---|
[341696] | 2 | /* $Id$ */ |
---|
[2dd068] | 3 | |
---|
[493c477] | 4 | #ifndef INCL_CF_ITER_H |
---|
| 5 | #define INCL_CF_ITER_H |
---|
[2dd068] | 6 | |
---|
[e4fe2b] | 7 | // #include "config.h" |
---|
[b973c0] | 8 | |
---|
[2dd068] | 9 | #include "canonicalform.h" |
---|
| 10 | |
---|
| 11 | /*BEGINPUBLIC*/ |
---|
| 12 | |
---|
[f80ca1] | 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 | |
---|
[2dd068] | 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 | |
---|
[f80ca1] | 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; |
---|
[2dd068] | 54 | }; |
---|
| 55 | |
---|
| 56 | /*ENDPUBLIC*/ |
---|
| 57 | |
---|
[f80ca1] | 58 | #ifdef CF_USE_INLINE |
---|
| 59 | #include "cf_iter_inline.cc" |
---|
| 60 | #endif |
---|
| 61 | |
---|
[493c477] | 62 | #endif /* ! INCL_CF_ITER_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.