added copy constructors

This commit is contained in:
andy
2009-05-22 16:23:42 +01:00
parent 7037f397dd
commit c6feaace79
2 changed files with 12 additions and 0 deletions

View File

@ -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
{

View File

@ -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
{