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

#include <Node.h>

Public Member Functions

 ScopedEnableNode (const NodeRef &node)
 
 ScopedEnableNode (const NodeRef &node, bool enable)
 
 ~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: