IMP  2.0.1
The Integrative Modeling Platform
IMP::kernel::ScopedSetAttribute< Key, Value > Class Template Reference

#include <IMP/kernel/scoped.h>

+ Inheritance diagram for IMP::kernel::ScopedSetAttribute< Key, Value >:

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
 

Detailed Description

template<class Key, class Value>
class IMP::kernel::ScopedSetAttribute< Key, Value >

Set an attribute to a given value and restore the old value when this goes out of scope..

Definition at line 233 of file kernel/scoped.h.


The documentation for this class was generated from the following file: