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


C++ ModelObjectsTemp::push_back方法代码示例

本文整理汇总了C++中ModelObjectsTemp::push_back方法的典型用法代码示例。如果您正苦于以下问题:C++ ModelObjectsTemp::push_back方法的具体用法?C++ ModelObjectsTemp::push_back怎么用?C++ ModelObjectsTemp::push_back使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ModelObjectsTemp的用法示例。


在下文中一共展示了ModelObjectsTemp::push_back方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: do_get_inputs

ModelObjectsTemp CoreClosePairContainer::do_get_inputs() const {
  ModelObjectsTemp ret;
  ret.push_back(c_);
  ret.push_back(score_state_);
  ret.push_back(moved_);
  return ret;
}
开发者ID:j-ma-bu-l-l-ock,项目名称:imp,代码行数:7,代码来源:CoreClosePairContainer.cpp

示例2: get_score_state_inputs

ModelObjectsTemp CoreClosePairContainer::get_score_state_inputs()
    const {
  ParticleIndexes all = c_->get_all_possible_indexes();
  ModelObjectsTemp ret = IMP::get_particles(get_model(), all);
  for (unsigned int i = 0; i < get_number_of_pair_filters(); ++i) {
    ret += get_pair_filter(i)->get_inputs(get_model(), all);
  }
  ret += cpf_->get_inputs(get_model(), all);
  ret.push_back(c_);
  ret.push_back(moved_);
  return ret;
}
开发者ID:j-ma-bu-l-l-ock,项目名称:imp,代码行数:12,代码来源:CoreClosePairContainer.cpp

示例3: do_get_inputs

ModelObjectsTemp RevoluteJointMover::do_get_inputs() const {
  ModelObjectsTemp ret;
  core::RigidMembers tmp(joints_[0]->get_parent_node().get_rigid_members());
  for (unsigned int i = 0; i < tmp.size(); ++i)
      ret.push_back(tmp[i]); //->get_particle());
  for (unsigned int j = 0; j < joints_.size(); ++j) {
      tmp = joints_[j]->get_child_node().get_rigid_members();
      for (unsigned int i = 0; i < tmp.size(); ++i)
          ret.push_back(tmp[i]); //->get_particle());
  }
  return ret;
}
开发者ID:salilab,项目名称:imp,代码行数:12,代码来源:RevoluteJointMover.cpp

示例4: do_get_inputs

ModelObjectsTemp ConnectivityRestraint::do_get_inputs() const {
  if (!sc_) return ModelObjectsTemp();
  ModelObjectsTemp ret;
  ret += ps_->get_inputs(get_model(), sc_->get_all_possible_indexes());
  ret.push_back(sc_);
  return ret;
}
开发者ID:j-ma-bu-l-l-ock,项目名称:imp,代码行数:7,代码来源:ConnectivityRestraint.cpp

示例5: get_score_state_inputs

ModelObjectsTemp MovedSingletonContainer::get_score_state_inputs() const {
  ModelObjectsTemp ret =
      IMP::get_particles(get_model(), pc_->get_indexes());
  ret.push_back(pc_);
  ret += get_extra_inputs();
  return ret;
}
开发者ID:AljGaber,项目名称:imp,代码行数:7,代码来源:MovedSingletonContainer.cpp

示例6: do_get_inputs

ModelObjectsTemp EnvelopePenetrationRestraint::do_get_inputs() const {
  ModelObjectsTemp pt;
  for (ParticleConstIterator it = particles_begin(); it != particles_end();
       ++it) {
    pt.push_back(*it);
  }
  return pt;
}
开发者ID:salilab,项目名称:imp,代码行数:8,代码来源:EnvelopePenetrationRestraint.cpp

示例7: do_get_outputs

ModelObjectsTemp KinematicForestScoreState::do_get_outputs() const {
  ModelObjectsTemp ret;
  ret += atoms_;
  for (unsigned int i = 0; i < rbs_.size(); i++) {
    ret.push_back(rbs_[i]);
  }
  return ret;
}
开发者ID:salilab,项目名称:imp,代码行数:8,代码来源:KinematicForestScoreState.cpp

示例8: do_get_inputs

kernel::ModelObjectsTemp RigidBodyUmbrella::do_get_inputs() const {
    kernel::Model *m = get_model();
    ModelObjectsTemp ret;
    //reference rb
    ret.push_back(m->get_particle(ref_));
    kernel::ParticleIndexes pref(
        RigidBody(m, ref_).get_member_indexes());
    for (unsigned i=0; i<pref.size(); i++)
        ret.push_back(m->get_particle(pref[i]));
    //target rb
    ret.push_back(m->get_particle(pi_));
    kernel::ParticleIndexes iref(
        RigidBody(m, pi_).get_member_indexes());
    for (unsigned i=0; i<iref.size(); i++)
        ret.push_back(m->get_particle(iref[i]));
    return ret;
}
开发者ID:newtonjoo,项目名称:imp,代码行数:17,代码来源:RigidBodyUmbrella.cpp

