OPALX (Object Oriented Parallel Accelerator Library for Exascal) MINIorX
OPALX
OpalDrift.h
Go to the documentation of this file.
1//
2// Class OpalDrift
3// The class of OPAL drift spaces.
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_OpalDrift_HH
19#define OPAL_OpalDrift_HH
20
22
23class OpalDrift: public OpalElement {
24
25public:
26
27 enum {
28 GEOMETRY = COMMON, // geometry of boundary, one more enum member besides the common ones in OpalElement.
29 NSLICES, // The number of slices / steps per element for map tracking
31 };
32
34 OpalDrift();
35
36 virtual ~OpalDrift();
37
39 virtual OpalDrift* clone(const std::string& name);
40
42 // Return true.
43 virtual bool isDrift() const;
44
46 virtual void update();
47
48private:
49
50 // Not implemented.
52 void operator=(const OpalDrift&);
53
54 // Clone constructor.
55 OpalDrift(const std::string& name, OpalDrift* parent);
56
57};
58
59#endif // OPAL_OpalDrift_HH
virtual bool isDrift() const
Test for drift.
Definition OpalDrift.cpp:54
void operator=(const OpalDrift &)
OpalDrift(const OpalDrift &)
virtual void update()
Update the embedded CLASSIC drift.
Definition OpalDrift.cpp:59
OpalDrift()
Exemplar constructor.
Definition OpalDrift.cpp:22
virtual ~OpalDrift()
Definition OpalDrift.cpp:45
virtual OpalDrift * clone(const std::string &name)
Make clone.
Definition OpalDrift.cpp:49
OpalElement(int size, const char *name, const char *help)
Exemplar constructor.