#ifndef FUNCTION3D_H #define FUNCTION3D_H #include "blitz/array.h" #include // ostream // Abstract base class for a 3d function // - can provide an element of the return vector (direction: x, y, z) // - can prodvie whole vector class Function3d { public: virtual ~Function3d() {}; //virtual double getValue(double x, double y, double z, int cart_axis) const = 0; virtual blitz::TinyVector getValue(double z, double r, double phi) const = 0; //double getValue(const blitz::TinyVector& x, int cart_axis) const; blitz::TinyVector getValue(const blitz::TinyVector& x) const; //friend std::ostream & operator << (std::ostream &out, const Function3d& function); //virtual void print(std::ostream &out) const; virtual void print() const; }; #endif /* FUNCTION3D_H */