本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}