source: git/factory/cf_iter.h @ e4fe2b

jengelh-datetimespielwiese
Last change on this file since e4fe2b was e4fe2b, checked in by Oleksandr Motsak <motsak@…>, 11 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
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
30class term;
31typedef term * termList;
32
33class CFIterator {
34private:
35    CanonicalForm data;
36    termList cursor;
37    bool ispoly, hasterms;
38public:
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.