OPAL (Object Oriented Parallel Accelerator Library)
2021.1.99
OPAL
src
src
Elements
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
21
#include "
Elements/OpalElement.h
"
22
23
24
class
OpalSource
:
public
OpalElement
{
25
26
public
:
27
29
enum
{
30
DISTRIBUTION
=
COMMON
,
// The longitudinal magnetic field.
31
TRANSPARENT
,
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
46
private
:
47
48
// Not implemented.
49
OpalSource
(
const
OpalSource
&);
50
void
operator=
(
const
OpalSource
&);
51
52
// Clone constructor.
53
OpalSource
(
const
std::string&
name
,
OpalSource
* parent);
54
};
55
56
#endif
// OPAL_OPALSOURCE_HH
OpalElement.h
name
const std::string name
Definition:
MaxNormRadialPeak.cpp:32
OpalElement
Definition:
OpalElement.h:28
OpalElement::COMMON
@ COMMON
Definition:
OpalElement.h:55
OpalSource
Definition:
OpalSource.h:24
OpalSource::DISTRIBUTION
@ DISTRIBUTION
Definition:
OpalSource.h:30
OpalSource::TRANSPARENT
@ TRANSPARENT
Definition:
OpalSource.h:31
OpalSource::SIZE
@ SIZE
Definition:
OpalSource.h:32
OpalSource::clone
virtual OpalSource * clone(const std::string &name)
Make clone.
Definition:
OpalSource.cpp:51
OpalSource::OpalSource
OpalSource(const OpalSource &)
OpalSource::operator=
void operator=(const OpalSource &)
OpalSource::~OpalSource
virtual ~OpalSource()
Definition:
OpalSource.cpp:47
OpalSource::OpalSource
OpalSource()
Exemplar constructor.
Definition:
OpalSource.cpp:26
OpalSource::update
virtual void update()
Update the embedded CLASSIC solenoid.
Definition:
OpalSource.cpp:56
Generated on Wed Aug 25 2021 16:41:04 for OPAL (Object Oriented Parallel Accelerator Library) by
1.9.1