OPAL (Object Oriented Parallel Accelerator Library) 2022.1
OPAL
NullField.h
Go to the documentation of this file.
1#ifndef CLASSIC_NullField_HH
2#define CLASSIC_NullField_HH
3
4// ------------------------------------------------------------------------
5// $RCSfile: NullField.h,v $
6// ------------------------------------------------------------------------
7// $Revision: 1.1.1.1 $
8// ------------------------------------------------------------------------
9// Copyright: see Copyright.readme
10// ------------------------------------------------------------------------
11//
12// Class: NullField
13//
14// ------------------------------------------------------------------------
15// Class category: Fields
16// ------------------------------------------------------------------------
17//
18// $Date: 2000/03/27 09:32:36 $
19// $Author: fci $
20//
21// ------------------------------------------------------------------------
22
23#include "Fields/EMField.h"
24
25
26// Class NullField
27// ------------------------------------------------------------------------
29
30class NullField: public EMField {
31
32public:
33
34 NullField();
35 NullField(const NullField &right);
36 virtual ~NullField();
37 const NullField &operator=(const NullField &right);
38
40 // Multiply the field by [b]scalar[/b].
41 // Obviously this method does nothing.
42 virtual void scale(double scalar);
43};
44
45#endif // CLASSIC_NullField_HH
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