source: git/factory/cf_eval.h @ 362fc67

spielwiese
Last change on this file since 362fc67 was 362fc67, checked in by Martin Lee <martinlee84@…>, 12 years ago
chg: remove $Id$
  • Property mode set to 100644
File size: 1.3 KB
RevLine 
[493c477]1/* emacs edit mode for this file is -*- C++ -*- */
[2dd068]2
[493c477]3#ifndef INCL_CF_EVAL_H
4#define INCL_CF_EVAL_H
[2dd068]5
[e4fe2b]6// #include "config.h"
[ab4548f]7
[c5323e]8#ifndef NOSTREAMIO
[1dc616]9#ifdef HAVE_IOSTREAM
10#include <iostream>
[181148]11#define OSTREAM std::ostream
[1dc616]12#elif defined(HAVE_IOSTREAM_H)
[2dd068]13#include <iostream.h>
[181148]14#define OSTREAM ostream
[1dc616]15#endif
[c5323e]16#endif /* NOSTREAMIO */
17
[2dd068]18#include "canonicalform.h"
19
20/*BEGINPUBLIC*/
21
22class Evaluation
23{
24protected:
25    CFArray values;
26public:
27    Evaluation() : values() {}
[3fe8ed4]28    Evaluation( int min0, int max0 ) : values( min0, max0 ) {}
[2dd068]29    Evaluation( const Evaluation & e ) : values( e.values ) {}
30    virtual ~Evaluation() {}
31    Evaluation& operator= ( const Evaluation & e );
32    int min() const { return values.min(); }
33    int max() const { return values.max(); }
34    CanonicalForm operator[] ( int i ) const { return values[i]; }
35    CanonicalForm operator[] ( const Variable & v ) const { return operator[](v.level()); }
36    CanonicalForm operator() ( const CanonicalForm& f ) const;
37    CanonicalForm operator() ( const CanonicalForm & f, int i, int j ) const;
[38ac8c]38    void setValue (int i, const CanonicalForm& f);
[2dd068]39    virtual void nextpoint();
[c5323e]40#ifndef NOSTREAMIO
[181148]41    friend OSTREAM& operator<< ( OSTREAM& s, const Evaluation &e );
[c5323e]42#endif /* NOSTREAMIO */
[2dd068]43};
44
45/*ENDPUBLIC*/
46
[493c477]47#endif /* ! INCL_CF_EVAL_H */
Note: See TracBrowser for help on using the repository browser.