IMP logo
IMP Reference Guide  develop.7482b7c7af, 2026/12/05
The Integrative Modeling Platform
NuisanceRangeModifier.h
Go to the documentation of this file.
1/**
2 * \file IMP/spb/NuisanceRangeModifier.h
3 * \brief Ensure that a Nuisance stays within its set range.
4 *
5 * Copyright 2007-2022 IMP Inventors. All rights reserved.
6 */
7
8#ifndef IMPSPB_NUISANCE_RANGE_MODIFIER_H
9#define IMPSPB_NUISANCE_RANGE_MODIFIER_H
10
12#include <IMP/isd/Nuisance.h>
14#include <IMP/spb/spb_config.h>
15
16IMPSPB_BEGIN_NAMESPACE
17
18//! Ensure that a Nuisance stays within its set range.
19class IMPSPBEXPORT NuisanceRangeModifier : public SingletonModifier {
20 public:
21 NuisanceRangeModifier(){};
22
23 // note, Doxygen wants a semicolon at the end of macro lines
24 virtual void apply_index(IMP::Model *m,
25 IMP::ParticleIndex p) const override;
27 IMP::Model *m, const IMP::ParticleIndexes &pis) const override;
29 IMP::Model *m, const IMP::ParticleIndexes &pis) const override;
30
31 IMP_SINGLETON_MODIFIER_METHODS(NuisanceRangeModifier);
32 IMP_OBJECT_METHODS(NuisanceRangeModifier);
33
34 IMP_SHOWABLE(NuisanceRangeModifier);
35};
36
37IMPSPB_END_NAMESPACE
38
39#endif /* IMPSPB_NUISANCE_RANGE_MODIFIER_H */
A decorator for nuisance parameters particles.
A Modifier on ParticlesTemp.
Class for storing model, its restraints, constraints, and particles.
Definition Model.h:111
virtual IMP::ModelObjectsTemp do_get_inputs(IMP::Model *m, const IMP::ParticleIndexes &pis) const override
Overload this method to specify the inputs.
virtual IMP::ModelObjectsTemp do_get_outputs(IMP::Model *m, const IMP::ParticleIndexes &pis) const override
Overload this method to specify the outputs.
virtual void apply_index(IMP::Model *m, IMP::ParticleIndex p) const override
Index< ParticleIndexTag > ParticleIndex
Definition base_types.h:196
Vector< ParticleIndex, std::allocator< ParticleIndex > > ParticleIndexes
A list of particles, each identified by its ParticleIndex.
Definition base_types.h:199
IMP::Vector< IMP::WeakPointer< ModelObject > > ModelObjectsTemp
Definition base_types.h:122
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
#define IMP_SHOWABLE(Name)
Macros for various classes.
#define IMP_SINGLETON_MODIFIER_METHODS(Name)