IMP
2.4.0
The Integrative Modeling Platform
|
#include <IMP/base/RAII.h>
An RAII class (Resource Acquisition Is Initialization) provides a way of temporarily changing something and undoing the change when the RAII object is destroyed. Examples include reference counting and changing the log level where you want to do something (increase the amount of logging), but ensure that when your function exits, things are put back to how they were before.