/** * \file CoreCLASSNAMEsRestraint.h * \brief Apply a CLASSNAMEScore to each CLASSNAME in a list. * * This file is generated by a script (core/tools/make-container). * Do not edit directly. * * Copyright 2007-2010 IMP Inventors. All rights reserved. * */ #ifndef IMPCORE_INTERNAL_CORE_HEADERNAMES_RESTRAINT_H #define IMPCORE_INTERNAL_CORE_HEADERNAMES_RESTRAINT_H #include "../core_config.h" #include #include #include #include #include "HELPERNAME_helpers.h" #include IMPCORE_BEGIN_INTERNAL_NAMESPACE //! Applies a CLASSNAMEScore to each CLASSNAME in a list. /** This restraint stores the used particles in a PLURALVARIABLETYPE. The container used can be set so that the list can be shared with other containers (or a nonbonded list can be used). By default a ListCLASSNAMEContainer is used and the {add_, set_, clear_}FUNCTIONNAME{s} methods can be used. \see CLASSNAMERestraint */ class IMPCOREEXPORT CoreCLASSNAMEsRestraint : public CLASSNAMEsScoreRestraint { IMP::internal::OwnerPointer ss_; IMP::internal::OwnerPointer pc_; mutable double score_; public: //! Create the restraint with a shared container /** \param[in] ss The function to apply to each particle. \param[in] pc The container containing the stored particles. This container is not copied. \param[in] name The object name */ CoreCLASSNAMEsRestraint(CLASSNAMEScore *ss, CLASSNAMEContainer *pc, std::string name="CLASSNAMEsRestraint %1%"); IMP_INCREMENTAL_RESTRAINT(CoreCLASSNAMEsRestraint); PLURALVARIABLETYPE get_arguments() const { return pc_->get(); } CLASSNAMEScore* get_score() const { return ss_; } CLASSNAMEContainer* get_container() const { return pc_; } Restraints get_decomposition() const; }; IMPCORE_END_INTERNAL_NAMESPACE #endif /* IMPCORE_INTERNAL_CORE_HEADERNAMES_RESTRAINT_H */