source: git/factory/cf_eval.h @ 13be01

fieker-DuValspielwiese
Last change on this file since 13be01 was 181148, checked in by Hans Schönemann <hannes@…>, 18 years ago
*hannes: ISTREAM, OSTREAM, CERR git-svn-id: file:///usr/local/Singular/svn/trunk@9135 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.5 2006-05-15 09:03:04 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#define OSTREAM std::ostream
13#elif defined(HAVE_IOSTREAM_H)
14#include <iostream.h>
15#define OSTREAM ostream
16#endif
17#endif /* NOSTREAMIO */
18
19#include "canonicalform.h"
20
21/*BEGINPUBLIC*/
22
23class Evaluation
24{
25protected:
26    CFArray values;
27public:
28    Evaluation() : values() {}
29    Evaluation( int min, int max ) : values( min, max ) {}
30    Evaluation( const Evaluation & e ) : values( e.values ) {}
31    virtual ~Evaluation() {}
32    Evaluation& operator= ( const Evaluation & e );
33    int min() const { return values.min(); }
34    int max() const { return values.max(); }
35    CanonicalForm operator[] ( int i ) const { return values[i]; }
36    CanonicalForm operator[] ( const Variable & v ) const { return operator[](v.level()); }
37    CanonicalForm operator() ( const CanonicalForm& f ) const;
38    CanonicalForm operator() ( const CanonicalForm & f, int i, int j ) const;
39    virtual void nextpoint();
40#ifndef NOSTREAMIO
41    friend OSTREAM& operator<< ( OSTREAM& s, const Evaluation &e );
42#endif /* NOSTREAMIO */
43};
44
45/*ENDPUBLIC*/
46
47#endif /* ! INCL_CF_EVAL_H */
Note: See TracBrowser for help on using the repository browser.