OPAL (Object Oriented Parallel Accelerator Library) 2024.2
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
22
23class Ring;
24
30
32public:
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
67private:
68 // Not implemented.
71
72 // Clone constructor.
73 OpalRingDefinition(const std::string& name, OpalRingDefinition* parent);
74};
75
76#endif // OPAL_OpalRingDefinition_HH
const std::string name
Ring describes a ring type geometry for tracking.
Definition Ring.h:53
OpalElement(int size, const char *name, const char *help)
Exemplar constructor.
virtual void print(std::ostream &) const
void operator=(const OpalRingDefinition &)
virtual OpalRingDefinition * clone(const std::string &name)
OpalRingDefinition(const OpalRingDefinition &)