OPAL (Object Oriented Parallel Accelerator Library)
2024.1
OPAL
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
ippl
src
Particle
GenParticle.h
Go to the documentation of this file.
1
// -*- C++ -*-
2
/***************************************************************************
3
*
4
* The IPPL Framework
5
*
6
*
7
* Visit http://people.web.psi.ch/adelmann/ for more details
8
*
9
***************************************************************************/
10
11
#ifndef GEN_PARTICLE_H
12
#define GEN_PARTICLE_H
13
14
/*
15
* GenParticle - Specialized Particle container with just one more attribute.
16
*
17
* GenParticle is a special version of a IpplParticleBase class, specialized
18
* to have one more attribute of type T2 in addition to the normal attributes
19
* defined in IpplParticleBase.
20
*/
21
22
// include files
23
#include "
Particle/IpplParticleBase.h
"
24
25
26
// GenParticle class definition
27
template
<
class
PLayout,
class
T>
28
class
GenParticle
:
public
IpplParticleBase
<PLayout> {
29
30
public
:
31
// the extra attribute for this class
32
ParticleAttrib<T>
data
;
33
34
// constructor: user-provided Layout object must be supplied
35
GenParticle
(
PLayout
*
L
) :
IpplParticleBase
<
PLayout
>(L) {
36
addAttribute
(
data
);
37
}
38
39
private
:
40
// disable default constructor
41
GenParticle
();
42
43
};
44
45
#endif // GEN_PARTICLE_H
46
47
/***************************************************************************
48
* $RCSfile: GenParticle.h,v $ $Author: adelmann $
49
* $Revision: 1.1.1.1 $ $Date: 2003/01/23 07:40:28 $
50
* IPPL_VERSION_ID: $Id: GenParticle.h,v 1.1.1.1 2003/01/23 07:40:28 adelmann Exp $
51
***************************************************************************/
IpplParticleBase
Definition:
MakeDataSource.h:26
GenParticle::GenParticle
GenParticle()
GenParticle
Definition:
GenParticle.h:28
IpplParticleBase.h
IpplParticleBase::addAttribute
void addAttribute(ParticleAttribBase &pa)
Definition:
IpplParticleBase.h:231
L
clearpage the user may choose between constant or variable radius This model includes fringe fields L
Definition:
multipole_t.tex:7
GenParticle::GenParticle
GenParticle(PLayout *L)
Definition:
GenParticle.h:35
GenParticle::data
ParticleAttrib< T > data
Definition:
GenParticle.h:32
ParticleAttrib
Definition:
MakeDataSource.h:25
ParticleLayout
Definition:
ParticleLayout.h:54
Generated on Tue Jul 2 2024 15:05:14 for OPAL (Object Oriented Parallel Accelerator Library) by
1.8.5