IMP  2.2.0
The Integrative Modeling Platform
IMP::base::SetCheckState Class Reference

A class to change and restore check state. More...

#include <IMP/base/SetCheckState.h>

+ Inheritance diagram for IMP::base::SetCheckState:

Public Member Functions

 SetCheckState (Object *o, CheckLevel l)
 
 SetCheckState (CheckLevel l)
 Construct it with the desired level and target.
 
void reset ()
 
void set (Object *o, CheckLevel l)
 
void set (CheckLevel l)
 
void show (std::ostream &out=std::cout) const
 

Detailed Description

To use, create an instance of this class with the check level you want. When it goes out of scope, it will restore the old level.

Note
This will not keep objects alive, make sure there is also some other ref-counted pointer to them.

Definition at line 31 of file base/SetCheckState.h.

Constructor & Destructor Documentation

IMP::base::SetCheckState::SetCheckState ( Object o,
CheckLevel  l 
)
explicit

explicit constructor that sets the properties of SetCheckState

Definition at line 43 of file base/SetCheckState.h.

Member Function Documentation

void IMP::base::SetCheckState::reset ( )

resets the properties previously set for this class

Definition at line 43 of file base/SetCheckState.h.

void IMP::base::SetCheckState::set ( Object o,
CheckLevel  l 
)

sets the properties of the class to new ones

Definition at line 43 of file base/SetCheckState.h.


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