OPAL (Object Oriented Parallel Accelerator Library) 2022.1
OPAL
OpalSource.h
Go to the documentation of this file.
1//
2// Class OpalSource
3// The SOURCE element.
4//
5// Copyright (c) 200x - 2020, Paul Scherrer Institut, Villigen PSI, Switzerland
6// All rights reserved
7//
8// This file is part of OPAL.
9//
10// OPAL is free software: you can redistribute it and/or modify
11// it under the terms of the GNU General Public License as published by
12// the Free Software Foundation, either version 3 of the License, or
13// (at your option) any later version.
14//
15// You should have received a copy of the GNU General Public License
16// along with OPAL. If not, see <https://www.gnu.org/licenses/>.
17//
18#ifndef OPAL_OPALSOURCE_HH
19#define OPAL_OPALSOURCE_HH
20
22
23
24class OpalSource: public OpalElement {
25
26public:
27
29 enum {
30 DISTRIBUTION = COMMON, // The longitudinal magnetic field.
32 SIZE
33 };
34
36 OpalSource();
37
38 virtual ~OpalSource();
39
41 virtual OpalSource* clone(const std::string& name);
42
44 virtual void update();
45
46private:
47
48 // Not implemented.
50 void operator=(const OpalSource&);
51
52 // Clone constructor.
53 OpalSource(const std::string& name, OpalSource* parent);
54};
55
56#endif // OPAL_OPALSOURCE_HH
const std::string name
@ DISTRIBUTION
Definition: OpalSource.h:30
virtual OpalSource * clone(const std::string &name)
Make clone.
Definition: OpalSource.cpp:51
OpalSource(const OpalSource &)
void operator=(const OpalSource &)
virtual ~OpalSource()
Definition: OpalSource.cpp:47
OpalSource()
Exemplar constructor.
Definition: OpalSource.cpp:26
virtual void update()
Update the embedded CLASSIC solenoid.
Definition: OpalSource.cpp:56