OPAL (Object Oriented Parallel Accelerator Library)  2021.1.99
OPAL
MarkerRep.cpp
Go to the documentation of this file.
1 // ------------------------------------------------------------------------
2 // $RCSfile: MarkerRep.cpp,v $
3 // ------------------------------------------------------------------------
4 // $Revision: 1.1.1.1 $
5 // ------------------------------------------------------------------------
6 // Copyright: see Copyright.readme
7 // ------------------------------------------------------------------------
8 //
9 // Class: MarkerRep
10 // Defines a concrete marker element.
11 //
12 // ------------------------------------------------------------------------
13 // Class category: BeamlineCore
14 // ------------------------------------------------------------------------
15 //
16 // $Date: 2000/03/27 09:32:33 $
17 // $Author: fci $
18 //
19 // ------------------------------------------------------------------------
20 
21 #include "BeamlineCore/MarkerRep.h"
22 
23 
24 // Class MarkerRep
25 // ------------------------------------------------------------------------
26 
28  Marker()
29 {}
30 
32  Marker(right)
33 {}
34 
35 
36 MarkerRep::MarkerRep(const std::string &name):
37  Marker(name)
38 {}
39 
40 
42 {}
43 
44 
46  return new MarkerRep(*this);
47 }
48 
49 
51  return field;
52 }
53 
55  return field;
56 }
57 
58 
60  return geometry;
61 }
62 
64  return geometry;
65 }
66 
67 
68 double MarkerRep::getArcLength() const {
69  return 0.0;
70 }
71 
72 
74  return 0.0;
75 }
const std::string name
Interface for a marker.
Definition: Marker.h:32
Representation for a marker element.
Definition: MarkerRep.h:32
virtual ElementBase * clone() const
Return clone.
Definition: MarkerRep.cpp:45
virtual NullGeometry & getGeometry()
Get geometry.
Definition: MarkerRep.cpp:59
virtual ~MarkerRep()
Definition: MarkerRep.cpp:41
NullGeometry geometry
The marker geometry.
Definition: MarkerRep.h:79
virtual double getArcLength() const
Get arc length.
Definition: MarkerRep.cpp:68
NullField field
The zero magnetic field.
Definition: MarkerRep.h:76
virtual NullField & getField()
Get field.
Definition: MarkerRep.cpp:50
virtual double getElementLength() const
Get design length.
Definition: MarkerRep.cpp:73
Geometry representing an identity transform.
Definition: NullGeometry.h:32
A zero electromagnetic field.
Definition: NullField.h:30