OPALX (Object Oriented Parallel Accelerator Library for Exascal) master (dc2a29eed580)
OPALX
Loading...
Searching...
No Matches
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 {
24public:
25 enum {
26 GEOMETRY = COMMON, // geometry of boundary, one more enum member besides the common ones in
27 // OpalElement.
28 NSLICES, // The number of slices / steps per element for map tracking
29 SIZE
30 };
31
33 OpalDrift();
34
35 virtual ~OpalDrift();
36
38 virtual OpalDrift* clone(const std::string& name);
39
41 // Return true.
42 virtual bool isDrift() const;
43
45 virtual void update();
46
47private:
48 // Not implemented.
50 void operator=(const OpalDrift&);
51
52 // Clone constructor.
53 OpalDrift(const std::string& name, OpalDrift* parent);
54};
55
56#endif // OPAL_OpalDrift_HH
virtual bool isDrift() const
Test for drift.
Definition OpalDrift.cpp:42
void operator=(const OpalDrift &)
OpalDrift(const OpalDrift &)
virtual void update()
Update the embedded OPALX drift.
Definition OpalDrift.cpp:44
OpalDrift()
Exemplar constructor.
Definition OpalDrift.cpp:22
virtual ~OpalDrift()
Definition OpalDrift.cpp:38
virtual OpalDrift * clone(const std::string &name)
Make clone.
Definition OpalDrift.cpp:40