source: git/factory/cf_eval.h @ 84250a6

spielwiese
Last change on this file since 84250a6 was ab4548f, checked in by Jens Schmidt <schmidt@…>, 27 years ago
#include <config.h> added git-svn-id: file:///usr/local/Singular/svn/trunk@133 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 1.3 KB
Line 
1// emacs edit mode for this file is -*- C++ -*-
2// $Id: cf_eval.h,v 1.2 1997-04-07 15:01:44 schmidt Exp $
3
4#ifndef INCL_EVALUATION_H
5#define INCL_EVALUATION_H
6
7/*
8$Log: not supported by cvs2svn $
9Revision 1.1  1997/03/26 16:32:24  schmidt
10stream-io wrapped by NOSTREAMIO
11
12Revision 1.0  1996/05/17 10:59:38  stobbe
13Initial revision
14
15*/
16
17#include <config.h>
18
19#ifndef NOSTREAMIO
20#include <iostream.h>
21#endif /* NOSTREAMIO */
22
23#include "canonicalform.h"
24
25/*BEGINPUBLIC*/
26
27class Evaluation
28{
29protected:
30    CFArray values;
31public:
32    Evaluation() : values() {}
33    Evaluation( int min, int max ) : values( min, max ) {}
34    Evaluation( const Evaluation & e ) : values( e.values ) {}
35    virtual ~Evaluation() {}
36    Evaluation& operator= ( const Evaluation & e );
37    int min() const { return values.min(); }
38    int max() const { return values.max(); }
39    CanonicalForm operator[] ( int i ) const { return values[i]; }
40    CanonicalForm operator[] ( const Variable & v ) const { return operator[](v.level()); }
41    CanonicalForm operator() ( const CanonicalForm& f ) const;
42    CanonicalForm operator() ( const CanonicalForm & f, int i, int j ) const;
43    virtual void nextpoint();
44#ifndef NOSTREAMIO
45    friend ostream& operator<< ( ostream& s, const Evaluation &e );
46#endif /* NOSTREAMIO */
47};
48
49/*ENDPUBLIC*/
50
51#endif /* INCL_EVALUATION_H */
Note: See TracBrowser for help on using the repository browser.