Toast++  1.0.2 (r.539)
Forward and inverse modelling in optical tomography
ptsource.h
1 // ==========================================================================
2 // Module libfe
3 // File ptsource.h
4 // Declaration of classes PointSource
5 //
6 // Inheritance:
7 // ------------
8 // RVector ----> Point ----> PointSource
9 // ==========================================================================
10 
11 #ifndef __PTSOURCE_H
12 #define __PTSOURCE_H
13 
14 // ==========================================================================
15 // class PointSource
16 
17 class PointSource: public Point {
18 public:
19  PointSource ();
20  PointSource (int dim): Point (dim) { strength = 0.0; }
21  PointSource (const PointSource &ps);
22 
23  // friends
24  friend std::ostream &operator<< (std::ostream &os, const PointSource &ps);
25  friend std::istream &operator>> (std::istream &is, PointSource &ps);
26 
27  double strength;
28 };
29 
30 // ==========================================================================
31 // friend prototypes
32 
33 std::ostream &operator<< (std::ostream &os, const PointSource &ps);
34 std::istream &operator>> (std::istream &is, PointSource &ps);
35 
36 #endif // !__PTSOURCE_H
Definition: point.h:18
Definition: ptsource.h:17