spielwiese
Last change
on this file since 85bcd6 was
6ce030f,
checked in by Oleksandr Motsak <motsak@…>, 11 years ago
|
removal of the $Id$ svn tag from everywhere
NOTE: the git SHA1 may be used instead (only on special places)
NOTE: the libraries Singular/LIB/*.lib still contain the marker due to our current use of svn
|
-
Property mode set to
100644
|
File size:
836 bytes
|
Line | |
---|
1 | //////////////////////////////////////////////////////////// |
---|
2 | // emacs edit mode for this file is -*- C++ -*- |
---|
3 | //////////////////////////////////////////////////////////// |
---|
4 | |
---|
5 | // #pragma implementation |
---|
6 | |
---|
7 | #include "class.h" |
---|
8 | |
---|
9 | template <class T> |
---|
10 | Substitution<T>& Substitution<T>::operator= ( const Substitution<T>& f ) |
---|
11 | { |
---|
12 | if ( this != &f ) { |
---|
13 | _factor = f._factor; |
---|
14 | _exp = f._exp; |
---|
15 | } |
---|
16 | return *this; |
---|
17 | } |
---|
18 | |
---|
19 | template <class T> |
---|
20 | Substitution<T>& Substitution<T>::operator= ( const T & f ) |
---|
21 | { |
---|
22 | _factor = f; |
---|
23 | _exp = 1; |
---|
24 | return *this; |
---|
25 | } |
---|
26 | |
---|
27 | template <class T> |
---|
28 | int operator== ( const Substitution<T> &f1, const Substitution<T> &f2 ) |
---|
29 | { |
---|
30 | return (f1.exp() == f2.exp()) && (f1.factor() == f2.factor()); |
---|
31 | } |
---|
32 | |
---|
33 | #ifndef NOSTREAMIO |
---|
34 | template <class T> |
---|
35 | void Substitution<T>::print ( OSTREAM& s ) const |
---|
36 | { |
---|
37 | s << "(" << factor() << ")^" << exp(); |
---|
38 | } |
---|
39 | #endif |
---|
40 | |
---|
Note: See
TracBrowser
for help on using the repository browser.