source: trunk/examples/novice/gemc/src/identifier.h@ 1350

Last change on this file since 1350 was 807, checked in by garnier, 17 years ago

update

File size: 1.0 KB
Line 
1
2
3
4
5
6#ifndef identifier_H
7#define identifier_H 1
8
9// %%%%%%%%%%%
10// C++ headers
11// %%%%%%%%%%%
12#include <string>
13#include <vector>
14using namespace std;
15
16
17class identifier
18{
19 public:
20 identifier(){};
21 ~identifier(){};
22 string name;
23 string rule;
24 int id;
25 double time;
26 double TimeWindow;
27
28 public:
29 friend ostream &operator<<(ostream &stream, vector<identifier>);
30 bool operator== (const identifier& I) const;
31 bool operator< (const identifier& I) const;
32 bool operator> (const identifier& I) const;
33 bool operator<= (const identifier& I) const {return !(*this > I);}
34 bool operator>= (const identifier& I) const {return !(*this < I);}
35 bool operator!= (const identifier& I) const {return !(*this == I);}
36};
37
38vector<int> set_IDshifts(vector<int>);
39vector<identifier> SetId(vector<identifier>, G4VTouchable*, double, double);
40
41
42#endif
Note: See TracBrowser for help on using the repository browser.