IMP  2.0.1
The Integrative Modeling Platform
IMP::base::RAII Class Reference

#include <IMP/base/RAII.h>

+ Inheritance diagram for IMP::base::RAII:

Detailed Description

An RAII class (Resource Aquisition 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.

Definition at line 22 of file RAII.h.


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