IMP logo
IMP Reference Guide  2.13.0
The Integrative Modeling Platform
CommonEndpointPairFilter.h
Go to the documentation of this file.
1 /**
2  * \file IMP/misc/CommonEndpointPairFilter.h
3  * \brief Return true for any pair of bonds sharing an endpoint
4  *
5  * Copyright 2007-2020 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 class IMPMISCEXPORT CommonEndpointPairFilter : public PairPredicate {
19  public:
21 
22  virtual int get_value_index(Model *m,
23  const ParticleIndexPair &p) const
26  Model *m, const ParticleIndexes &pis) const IMP_OVERRIDE;
29 };
30 
31 IMPMISC_END_NAMESPACE
32 
33 #endif /* IMPMISC_COMMON_ENDPOINT_PAIR_FILTER_H */
virtual int get_value_index(Model *m, const ParticleIndexPair &vt) const
Compute the predicate and the derivative if needed.
Macros for various classes.
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
Definition: object_macros.h:25
A more IMP-like version of the std::vector.
Definition: Vector.h:39
Class for storing model, its restraints, constraints, and particles.
Definition: Model.h:72
Define PairPredicate.
virtual ModelObjectsTemp do_get_inputs(Model *m, const ParticleIndexes &pis) const =0
Overload this method to specify the inputs.
Abstract predicate function.
Definition: PairPredicate.h:31
Return true for any pair of bonds sharing an endpoint.
#define IMP_OVERRIDE
Cause a compile error if this method does not override a parent method.
#define IMP_PAIR_PREDICATE_METHODS(Name)
Define extra the functions needed for a PairPredicate.
Definition: pair_macros.h:47