37 #ifndef CLASSIC_SingleMultipole_HH
38 #define CLASSIC_SingleMultipole_HH
137 field(multipole.
field)
154 template <
int order>
inline
156 return field.getComponent();
159 template <
int order>
inline
161 field.setComponent(value);
179 template <
int order>
inline
184 template <
int order>
inline
190 template <
int order>
inline
196 template <
int order>
inline
198 for(
const Entry *entry = entries; entry->
name != 0; ++entry) {
199 if(aKey == entry->name) {
201 (*
this, entry->get, entry->set);
208 #endif // __SingleMultipole_HH
virtual StraightGeometry & getGeometry()
Get geometry.
A geometry representing a straight line.
virtual ~SingleMultipole()
virtual Channel * getChannel(const std::string &aKey, bool=false)
Construct a read/write channel.
virtual void setComponent(double Bn)
Set component.
Interface for general multipole.
static const std::string type
virtual Channel * getChannel(const std::string &aKey, bool create=false)
Construct a read/write channel.
c Accompany it with the information you received as to the offer to distribute corresponding source complete source code means all the source code for all modules it plus any associated interface definition plus the scripts used to control compilation and installation of the executable as a special the source code distributed need not include anything that is normally and so on of the operating system on which the executable unless that component itself accompanies the executable If distribution of executable or object code is made by offering access to copy from a designated then offering equivalent access to copy the source code from the same place counts as distribution of the source even though third parties are not compelled to copy the source along with the object code You may not or distribute the Program except as expressly provided under this License Any attempt otherwise to sublicense or distribute the Program is void
StraightGeometry geometry
Multipole geometry.
BMultipoleField tempField
void(SingleMultipole< order >::* set)(double)
Abstract interface for read/write access to variable.
Access to a [b]double[/b] data member.
const SingleMultipole< 4 >::Entry entries[]
void operator=(const SingleMultipole &)
BSingleMultipoleField< order > field
The single multipole component.
virtual ElementBase * clone() const
Return clone.
virtual double getComponent() const
Get component.
virtual BMultipoleField & getField()
Get field.
Representation for a single magnetic multipole field.
The magnetic field of a multipole.