OpenAtom  Version1.5a
RunDescriptor.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * $Source$
3  * $Author$
4  * $Date$
5  * $Revision$
6  *****************************************************************************/
7 
8 /** \file RunDescriptor.h
9  *
10  */
11 
12 #ifndef _RunDescriptor_
13 #define _RunDescriptor_
14 
15 ///////////////////////////////////////////////////////////////////////////////////==
16 ///////////////////////////////////////////////////////////////////////////////////cc
17 ///////////////////////////////////////////////////////////////////////////////////==
18 /// Index logic for lines of constant x,y in gspace.
19 /// Each line is broken up into two parts (0...-X) and (-X...-1)
20 ///////////////////////////////////////////////////////////////////////////////////==
21 
22 struct RunDescriptor {
23  int x, y, z; // g-space starting coordinate of the line in g-space
24  int position; // starting position of run in the serialized array
25  int length; // length of the run (# of pts in this line
26  int inc;
27  int nz;
28  int mychar;
29  RunDescriptor(int px, int py, int pz, int pposition, int plength, int pinc,int pnz,
30  int inchar)
31  : x(px), y (py), z (pz), position(pposition), length(plength),inc( pinc),
32  nz(pnz), mychar(inchar){}
33  RunDescriptor(int px, int py, int pz, int pposition, int plength, int pinc, int pnz)
34  : x(px), y (py), z (pz), position(pposition), length(plength),inc(pinc), nz(pnz)
35  {mychar=0;}
36  RunDescriptor(){}
37  RunDescriptor(int i){}
38  RunDescriptor(const RunDescriptor &r) {x = r.x; y = r.y; z = r.z;
39  position = r.position; length = r.length; inc = r.inc; nz=r.nz;
40  mychar=r.mychar;}
41  void operator=(const RunDescriptor &r) {x = r.x; y = r.y; z = r.z;
42  position = r.position; length = r.length; inc = r.inc; nz=r.nz;
43  mychar=r.mychar;
44  }
45  void pup(PUP::er &p) {
46  p|x;
47  p|y;
48  p|z;
49  p|position;
50  p|length;
51  p|inc;
52  p|nz;
53  p|mychar;
54  }
55 };
56 
57 ///////////////////////////////////////////////////////////////////////////////////==
58 
59 #endif
== Index logic for lines of constant x,y in gspace.
Definition: RunDescriptor.h:22