|
IMP Reference Guide
develop.7482b7c7af, 2026/12/05
The Integrative Modeling Platform
|
#include <IMP/scoped.h>
Set an attribute to a given value and restore the old value when this goes out of scope.
Public Member Functions | |
| ScopedSetAttribute (Particle *p, Key key, const Value &value) | |
| Explicit constructor that sets the properties of ScopedSetAttribute. | |
| void | reset () |
| Remove the properties previously set for this class. | |
| void | set (Particle *p, Key key, const Value &value) |
| Assign new properties to the class. | |
| void | show (std::ostream &out=std::cout) const |
| IMP::ScopedSetAttribute< Key, Value >::ScopedSetAttribute | ( | ) |
|
explicit |
Explicit constructor that sets the properties of ScopedSetAttribute.
| IMP::ScopedSetAttribute< Key, Value >::~ScopedSetAttribute | ( | ) |
| void IMP::ScopedSetAttribute< Key, Value >::reset | ( | ) |