IMP logo

IMP::RAII Class Reference


Detailed Description

RAII-style objects.

RAII-style objects are a convenient way of controlling a resource. They assume "ownership" of the resource on creation and then "free" it on destruction. Examples include, setting the log level to a particular value and restoring the old value when the object goes out of scope (SetLogState) or incrementing and decrementing a ref-counted pointer (Pointer).

RAII objects should either take no arguments and just have a constructor and destructor or should have a constructor, destructor and set and reset functions.

Inheritance diagram for IMP::RAII:

Inheritance graph
[legend]

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

Generated on Mon Mar 8 23:08:44 2010 for IMP by doxygen 1.5.8