mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Improve ITstream constructors.
- Use (const UList<token>&) instead of (const List<token>&) - Add (const Xfer< List<token> >&) constructor.
This commit is contained in:
@ -70,7 +70,26 @@ public:
|
||||
ITstream
|
||||
(
|
||||
const string& name,
|
||||
const tokenList& tokens,
|
||||
const UList<token>& tokens,
|
||||
streamFormat format=ASCII,
|
||||
versionNumber version=currentVersion
|
||||
)
|
||||
:
|
||||
Istream(format, version),
|
||||
tokenList(tokens),
|
||||
name_(name),
|
||||
tokenIndex_(0)
|
||||
{
|
||||
setOpened();
|
||||
setGood();
|
||||
}
|
||||
|
||||
|
||||
//- Construct from components, transferring the tokens
|
||||
ITstream
|
||||
(
|
||||
const string& name,
|
||||
const Xfer< List<token> >& tokens,
|
||||
streamFormat format=ASCII,
|
||||
versionNumber version=currentVersion
|
||||
)
|
||||
@ -98,8 +117,7 @@ public:
|
||||
}
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
//- Destructor
|
||||
virtual ~ITstream()
|
||||
{}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user