OPALX (Object Oriented Parallel Accelerator Library for Exascal) master (dc2a29eed580)
OPALX
Loading...
Searching...
No Matches
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
23class OpalSource : public OpalElement {
24public:
26 enum {
27 DISTRIBUTION = COMMON, // The longitudinal magnetic field.
29 SIZE
30 };
31
34
35 virtual ~OpalSource();
36
38 virtual OpalSource* clone(const std::string& name);
39
41 virtual void update();
42
43private:
44 // Not implemented.
46 void operator=(const OpalSource&);
47
48 // Clone constructor.
49 OpalSource(const std::string& name, OpalSource* parent);
50};
51
52#endif // OPAL_OPALSOURCE_HH
OpalSource(const OpalSource &)
virtual OpalSource * clone(const std::string &name)
Make clone.
void operator=(const OpalSource &)
virtual void update()
Update the embedded OPALX solenoid.
OpalSource(const std::string &name, OpalSource *parent)
OpalSource()
Exemplar constructor.
virtual ~OpalSource()