IMP  2.1.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 243 of file kernel/scoped.h.

Constructor & Destructor Documentation

template<class Key , class Value >
IMP::kernel::ScopedSetAttribute< Key, Value >::ScopedSetAttribute ( Particle p,
Key  key,
const Value &  value 
)
explicit

explicit constructor that sets the properties of ScopedSetAttribute

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

Member Function Documentation

template<class Key , class Value >
void IMP::kernel::ScopedSetAttribute< Key, Value >::reset ( )

resets the properties previously set for this class

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

template<class Key , class Value >
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 263 of file kernel/scoped.h.


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