OPAL (Object Oriented Parallel Accelerator Library)  2021.1.99
OPAL
NullField.cpp
Go to the documentation of this file.
1 // ------------------------------------------------------------------------
2 // $RCSfile: NullField.cpp,v $
3 // ------------------------------------------------------------------------
4 // $Revision: 1.1.1.1 $
5 // ------------------------------------------------------------------------
6 // Copyright: see Copyright.readme
7 // ------------------------------------------------------------------------
8 //
9 // Class: NullField
10 // A class for zero electromagnetic fields.
11 // ------------------------------------------------------------------------
12 // Class category: Fields
13 // ------------------------------------------------------------------------
14 //
15 // $Date: 2000/03/27 09:32:36 $
16 // $Author: fci $
17 //
18 // ------------------------------------------------------------------------
19 
20 #include "Fields/NullField.h"
21 
22 
23 // Class NullField
24 // ------------------------------------------------------------------------
25 
27 {}
28 
29 
31  EMField(rhs)
32 {}
33 
34 
36 {}
37 
38 
40 { return *this; }
41 
42 
43 void NullField::scale(double)
44 {}
Abstract base class for electromagnetic fields.
Definition: EMField.h:188
A zero electromagnetic field.
Definition: NullField.h:30
virtual void scale(double scalar)
Scale the field.
Definition: NullField.cpp:43
const NullField & operator=(const NullField &right)
Definition: NullField.cpp:39
virtual ~NullField()
Definition: NullField.cpp:35