IMP
2.4.0
The Integrative Modeling Platform
|
#include <IMP/kernel/scoped.h>
Set an attribute to a given value and restore the old value when this goes out of scope..
Definition at line 55 of file kernel/scoped.h.
Public Member Functions | |
ScopedSetAttribute (Particle *p, Key key, const Value &value) | |
void | reset () |
void | set (Particle *p, Key key, const Value &value) |
void | show (std::ostream &out=std::cout) const |
|
explicit |
explicit constructor that sets the properties of ScopedSetAttribute
Definition at line 75 of file kernel/scoped.h.
void IMP::kernel::ScopedSetAttribute< Key, Value >::reset | ( | ) |
resets the properties previously set for this class
Definition at line 75 of file kernel/scoped.h.
void IMP::kernel::ScopedSetAttribute< Key, Value >::set | ( | Particle * | p, |
Key | key, | ||
const Value & | value | ||
) |
sets the properties of the class to new ones
Definition at line 75 of file kernel/scoped.h.