spielwiese
Last change
on this file since 2dd068 was
2dd068,
checked in by Rüdiger Stobbe <stobbe@…>, 28 years ago
|
Initial revision
git-svn-id: file:///usr/local/Singular/svn/trunk@6 2c84dea3-7e68-4137-9b89-c4e89433aadc
|
-
Property mode set to
100644
|
File size:
1.1 KB
|
Line | |
---|
1 | // emacs edit mode for this file is -*- C++ -*- |
---|
2 | // $Id: cf_eval.h,v 1.0 1996-05-17 10:59:38 stobbe Exp $ |
---|
3 | |
---|
4 | #ifndef INCL_EVALUATION_H |
---|
5 | #define INCL_EVALUATION_H |
---|
6 | |
---|
7 | /* |
---|
8 | $Log: not supported by cvs2svn $ |
---|
9 | */ |
---|
10 | |
---|
11 | #include <iostream.h> |
---|
12 | #include "canonicalform.h" |
---|
13 | |
---|
14 | /*BEGINPUBLIC*/ |
---|
15 | |
---|
16 | class Evaluation |
---|
17 | { |
---|
18 | protected: |
---|
19 | CFArray values; |
---|
20 | public: |
---|
21 | Evaluation() : values() {} |
---|
22 | Evaluation( int min, int max ) : values( min, max ) {} |
---|
23 | Evaluation( const Evaluation & e ) : values( e.values ) {} |
---|
24 | virtual ~Evaluation() {} |
---|
25 | Evaluation& operator= ( const Evaluation & e ); |
---|
26 | int min() const { return values.min(); } |
---|
27 | int max() const { return values.max(); } |
---|
28 | CanonicalForm operator[] ( int i ) const { return values[i]; } |
---|
29 | CanonicalForm operator[] ( const Variable & v ) const { return operator[](v.level()); } |
---|
30 | CanonicalForm operator() ( const CanonicalForm& f ) const; |
---|
31 | CanonicalForm operator() ( const CanonicalForm & f, int i, int j ) const; |
---|
32 | virtual void nextpoint(); |
---|
33 | friend ostream& operator<< ( ostream& s, const Evaluation &e ); |
---|
34 | }; |
---|
35 | |
---|
36 | /*ENDPUBLIC*/ |
---|
37 | |
---|
38 | #endif /* INCL_EVALUATION_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.