mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
added copy constructors
This commit is contained in:
@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user