IMP  2.2.0
The Integrative Modeling Platform
CommonEndpointPairFilter.h
Go to the documentation of this file.
1 /**
2  * \file IMP/misc/CommonEndpointPairFilter.h
3  * \brief A fake filter that returns true for any pair of bonds with
4  *
5  * Copyright 2007-2014 IMP Inventors. All rights reserved.
6  */
7 
8 #ifndef IMPMISC_COMMON_ENDPOINT_PAIR_FILTER_H
9 #define IMPMISC_COMMON_ENDPOINT_PAIR_FILTER_H
10 
11 #include <IMP/misc/misc_config.h>
12 
13 #include <IMP/PairPredicate.h>
14 #include <IMP/pair_macros.h>
15 IMPMISC_BEGIN_NAMESPACE
16 
17 //! Return true for any pair of bonds sharing an endpoint
18 /** XXXXXX.
19  */
20 class IMPMISCEXPORT CommonEndpointPairFilter : public PairPredicate {
21  public:
23 
24  virtual int get_value_index(kernel::Model *m,
25  const kernel::ParticleIndexPair &p) const
26  IMP_OVERRIDE;
28  kernel::Model *m, const kernel::ParticleIndexes &pis) const IMP_OVERRIDE;
31 };
32 
33 IMPMISC_END_NAMESPACE
34 
35 #endif /* IMPMISC_COMMON_ENDPOINT_PAIR_FILTER_H */
Import IMP/kernel/pair_macros.h in the namespace.
virtual int get_value_index(kernel::Model *m, const kernel::ParticleIndexPair &vt) const
Compute the predicate and the derivative if needed.
A class to store an fixed array of same-typed values.
Definition: base/Array.h:33
Import IMP/kernel/PairPredicate.h in the namespace.
virtual ModelObjectsTemp do_get_inputs(kernel::Model *m, const ParticleIndexes &pis) const
#define IMP_PAIR_PREDICATE_METHODS(Name)
Define extra the functions needed for a PairPredicate.
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
Abstract predicate function.
Return true for any pair of bonds sharing an endpoint.
Class for storing model, its restraints, constraints, and particles.
Definition: kernel/Model.h:72