OPAL (Object Oriented Parallel Accelerator Library)  2024.1
OPAL
OpalRingDefinition.h
Go to the documentation of this file.
1 //
2 // Class OpalRingDefinition
3 // The Opal Ring element.
4 //
5 // Copyright (c) 2012 - 2023, Chris Rogers, STFC Rutherford Appleton Laboratory, Didcot, UK
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_OpalRingDefinition_HH
19 #define OPAL_OpalRingDefinition_HH
20 
21 #include "Elements/OpalElement.h"
22 
23 class Ring;
24 
32 public:
34  enum {
49  SIZE // size of the enum
50  };
51 
54 
56  virtual ~OpalRingDefinition();
57 
59  virtual OpalRingDefinition* clone(const std::string& name);
60 
62  void update();
63 
65  virtual void print(std::ostream&) const;
66 
67 private:
68  // Not implemented.
70  void operator=(const OpalRingDefinition&);
71 
72  // Clone constructor.
73  OpalRingDefinition(const std::string& name, OpalRingDefinition* parent);
74 };
75 
76 #endif // OPAL_OpalRingDefinition_HH
virtual void print(std::ostream &) const
void operator=(const OpalRingDefinition &)
const std::string name
Ring describes a ring type geometry for tracking.
Definition: Ring.h:53
virtual OpalRingDefinition * clone(const std::string &name)