source: git/factory/cf_eval.h @ 1dc616

spielwiese
Last change on this file since 1dc616 was 1dc616, checked in by Hans Schönemann <hannes@…>, 18 years ago
*hannes: test for iostream and iostream.h git-svn-id: file:///usr/local/Singular/svn/trunk@9134 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 1.2 KB
Line 
1/* emacs edit mode for this file is -*- C++ -*- */
2/* $Id: cf_eval.h,v 1.4 2006-05-15 08:17:50 Singular Exp $ */
3
4#ifndef INCL_CF_EVAL_H
5#define INCL_CF_EVAL_H
6
7#include <config.h>
8
9#ifndef NOSTREAMIO
10#ifdef HAVE_IOSTREAM
11#include <iostream>
12#elif defined(HAVE_IOSTREAM_H)
13#include <iostream.h>
14#endif
15#endif /* NOSTREAMIO */
16
17#include "canonicalform.h"
18
19/*BEGINPUBLIC*/
20
21class Evaluation
22{
23protected:
24    CFArray values;
25public:
26    Evaluation() : values() {}
27    Evaluation( int min, int max ) : values( min, max ) {}
28    Evaluation( const Evaluation & e ) : values( e.values ) {}
29    virtual ~Evaluation() {}
30    Evaluation& operator= ( const Evaluation & e );
31    int min() const { return values.min(); }
32    int max() const { return values.max(); }
33    CanonicalForm operator[] ( int i ) const { return values[i]; }
34    CanonicalForm operator[] ( const Variable & v ) const { return operator[](v.level()); }
35    CanonicalForm operator() ( const CanonicalForm& f ) const;
36    CanonicalForm operator() ( const CanonicalForm & f, int i, int j ) const;
37    virtual void nextpoint();
38#ifndef NOSTREAMIO
39    friend ostream& operator<< ( ostream& s, const Evaluation &e );
40#endif /* NOSTREAMIO */
41};
42
43/*ENDPUBLIC*/
44
45#endif /* ! INCL_CF_EVAL_H */
Note: See TracBrowser for help on using the repository browser.