Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: f92a39ece0
Fetching contributors…

Cannot retrieve contributors at this time

48 lines (39 sloc) 1.293 kb
/* emacs edit mode for this file is -*- C++ -*- */
#ifndef INCL_CF_EVAL_H
#define INCL_CF_EVAL_H
// #include "config.h"
#ifndef NOSTREAMIO
#ifdef HAVE_IOSTREAM
#include <iostream>
#define OSTREAM std::ostream
#elif defined(HAVE_IOSTREAM_H)
#include <iostream.h>
#define OSTREAM ostream
#endif
#endif /* NOSTREAMIO */
#include "canonicalform.h"
/*BEGINPUBLIC*/
class Evaluation
{
protected:
CFArray values;
public:
Evaluation() : values() {}
Evaluation( int min0, int max0 ) : values( min0, max0 ) {}
Evaluation( const Evaluation & e ) : values( e.values ) {}
virtual ~Evaluation() {}
Evaluation& operator= ( const Evaluation & e );
int min() const { return values.min(); }
int max() const { return values.max(); }
CanonicalForm operator[] ( int i ) const { return values[i]; }
CanonicalForm operator[] ( const Variable & v ) const { return operator[](v.level()); }
CanonicalForm operator() ( const CanonicalForm& f ) const;
CanonicalForm operator() ( const CanonicalForm & f, int i, int j ) const;
void setValue (int i, const CanonicalForm& f);
virtual void nextpoint();
#ifndef NOSTREAMIO
friend OSTREAM& operator<< ( OSTREAM& s, const Evaluation &e );
#endif /* NOSTREAMIO */
};
/*ENDPUBLIC*/
#endif /* ! INCL_CF_EVAL_H */
Jump to Line
Something went wrong with that request. Please try again.