IMP Reference Guide
2.22.0
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. More... | |
void | reset () |
Remove the properties previously set for this class. More... | |
void | set (Particle *p, Key key, const Value &value) |
Assign new properties to the class. More... | |
void | show (std::ostream &out=std::cout) const |
|
explicit |
Explicit constructor that sets the properties of ScopedSetAttribute.
void IMP::ScopedSetAttribute< Key, Value >::reset | ( | ) |