Changeset 518a1f in git
- Timestamp:
- Jun 29, 1998, 4:37:00 PM (26 years ago)
- Branches:
- (u'spielwiese', '5b153614cbc72bfa198d75b1e9e33dab2645d9fe')
- Children:
- 12223ddcbd1a799cd7cdde67969851c072107d26
- Parents:
- 40edbfe88d4432f89635b26bfd7231f930259c04
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/canonicalform.h
r40edbfe r518a1f 1 1 /* emacs edit mode for this file is -*- C++ -*- */ 2 /* $Id: canonicalform.h,v 1.2 4 1998-03-12 10:28:35schmidt Exp $ */2 /* $Id: canonicalform.h,v 1.25 1998-06-29 14:37:00 schmidt Exp $ */ 3 3 4 4 #ifndef INCL_CANONICALFORM_H … … 17 17 #include "ftmpl_factor.h" 18 18 #include "ftmpl_matrix.h" 19 20 /*BEGINPUBLIC*/ 21 22 #undef CF_INLINE 23 #define CF_INLINE 24 #undef CF_NO_INLINE 25 #define CF_NO_INLINE 26 27 /*ENDPUBLIC*/ 28 29 #ifdef CF_USE_INLINE 30 #undef CF_INLINE 31 #define CF_INLINE inline 32 #else 33 #undef CF_INLINE 34 #define CF_INLINE 35 #endif 19 36 20 37 /*BEGINPUBLIC*/ … … 33 50 public: 34 51 // constructors, destructors, selectors 35 C anonicalForm();36 C anonicalForm( const CanonicalForm& );37 C anonicalForm( InternalCF* );38 C anonicalForm( const int );39 C anonicalForm( const Variable & );40 C anonicalForm( const Variable &, int );52 CF_INLINE CanonicalForm(); 53 CF_INLINE CanonicalForm( const CanonicalForm& ); 54 CF_INLINE CanonicalForm( InternalCF* ); 55 CF_INLINE CanonicalForm( const int ); 56 CF_INLINE CanonicalForm( const Variable & ); 57 CF_INLINE CanonicalForm( const Variable &, int ); 41 58 CanonicalForm( const char * ); // use with caution - does only handle integers !!! 42 59 43 ~CanonicalForm();60 CF_NO_INLINE ~CanonicalForm(); 44 61 45 62 InternalCF* getval() const; // use with caution !!! … … 48 65 49 66 // predicates 50 bool isOne() const;51 bool isZero() const;67 CF_NO_INLINE bool isOne() const; 68 CF_NO_INLINE bool isZero() const; 52 69 bool isImm() const; 53 70 … … 88 105 89 106 // assignment operators 90 C anonicalForm& operator = ( const CanonicalForm& );91 C anonicalForm& operator = ( const int );107 CF_NO_INLINE CanonicalForm& operator = ( const CanonicalForm& ); 108 CF_NO_INLINE CanonicalForm& operator = ( const int ); 92 109 93 110 CanonicalForm& operator += ( const CanonicalForm& ); … … 119 136 120 137 // arithmetic operators 121 friend CanonicalForm operator - ( const CanonicalForm& ); 122 123 friend CanonicalForm operator + ( const CanonicalForm&, const CanonicalForm& ); 124 friend CanonicalForm operator - ( const CanonicalForm&, const CanonicalForm& ); 125 friend CanonicalForm operator * ( const CanonicalForm&, const CanonicalForm& ); 126 friend CanonicalForm operator / ( const CanonicalForm&, const CanonicalForm& ); 127 friend CanonicalForm operator % ( const CanonicalForm&, const CanonicalForm& ); 128 129 friend CanonicalForm div ( const CanonicalForm&, const CanonicalForm& ); 130 friend CanonicalForm mod ( const CanonicalForm&, const CanonicalForm& ); 138 friend CF_NO_INLINE CanonicalForm operator - ( const CanonicalForm& ); 131 139 132 140 friend void divrem ( const CanonicalForm&, const CanonicalForm&, CanonicalForm&, CanonicalForm& ); … … 151 159 }; 152 160 //}}} 161 162 CF_INLINE CanonicalForm 163 operator + ( const CanonicalForm&, const CanonicalForm& ); 164 165 CF_NO_INLINE CanonicalForm 166 operator - ( const CanonicalForm&, const CanonicalForm& ); 167 168 CF_INLINE CanonicalForm 169 operator * ( const CanonicalForm&, const CanonicalForm& ); 170 171 CF_NO_INLINE CanonicalForm 172 operator / ( const CanonicalForm&, const CanonicalForm& ); 173 174 CF_NO_INLINE CanonicalForm 175 operator % ( const CanonicalForm&, const CanonicalForm& ); 176 177 CF_NO_INLINE CanonicalForm 178 div ( const CanonicalForm&, const CanonicalForm& ); 179 180 CF_NO_INLINE CanonicalForm 181 mod ( const CanonicalForm&, const CanonicalForm& ); 182 183 /*ENDPUBLIC*/ 184 185 #ifdef CF_USE_INLINE 186 #include "cf_inline.cc" 187 #endif 188 189 /*BEGINPUBLIC*/ 153 190 154 191 //{{{ function declarations from canonicalform.cc
Note: See TracChangeset
for help on using the changeset viewer.