/** * \file IMP/example/ExampleConstraint.h * \brief A restraint on a list of particle pairs. * * Copyright 2007-2013 IMP Inventors. All rights reserved. * */ #ifndef IMPEXAMPLE_EXAMPLE_CONSTRAINT_H #define IMPEXAMPLE_EXAMPLE_CONSTRAINT_H #include #include #include #include #include #include IMPEXAMPLE_BEGIN_NAMESPACE //! A trivial constraint that just increments a counter /** */ class IMPEXAMPLEEXPORT ExampleConstraint : public Constraint { base::Pointer p_; IntKey k_; public: ExampleConstraint(Particle *p); IMP_CONSTRAINT(ExampleConstraint); }; IMPEXAMPLE_END_NAMESPACE #endif /* IMPEXAMPLE_EXAMPLE_CONSTRAINT_H */