![]() |
Rosetta Protocols
2014.16.56682
|
A class to determine the neighborhood of a set of residues within a pose. More...
#include <Neighborhood.hh>
Public Member Functions | |
| Neighborhood (vector1< Size > const &set, Pose const &ps, NGB_FUN_PTR ngb_fun) | |
| Neighborhood's constructor. More... | |
| vector1< Size > const & | get () const |
Private Member Functions | |
| void | print_ngb_mask () const |
| : prints the neighbor mask as a binary string More... | |
Private Attributes | |
| NGB_FUN_PTR | is_ngb |
| vector1< bool > | ngb_mask |
| vector1< Size > | ngbs |
A class to determine the neighborhood of a set of residues within a pose.
| protocols::neighbor::Neighborhood::Neighborhood | ( | vector1< Size > const & | set, |
| Pose const & | ps, | ||
| NGB_FUN_PTR | ngb_fun | ||
| ) |
Neighborhood's constructor.
| [in] | set | pose indexes of the residues whose neighborhood is to be computed |
| [in] | ps | the pose |
| [in] | ngb_fun | function determining whether two residues are neighbors of one another |
At the end of this function, ngb_mask[i], for i in {1,...,NPS} such that i is not a member of set, is true iff is_ngb(R_j, N_i, ps) equals true for at least one j in {1,...,NSET}, where R_j indicates ps.residue(set[j]) and N_i indicates ps.residue(i); for i in {1,...,NPS} such that i is a member of set, ngb_mask[i] equals false.
References is_ngb, j, ngb_mask, ngbs, core::pose::Pose::residue(), and core::pose::Pose::total_residue().
|
private |
: prints the neighbor mask as a binary string
: the ith output digit equals 1 if the ith element in the mask is true; it equals 0 if the ith element is false (i=1,...,SIZ).
References ngb_mask.
|
private |
Referenced by Neighborhood().
Referenced by Neighborhood(), and print_ngb_mask().
Referenced by get(), and Neighborhood().
1.8.7