OPAL (Object Oriented Parallel Accelerator Library)
2021.1.99
OPAL
src
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.h
ParticleAttrib
Definition:
ParticleAttrib.h:100
IpplParticleBase
Definition:
IpplParticleBase.h:126
IpplParticleBase::addAttribute
void addAttribute(ParticleAttribBase &pa)
Definition:
IpplParticleBase.h:231
GenParticle
Definition:
GenParticle.h:28
GenParticle::GenParticle
GenParticle(PLayout *L)
Definition:
GenParticle.h:35
GenParticle::GenParticle
GenParticle()
GenParticle::data
ParticleAttrib< T > data
Definition:
GenParticle.h:32
ParticleLayout
Definition:
ParticleLayout.h:54
Generated on Wed Aug 25 2021 16:40:59 for OPAL (Object Oriented Parallel Accelerator Library) by
1.9.1