9 #ifndef IMPKERNEL_RESTRAINT_SET_H
10 #define IMPKERNEL_RESTRAINT_SET_H
12 #include <IMP/kernel/kernel_config.h>
15 IMPKERNEL_BEGIN_NAMESPACE
17 #if !defined(IMP_DOXYGEN) && !defined(SWIG)
20 void get_restraints_internal(It b, It e,
22 for (It c=b; c!= e; ++c) {
26 get_restraints_internal(rs->restraints_begin(),
27 rs->restraints_end(), ret);
39 get_restraints_internal(b,e, ret);
40 std::sort(ret.begin(), ret.end());
41 ret.erase(std::unique(ret.begin(), ret.end()), ret.end());
45 IMPKERNEL_END_NAMESPACE