IMP  2.4.0
The Integrative Modeling Platform
List of all members
IMP::base::RAII Class Reference

#include <IMP/base/RAII.h>

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

Detailed Description

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.

Definition at line 27 of file RAII.h.


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