示例9: do_get_inputs

ModelObjectsTemp DensityFillingRestraint::do_get_inputs() const {
  ModelObjectsTemp pt;
  for (ParticleConstIterator it = particles_begin(); it != particles_end();
       ++it) {
    pt.push_back(*it);
  }
  return pt;
}
开发者ID:j-ma-bu-l-l-ock,项目名称:imp,代码行数:8,代码来源:DensityFillingRestraint.cpp

示例10: do_get_inputs

IMPKINEMATICS_BEGIN_NAMESPACE

ModelObjectsTemp KinematicForestScoreState::do_get_inputs() const {
  ModelObjectsTemp ret;
  ret += atoms_;
  for (unsigned int i = 0; i < rbs_.size(); i++) {
    ret.push_back(rbs_[i]);
  }
  return ret;
}
开发者ID:salilab,项目名称:imp,代码行数:10,代码来源:KinematicForestScoreState.cpp

示例11: get_inputs

ModelObjectsTemp GaussianProcessInterpolation::get_inputs()
    const {
  ModelObjectsTemp ret;
  ModelObjectsTemp ret1 = mean_function_->get_inputs();
  ret.insert(ret.end(), ret1.begin(), ret1.end());
  ret.push_back(sigma_);
  ModelObjectsTemp ret2 = covariance_function_->get_inputs();
  ret.insert(ret.end(), ret2.begin(), ret2.end());
  return ret;
}
开发者ID:j-ma-bu-l-l-ock,项目名称:imp,代码行数:10,代码来源:GaussianProcessInterpolation.cpp

示例12: do_get_inputs

ModelObjectsTemp SameResiduePairFilter::do_get_inputs(
    Model *m, const ParticleIndexes &pis) const {
  ModelObjectsTemp ret = IMP::get_particles(m, pis);
  for (unsigned int i = 0; i < pis.size(); ++i) {
    if (Atom::get_is_setup(m, pis[i])) {
      Particle *parent = Hierarchy(m, pis[i]).get_parent();
      if (parent) {
        ret.push_back(parent);
      }
    }
  }
  return ret;
}
开发者ID:j-ma-bu-l-l-ock,项目名称:imp,代码行数:13,代码来源:SameResiduePairFilter.cpp

示例13: do_get_inputs

ModelObjectsTemp BondedPairFilter::do_get_inputs(
    Model *m, const ParticleIndexes &pis) const {
  ModelObjectsTemp ret = IMP::get_particles(m, pis);
  for (unsigned int i = 0; i < pis.size(); ++i) {
    if (Bonded::get_is_setup(m, pis[i])) {
      Bonded b(m, pis[i]);
      for (unsigned int i = 0; i < b.get_number_of_bonds(); ++i) {
        ret.push_back(b.get_bond(i));
      }
    }
  }
  return ret;
}
开发者ID:AljGaber,项目名称:imp,代码行数:13,代码来源:BondedPairFilter.cpp

示例14: do_get_inputs

ModelObjectsTemp HelixRestraint::do_get_inputs() const {
  ModelObjectsTemp ps;
  Model *m = get_model();
  for (IMP::Vector<IMP::PointerMember<
         core::MultipleBinormalRestraint> >::const_iterator td = dihedral_rs_.begin();
       td != dihedral_rs_.end(); ++td){
    ModelObjectsTemp bps = (*td)->get_inputs();
    ps.insert(ps.end(), bps.begin(), bps.end());
  }
  for (ParticleIndexPairs::const_iterator tb = bonds_ON_.begin();
       tb != bonds_ON_.end(); ++tb) {
    ps.push_back(m->get_particle((*tb)[0]));
    ps.push_back(m->get_particle((*tb)[1]));
  }

  return ps;
}
开发者ID:salilab,项目名称:imp,代码行数:17,代码来源:HelixRestraint.cpp

示例15: do_get_inputs

ModelObjectsTemp DummyPairContainer::do_get_inputs() const {
  ModelObjectsTemp ret =
      cpf_->get_inputs(get_model(), c_->get_indexes());
  ret.push_back(c_);
  return ret;
}
开发者ID:salilab,项目名称:imp,代码行数:6,代码来源:incremental_scoring_function.cpp


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