Commit c6feaace authored by Andrew Heather's avatar Andrew Heather
Browse files

added copy constructors

parent 7037f397
......@@ -87,6 +87,12 @@ public:
Particle<indexedParticle>(c, is)
{}
//- Construct as a copy
indexedParticle(const indexedParticle& p)
:
Particle<indexedParticle>(p)
{}
//- Construct and return a clone
autoPtr<indexedParticle> clone() const
{
......
......@@ -81,6 +81,12 @@ public:
Particle<passiveParticle>(c, is)
{}
//- Construct as copy
passiveParticle(const passiveParticle& p)
:
Particle<passiveParticle>(p)
{}
//- Construct and return a clone
autoPtr<passiveParticle> clone() const
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment