本文整理汇总了C++中SBMLVisitor类的典型用法代码示例。如果您正苦于以下问题:C++ SBMLVisitor类的具体用法?C++ SBMLVisitor怎么用?C++ SBMLVisitor使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了SBMLVisitor类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: visit
virtual bool visit(const SBase &x)
{
if (&x == NULL || x.getPackageName() != "arrays")
{
return SBMLVisitor::visit(x);
}
int code = x.getTypeCode();
const ListOf* list = dynamic_cast<const ListOf*>(&x);
if (list != NULL)
{
return SBMLVisitor::visit(x);
}
else
{
if (code == SBML_ARRAYS_DIMENSION)
{
return visit((const Dimension&)x);
}
else if (code == SBML_ARRAYS_INDEX)
{
return visit((const Index&)x);
}
else
{
return SBMLVisitor::visit(x);
}
}
}
示例2: getFluxBound
/*
* Accept the SBMLVisitor.
*/
bool
FbcModelPlugin::accept(SBMLVisitor& v) const
{
const Model * model = static_cast<const Model * >(this->getParentSBMLObject());
v.visit(*model);
v.leave(*model);
for (unsigned int i = 0; i < getNumFluxBounds(); i++)
{
getFluxBound(i)->accept(v);
}
for (unsigned int i = 0; i < getNumObjectives(); i++)
{
getListOfObjectives()->accept(v);
getObjective(i)->accept(v);
}
for(unsigned int i = 0; i < getNumGeneProducts(); i++)
{
getGeneProduct(i)->accept(v);
}
return true;
}
示例3:
/*
* Accepts the given SBMLVisitor.
*/
bool
Priority::accept (SBMLVisitor& v) const
{
v.visit(*this);
v.leave(*this);
return true;
}
示例4:
/** @cond doxygenLibsbmlInternal */
bool
GeneAssociation::accept (SBMLVisitor& v) const
{
v.visit(*this);
v.leave(*this);
return true;
}
示例5: getItemTypeCode
/*
* Accepts the given SBMLVisitor.
*/
bool
ListOf::accept (SBMLVisitor& v) const
{
v.visit(*this, getItemTypeCode() );
for (unsigned int n = 0 ; n < mItems.size() && mItems[n]->accept(v); ++n) ;
v.leave(*this, getItemTypeCode() );
return true;
}
示例6:
/** @cond doxygenLibsbmlInternal */
bool
FbcSBMLDocumentPlugin::accept(SBMLVisitor& v) const
{
const SBMLDocument *doc = static_cast<const SBMLDocument *>(this->getParentSBMLObject());
v.visit(*doc);
v.leave(*doc);
return true;
}
示例7:
/*
* Accepts the given SBMLVisitor
*/
bool
Group::accept(SBMLVisitor& v) const
{
v.visit(*this);
mMembers.accept(v);
v.leave(*this);
return true;
}
示例8:
/*
* Accept the SBMLVisitor.
*/
bool
MultiSimpleSpeciesReferencePlugin::accept(SBMLVisitor& v) const
{
const Model * model = static_cast<const Model * >(this->getParentSBMLObject());
v.visit(*model);
v.leave(*model);
return true;
}
示例9:
/*
* Accept the SBMLVisitor.
*/
bool
DistribFunctionDefinitionPlugin::accept(SBMLVisitor& v) const
{
const Model * model = static_cast<const Model * >(this->getParentSBMLObject());
v.visit(*model);
v.leave(*model);
return true;
}
示例10:
/*
* Accept the SBMLVisitor.
*/
bool
SpatialSpeciesPlugin::accept(SBMLVisitor& v) const
{
const Model * model = static_cast<const Model * >(this->getParentSBMLObject());
v.visit(*model);
v.leave(*model);
return true;
}
示例11:
/*
* Accepts the given SBMLVisitor.
*/
bool
CoordinateComponent::accept (SBMLVisitor& v) const
{
v.visit(*this);
/* VISIT CHILDREN */
v.leave(*this);
return true;
}
示例12:
/*
* Accepts the given SBMLVisitor.
*/
bool
SpeciesFeatureType::accept (SBMLVisitor& v) const
{
v.visit(*this);
/* VISIT CHILDREN */
v.leave(*this);
return true;
}
示例13:
/*
* Accepts the given SBMLVisitor.
*/
bool
SampledFieldGeometry::accept (SBMLVisitor& v) const
{
v.visit(*this);
/* VISIT CHILDREN */
v.leave(*this);
return true;
}
示例14:
/*
* Accepts the given SBMLVisitor.
*/
bool
SpeciesTypeComponentMapInProduct::accept (SBMLVisitor& v) const
{
v.visit(*this);
/* VISIT CHILDREN */
v.leave(*this);
return true;
}
示例15:
/*
* Accepts the given SBMLVisitor.
*/
bool
AnalyticGeometry::accept (SBMLVisitor& v) const
{
v.visit(*this);
/* VISIT CHILDREN */
v.leave(*this);
return true;
}