本文整理汇总了C++中Istream::check方法的典型用法代码示例。如果您正苦于以下问题:C++ Istream::check方法的具体用法?C++ Istream::check怎么用?C++ Istream::check使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Istream
的用法示例。
在下文中一共展示了Istream::check方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: thermoParcelInjectionData
Foam::reactingParcelInjectionData::reactingParcelInjectionData(Istream& is)
:
thermoParcelInjectionData(is)
{
is.check("reading Y's");
is >> Y_;
is.check("reactingParcelInjectionData(Istream& is)");
}
示例2: kinematicParcelInjectionData
Foam::thermoParcelInjectionData::thermoParcelInjectionData(Istream& is)
:
kinematicParcelInjectionData(is)
{
is.check("reading T");
is >> T_;
is.check("reading cp");
is >> cp_;
is.check("thermoParcelInjectionData(Istream& is)");
}
示例3: ParcelType
Foam::WetParcel<ParcelType>::WetParcel
(
const polyMesh& mesh,
Istream& is,
bool readFields
)
:
ParcelType(mesh, is, readFields),
Vliq_(0.0)
{
if (readFields)
{
if (is.format() == IOstream::ASCII)
{
Vliq_ = readScalar(is);
}
else
{
is.read
(
reinterpret_cast<char*>(&Vliq_),
sizeof(Vliq_)
);
}
}
// Check state of Istream
is.check
(
"WetParcel<ParcelType>::WetParcel"
"(const polyMesh&, Istream&, bool)"
);
}
示例4: phaseInfo
Foam::phaseProperties::phaseProperties(Istream& is)
:
phase_(UNKNOWN),
stateLabel_("(unknown)"),
names_(0),
Y_(0),
globalIds_(0),
globalCarrierIds_(0)
{
is.check("Foam::phaseProperties::phaseProperties(Istream& is)");
dictionaryEntry phaseInfo(dictionary::null, is);
phase_ = phaseTypeNames_[phaseInfo.keyword()];
stateLabel_ = phaseToStateLabel(phase_);
if (phaseInfo.size() > 0)
{
label nComponents = phaseInfo.size();
names_.setSize(nComponents, "unknownSpecie");
Y_.setSize(nComponents, 0.0);
globalIds_.setSize(nComponents, -1);
globalCarrierIds_.setSize(nComponents, -1);
label cmptI = 0;
forAllConstIter(IDLList<entry>, phaseInfo, iter)
{
names_[cmptI] = iter().keyword();
Y_[cmptI] = readScalar(phaseInfo.lookup(names_[cmptI]));
cmptI++;
}
示例5: specie
Foam::incompressible::incompressible(Istream& is)
:
specie(is),
rho_(readScalar(is))
{
is.check("incompressible::incompressible(Istream& is)");
}
示例6: findIgnitionCells
Foam::ignitionSite::ignitionSite
(
Istream& is,
const engineTime& edb,
const fvMesh& mesh
)
:
db_(edb),
mesh_(mesh),
ignitionSiteDict_(is),
location_(ignitionSiteDict_.lookup("location")),
diameter_(readScalar(ignitionSiteDict_.lookup("diameter"))),
time_
(
db_.userTimeToTime
(
edb.degToTime(readScalar(ignitionSiteDict_.lookup("start")))
)
),
duration_
(
db_.userTimeToTime
(
edb.degToTime(readScalar(ignitionSiteDict_.lookup("duration")))
)
),
strength_(readScalar(ignitionSiteDict_.lookup("strength"))),
timeIndex_(db_.timeIndex())
{
// Check state of Istream
is.check("ignitionSite::ignitionSite(Istream&)");
findIgnitionCells(mesh_);
}
示例7: reactingParcelInjectionData
Foam::reactingMultiphaseParcelInjectionData::
reactingMultiphaseParcelInjectionData(Istream& is)
:
reactingParcelInjectionData(is)
{
is.check("reading YGas's");
is >> YGas_;
is.check("reading YLiquid's");
is >> YLiquid_;
is.check("reading YSolid's");
is >> YSolid_;
is.check("reactingMultiphaseParcelInjectionData(Istream& is)");
}
示例8: equationOfState
Foam::eConstThermo<equationOfState>::eConstThermo(Istream& is)
:
equationOfState(is),
Cv_(readScalar(is)),
Hf_(readScalar(is))
{
is.check("eConstThermo::eConstThermo(Istream& is)");
}
示例9:
Foam::specie::specie(Istream& is)
:
name_(is),
nMoles_(readScalar(is)),
molWeight_(readScalar(is))
{
is.check("specie::specie(Istream& is)");
}
示例10:
injector::injector(const Time& t, Istream& is)
:
injectorDict_(is),
properties_(injectorType::New(t, injectorDict_))
{
// Check state of Istream
is.check("Istream& operator>>(Istream&, injector&)");
}
示例11:
Foam::ClassName<TemplateArgument>::ClassName(Istream& is)
:
base1(is),
base2(is),
member1(is),
member2(is)
{
// Check state of Istream
is.check("Foam::ClassName<TemplateArgument>::ClassName(Foam::Istream&)");
}
示例12:
Foam::CLASSNAME::CLASSNAME(Istream& is)
:
base1(is),
base2(is),
member1(is),
member2(is)
{
// Check state of Istream
is.check("Foam::CLASSNAME::CLASSNAME(Foam::Istream&)");
}
示例13: equationOfState
Foam::hRefpropLiqThermo<equationOfState>::hRefpropLiqThermo(Istream& is)
:
equationOfState(is),
Cp_(readScalar(is)),
Hf_(readScalar(is))
{
is.check("hRefpropLiqThermo::hRefpropLiqThermo(Istream& is)");
Cp_ *= this->W();
Hf_ *= this->W();
}
示例14: EquationOfState
Foam::eConstThermo<EquationOfState>::eConstThermo(Istream& is)
:
EquationOfState(is),
Cv_(readScalar(is)),
Hf_(readScalar(is))
{
is.check("eConstThermo<EquationOfState>::eConstThermo(Istream&)");
Cv_ *= this->W();
Hf_ *= this->W();
}
示例15: EquationOfState
Foam::hConstThermo<EquationOfState>::hConstThermo(Istream& is)
:
EquationOfState(is),
Cp_(readScalar(is)),
Hf_(readScalar(is))
{
is.check("hConstThermo::hConstThermo(Istream& is)");
Cp_ *= this->W();
Hf_ *= this->W();
}