mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: IOobject: construct as copy with different name
This commit is contained in:
@ -3,7 +3,7 @@
|
|||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation | Copyright (C) 2015 OpenCFD Ltd.
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
This file is part of OpenFOAM.
|
This file is part of OpenFOAM.
|
||||||
@ -234,6 +234,25 @@ Foam::IOobject::IOobject
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Foam::IOobject::IOobject
|
||||||
|
(
|
||||||
|
const IOobject& io,
|
||||||
|
const word& name
|
||||||
|
)
|
||||||
|
:
|
||||||
|
name_(name),
|
||||||
|
headerClassName_(io.headerClassName_),
|
||||||
|
note_(io.note_),
|
||||||
|
instance_(io.instance_),
|
||||||
|
local_(io.local_),
|
||||||
|
db_(io.db_),
|
||||||
|
rOpt_(io.rOpt_),
|
||||||
|
wOpt_(io.wOpt_),
|
||||||
|
registerObject_(io.registerObject_),
|
||||||
|
objState_(io.objState_)
|
||||||
|
{}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
Foam::IOobject::~IOobject()
|
Foam::IOobject::~IOobject()
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation | Copyright (C) 2015 OpenCFD Ltd.
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
This file is part of OpenFOAM.
|
This file is part of OpenFOAM.
|
||||||
@ -236,6 +236,13 @@ public:
|
|||||||
bool registerObject=true
|
bool registerObject=true
|
||||||
);
|
);
|
||||||
|
|
||||||
|
//- Construct as copy resetting name
|
||||||
|
IOobject
|
||||||
|
(
|
||||||
|
const IOobject& io,
|
||||||
|
const word& name
|
||||||
|
);
|
||||||
|
|
||||||
//- Clone
|
//- Clone
|
||||||
Foam::autoPtr<IOobject> clone() const
|
Foam::autoPtr<IOobject> clone() const
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user