Cinder  0.9.1
Public Member Functions | List of all members
cinder::audio::ScopedEnableContext Struct Reference

#include <Context.h>

Public Member Functions

 ScopedEnableContext (Context *context)
 
 ScopedEnableContext (Context *context, bool enable)
 
 ~ScopedEnableContext ()
 

Detailed Description

RAII-style utility class to set a Context's enabled state and have it restored at the end of the current scope block.

Constructor & Destructor Documentation

cinder::audio::ScopedEnableContext::ScopedEnableContext ( Context context)

Constructs an object that will store context's enabled state and restore it at the end of the current scope.

cinder::audio::ScopedEnableContext::ScopedEnableContext ( Context context,
bool  enable 
)

Constructs an object that will set context's enabled state to enable and restore it to the original state at the end of the current scope.

cinder::audio::ScopedEnableContext::~ScopedEnableContext ( )

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