source: git/factory/cf_eval.h @ b23c90

spielwiese
Last change on this file since b23c90 was 493c477, checked in by Jens Schmidt <schmidt@…>, 27 years ago
o header fixed git-svn-id: file:///usr/local/Singular/svn/trunk@404 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.3 1997-06-19 12:27:20 schmidt Exp $ */
3
4#ifndef INCL_CF_EVAL_H
5#define INCL_CF_EVAL_H
6
7#include <config.h>
8
9#ifndef NOSTREAMIO
10#include <iostream.h>
11#endif /* NOSTREAMIO */
12
13#include "canonicalform.h"
14
15/*BEGINPUBLIC*/
16
17class Evaluation
18{
19protected:
20    CFArray values;
21public:
22    Evaluation() : values() {}
23    Evaluation( int min, int max ) : values( min, max ) {}
24    Evaluation( const Evaluation & e ) : values( e.values ) {}
25    virtual ~Evaluation() {}
26    Evaluation& operator= ( const Evaluation & e );
27    int min() const { return values.min(); }
28    int max() const { return values.max(); }
29    CanonicalForm operator[] ( int i ) const { return values[i]; }
30    CanonicalForm operator[] ( const Variable & v ) const { return operator[](v.level()); }
31    CanonicalForm operator() ( const CanonicalForm& f ) const;
32    CanonicalForm operator() ( const CanonicalForm & f, int i, int j ) const;
33    virtual void nextpoint();
34#ifndef NOSTREAMIO
35    friend ostream& operator<< ( ostream& s, const Evaluation &e );
36#endif /* NOSTREAMIO */
37};
38
39/*ENDPUBLIC*/
40
41#endif /* ! INCL_CF_EVAL_H */
Note: See TracBrowser for help on using the repository browser.