mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
GIT: remove spurious method declaration in regIOobject
STYLE: adjust param/return for internal readStream method
This commit is contained in:
@ -164,19 +164,19 @@ public:
|
|||||||
// Access
|
// Access
|
||||||
|
|
||||||
//- Return the object registry
|
//- Return the object registry
|
||||||
const objectRegistry& thisDb() const
|
const objectRegistry& thisDb() const noexcept
|
||||||
{
|
{
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
//- Return time
|
//- Return time registry
|
||||||
const Time& time() const
|
const Time& time() const noexcept
|
||||||
{
|
{
|
||||||
return time_;
|
return time_;
|
||||||
}
|
}
|
||||||
|
|
||||||
//- Return the parent objectRegistry
|
//- Return the parent objectRegistry
|
||||||
const objectRegistry& parent() const
|
const objectRegistry& parent() const noexcept
|
||||||
{
|
{
|
||||||
return parent_;
|
return parent_;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -44,13 +44,13 @@ bool Foam::regIOobject::masterOnlyReading = false;
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
Foam::regIOobject::regIOobject(const IOobject& io, const bool isTime)
|
Foam::regIOobject::regIOobject(const IOobject& io, const bool isTimeObject)
|
||||||
:
|
:
|
||||||
IOobject(io),
|
IOobject(io),
|
||||||
registered_(false),
|
registered_(false),
|
||||||
ownedByRegistry_(false),
|
ownedByRegistry_(false),
|
||||||
watchIndices_(),
|
watchIndices_(),
|
||||||
eventNo_(isTime ? 0 : db().getEvent()), // No event for top-level Time
|
eventNo_(isTimeObject ? 0 : db().getEvent()), // No event for top-level Time
|
||||||
metaDataPtr_(nullptr),
|
metaDataPtr_(nullptr),
|
||||||
isPtr_(nullptr)
|
isPtr_(nullptr)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -84,10 +84,6 @@ protected:
|
|||||||
const word& typeName
|
const word& typeName
|
||||||
);
|
);
|
||||||
|
|
||||||
//- Construct and return an IFstream for the object.
|
|
||||||
// The results is NULL if the stream construction failed
|
|
||||||
Istream* objectStream();
|
|
||||||
|
|
||||||
//- To flag master-only reading of objects
|
//- To flag master-only reading of objects
|
||||||
static bool masterOnlyReading;
|
static bool masterOnlyReading;
|
||||||
|
|
||||||
@ -117,8 +113,8 @@ private:
|
|||||||
|
|
||||||
// Private Member Functions
|
// Private Member Functions
|
||||||
|
|
||||||
//- Return Istream
|
//- Construct object stream, read header if not already constructed
|
||||||
Istream& readStream(const bool valid = true);
|
void readStream(const bool valid);
|
||||||
|
|
||||||
//- No copy assignment
|
//- No copy assignment
|
||||||
void operator=(const regIOobject&) = delete;
|
void operator=(const regIOobject&) = delete;
|
||||||
@ -141,7 +137,7 @@ public:
|
|||||||
|
|
||||||
//- Construct from IOobject. The optional flag adds special handling
|
//- Construct from IOobject. The optional flag adds special handling
|
||||||
//- if the object is the top-level regIOobject (eg, Time).
|
//- if the object is the top-level regIOobject (eg, Time).
|
||||||
regIOobject(const IOobject& io, const bool isTime = false);
|
regIOobject(const IOobject& io, const bool isTimeObject = false);
|
||||||
|
|
||||||
//- Copy construct
|
//- Copy construct
|
||||||
regIOobject(const regIOobject& rio);
|
regIOobject(const regIOobject& rio);
|
||||||
|
|||||||
@ -86,17 +86,8 @@ bool Foam::regIOobject::readHeaderOk
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||||
|
|
||||||
Foam::Istream& Foam::regIOobject::readStream(const bool valid)
|
void Foam::regIOobject::readStream(const bool valid)
|
||||||
{
|
{
|
||||||
if (IFstream::debug)
|
|
||||||
{
|
|
||||||
Pout<< "regIOobject::readStream() : "
|
|
||||||
<< "reading object " << name()
|
|
||||||
<< " (global " << global() << ")"
|
|
||||||
<< " from file " << objectPath()
|
|
||||||
<< endl;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (readOpt() == NO_READ)
|
if (readOpt() == NO_READ)
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInFunction
|
||||||
@ -131,8 +122,6 @@ Foam::Istream& Foam::regIOobject::readStream(const bool valid)
|
|||||||
|
|
||||||
isPtr_ = fileHandler().readStream(*this, objPath, type(), valid);
|
isPtr_ = fileHandler().readStream(*this, objPath, type(), valid);
|
||||||
}
|
}
|
||||||
|
|
||||||
return *isPtr_;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user