libpsynth 0.2.1
Namespaces | Functions
/home/raskolnikov/dev/psynth/trunk/src/psynth/sound/apply_operation.hpp File Reference

Time-stamp: <2010-11-03 21:05:33 raskolnikov> More...

#include <psynth/sound/apply_operation_base.hpp>
#include <psynth/sound/variant.hpp>
Include dependency graph for apply_operation.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  psynth
namespace  psynth::sound

Functions

template<typename Types , typename UnaryOp >
PSYNTH_FORCEINLINE
UnaryOp::result_type 
psynth::sound::apply_operation (variant< Types > &arg, UnaryOp op)
 Invokes a generic mutable operation (represented as a unary function object) on a variant.
template<typename Types , typename UnaryOp >
PSYNTH_FORCEINLINE
UnaryOp::result_type 
psynth::sound::apply_operation (const variant< Types > &arg, UnaryOp op)
 Invokes a generic constant operation (represented as a unary function object) on a variant.
template<typename Types1 , typename Types2 , typename BinaryOp >
PSYNTH_FORCEINLINE
BinaryOp::result_type 
psynth::sound::apply_operation (const variant< Types1 > &arg1, const variant< Types2 > &arg2, BinaryOp op)
 Invokes a generic constant operation (represented as a binary function object) on two variants.

Detailed Description

Time-stamp: <2010-11-03 21:05:33 raskolnikov>

Author:
Juan Pedro Bolivar Puente <raskolnikov@es.gnu.org>
Date:
Wed Nov 3 21:02:18 2010

Implements apply_operation for variants. Optionally performs type reduction.