当前位置: 首页>>代码示例>>C++>>正文


C++ Istream::check方法代码示例

本文整理汇总了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)");
}
开发者ID:OpenFOAM,项目名称:OpenFOAM-dev,代码行数:9,代码来源:reactingParcelInjectionDataIO.C

示例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)");
}
开发者ID:bienxanh1901,项目名称:firefoam-dev,代码行数:12,代码来源:thermoParcelInjectionDataIO.C

示例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)"
    );
}
开发者ID:Washino,项目名称:OpenFOAM-User-Dir,代码行数:33,代码来源:WetParcelIO.C

示例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++;
        }
开发者ID:bienxanh1901,项目名称:firefoam-dev,代码行数:31,代码来源:phasePropertiesIO.C

示例5: specie

Foam::incompressible::incompressible(Istream& is)
:
    specie(is),
    rho_(readScalar(is))
{
    is.check("incompressible::incompressible(Istream& is)");
}
开发者ID:0184561,项目名称:OpenFOAM-2.1.x,代码行数:7,代码来源:incompressible.C

示例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_);
}
开发者ID:000861,项目名称:OpenFOAM-2.1.x,代码行数:34,代码来源:ignitionSiteIO.C

示例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)");
}
开发者ID:bienxanh1901,项目名称:firefoam-dev,代码行数:16,代码来源:reactingMultiphaseParcelInjectionDataIO.C

示例8: equationOfState

Foam::eConstThermo<equationOfState>::eConstThermo(Istream& is)
:
    equationOfState(is),
    Cv_(readScalar(is)),
    Hf_(readScalar(is))
{
    is.check("eConstThermo::eConstThermo(Istream& is)");
}
开发者ID:TsukasaHori,项目名称:openfoam-extend-foam-extend-3.1,代码行数:8,代码来源:eConstThermo.C

示例9:

Foam::specie::specie(Istream& is)
:
    name_(is),
    nMoles_(readScalar(is)),
    molWeight_(readScalar(is))
{
    is.check("specie::specie(Istream& is)");
}
开发者ID:AmaneShino,项目名称:OpenFOAM-2.0.x,代码行数:8,代码来源:specie.C

示例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&)");

}
开发者ID:Brzous,项目名称:WindFOAM,代码行数:9,代码来源:injectorIO.C

示例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&)");
}
开发者ID:Brzous,项目名称:WindFOAM,代码行数:10,代码来源:foamTemplateTemplateIO.C

示例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&)");
}
开发者ID:ADGlassby,项目名称:OpenFOAM-2.2.x,代码行数:10,代码来源:_TemplateIO.C

示例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();
}
开发者ID:zwttc2005,项目名称:INERISCO2QUEST_test12_sourceCode,代码行数:11,代码来源:hRefpropLiqThermo.C

示例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();
}
开发者ID:Al-th,项目名称:OpenFOAM-2.2.x,代码行数:11,代码来源:eConstThermo.C

示例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();
}
开发者ID:BarisCumhur,项目名称:OpenFOAM-dev,代码行数:11,代码来源:hConstThermo.C


注:本文中的Istream::check方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。