Cinder  0.8.6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | List of all members
cinder::audio::ScopedEnableNode Struct Reference

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

#include <Node.h>

Public Member Functions

 ScopedEnableNode (const NodeRef &node)
 Constructs an object that will store node's enabled state and restore it at the end of the current scope. More...
 
 ScopedEnableNode (const NodeRef &node, bool enable)
 Constructs an object that will set node's enabled state to enable and restore it to the original state at the end of the current scope. More...
 
 ~ScopedEnableNode ()
 

Detailed Description

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

Constructor & Destructor Documentation

cinder::audio::ScopedEnableNode::ScopedEnableNode ( const NodeRef node)

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

cinder::audio::ScopedEnableNode::ScopedEnableNode ( const NodeRef node,
bool  enable 
)

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

cinder::audio::ScopedEnableNode::~ScopedEnableNode ( )

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