[7bf145] | 1 | /*****************************************************************************\ |
---|
[806c18] | 2 | * Computer Algebra System SINGULAR |
---|
[7bf145] | 3 | \*****************************************************************************/ |
---|
| 4 | /** @file ExtensionInfo.cc |
---|
[806c18] | 5 | * |
---|
| 6 | * This file provides member functions for ExtensionInfo |
---|
[7bf145] | 7 | * |
---|
| 8 | * @author Martin Lee |
---|
| 9 | * |
---|
| 10 | **/ |
---|
| 11 | /*****************************************************************************/ |
---|
| 12 | |
---|
[e4fe2b] | 13 | #include "config.h" |
---|
[7bf145] | 14 | |
---|
| 15 | #include "ExtensionInfo.h" |
---|
| 16 | |
---|
| 17 | ExtensionInfo::ExtensionInfo (const bool extension) |
---|
| 18 | { |
---|
| 19 | m_alpha= Variable (1); |
---|
| 20 | m_beta= Variable (1); |
---|
| 21 | m_gamma= CanonicalForm (); |
---|
| 22 | m_delta= CanonicalForm (); |
---|
| 23 | m_GFDegree= 1; |
---|
| 24 | m_GFName= 'Z'; |
---|
| 25 | m_extension= extension; |
---|
| 26 | } |
---|
| 27 | |
---|
[806c18] | 28 | ExtensionInfo::ExtensionInfo (const Variable& alpha, const Variable& beta, |
---|
| 29 | const CanonicalForm& gamma, const CanonicalForm& |
---|
[7bf145] | 30 | delta, const int nGFDegree, const char cGFName, |
---|
| 31 | const bool extension) |
---|
| 32 | { |
---|
| 33 | m_alpha= alpha; |
---|
| 34 | m_beta= beta; |
---|
| 35 | m_gamma= gamma; |
---|
| 36 | m_delta= delta; |
---|
| 37 | m_GFDegree= nGFDegree; |
---|
| 38 | m_GFName= cGFName; |
---|
| 39 | m_extension= extension; |
---|
| 40 | } |
---|
| 41 | |
---|
[806c18] | 42 | ExtensionInfo::ExtensionInfo (const Variable& alpha, const Variable& beta, |
---|
| 43 | const CanonicalForm& gamma, const CanonicalForm& |
---|
[7bf145] | 44 | delta) |
---|
| 45 | { |
---|
| 46 | m_alpha= alpha; |
---|
| 47 | m_beta= beta; |
---|
| 48 | m_gamma= gamma; |
---|
| 49 | m_delta= delta; |
---|
| 50 | m_GFDegree= 0; |
---|
| 51 | m_GFName= 'Z'; |
---|
| 52 | m_extension= true; |
---|
| 53 | } |
---|
| 54 | |
---|
| 55 | ExtensionInfo::ExtensionInfo (const Variable& alpha, const bool extension) |
---|
| 56 | { |
---|
| 57 | m_alpha= alpha; |
---|
| 58 | m_beta= Variable (1); |
---|
| 59 | m_gamma= CanonicalForm (); |
---|
| 60 | m_delta= CanonicalForm (); |
---|
| 61 | m_GFDegree= 0; |
---|
| 62 | m_GFName= 'Z'; |
---|
| 63 | m_extension= extension; |
---|
| 64 | } |
---|
| 65 | |
---|
| 66 | ExtensionInfo::ExtensionInfo (const Variable& alpha) |
---|
| 67 | { |
---|
| 68 | m_alpha= alpha; |
---|
| 69 | m_beta= Variable (1); |
---|
| 70 | m_gamma= CanonicalForm (); |
---|
| 71 | m_delta= CanonicalForm (); |
---|
| 72 | m_GFDegree= 1; |
---|
| 73 | m_GFName= 'Z'; |
---|
| 74 | m_extension= true; |
---|
| 75 | } |
---|
| 76 | |
---|
| 77 | ExtensionInfo::ExtensionInfo (const int nGFDegree, const char cGFName, const |
---|
| 78 | bool extension) |
---|
| 79 | { |
---|
| 80 | m_alpha= Variable (1); |
---|
| 81 | m_beta= Variable (1); |
---|
| 82 | m_gamma= CanonicalForm (); |
---|
| 83 | m_delta= CanonicalForm (); |
---|
| 84 | m_GFDegree= nGFDegree; |
---|
| 85 | m_GFName= cGFName; |
---|
| 86 | m_extension= extension; |
---|
| 87 | } |
---|
| 88 | |
---|