26 lines
859 B
C++
Executable File
26 lines
859 B
C++
Executable File
#ifndef FUNCTION3D_H
|
|
#define FUNCTION3D_H
|
|
|
|
#include "blitz/array.h"
|
|
#include <iostream> // 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<double ,3> getValue(double z, double r, double phi) const = 0;
|
|
|
|
//double getValue(const blitz::TinyVector<double, 3>& x, int cart_axis) const;
|
|
blitz::TinyVector<double, 3> getValue(const blitz::TinyVector<double, 3>& 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 */
|