pl-nk v0.4.5
Plonk|Plink|Plank are a set of cross-platform C/C++ frameworks for audio software development
plonk_VariableForwardDeclarations.h
00001 /*
00002  -------------------------------------------------------------------------------
00003  This file is part of the Plink, Plonk, Plank libraries
00004   by Martin Robinson
00005  
00006  http://code.google.com/p/pl-nk/
00007  
00008  Copyright University of the West of England, Bristol 2011-14
00009  All rights reserved.
00010  
00011  Redistribution and use in source and binary forms, with or without
00012  modification, are permitted provided that the following conditions are met:
00013  
00014  * Redistributions of source code must retain the above copyright
00015    notice, this list of conditions and the following disclaimer.
00016  * Redistributions in binary form must reproduce the above copyright
00017    notice, this list of conditions and the following disclaimer in the
00018    documentation and/or other materials provided with the distribution.
00019  * Neither the name of University of the West of England, Bristol nor 
00020    the names of its contributors may be used to endorse or promote products
00021    derived from this software without specific prior written permission.
00022  
00023  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
00024  ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
00025  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 
00026  DISCLAIMED. IN NO EVENT SHALL UNIVERSITY OF THE WEST OF ENGLAND, BRISTOL BE 
00027  LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 
00028  CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE 
00029  GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 
00030  HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
00031  LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 
00032  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
00033  
00034  This software makes use of third party libraries. For more information see:
00035  doc/license.txt included in the distribution.
00036  -------------------------------------------------------------------------------
00037  */
00038 
00039 #ifndef PLONK_VARIABLEFORWARDDECLARATIONS_H
00040 #define PLONK_VARIABLEFORWARDDECLARATIONS_H
00041 
00042 #include "../../maths/plonk_InlineBinaryOps.h"
00043 #include "../../maths/plonk_InlineUnaryOps.h"
00044 #include "../../core/plonk_CoreForwardDeclarations.h"
00045 #include "../plonk_ContainerForwardDeclarations.h"
00046 #include "../plonk_Atomic.h"
00047 
00048 template<class Type>                                        class Variable;
00049 template<class Type>                                        class VariableInternalBase;
00050 template<class Type>                                        class VariableInternal;
00051 
00052 template<class Type, PLONK_BINARYOPFUNCTION(Type, op)>      class BinaryOpVariableInternal;
00053 template<class Type, PLONK_UNARYOPFUNCTION(Type, op)>       class UnaryOpVariableInternal;
00054 template<class Type, class OtherType>                       class TypeVariableInternal;
00055 template<class Type>                                        class ShapeVariableInternal;
00056 template<class Type>                                        class PatternVariableInternal;
00057 
00058 typedef Variable<float>     FloatVariable;
00059 typedef Variable<double>    DoubleVariable;
00060 typedef Variable<int>       IntVariable;
00061 typedef Variable<short>     ShortVariable;
00062 typedef Variable<Int24>     Int24Variable;
00063 typedef Variable<Long>      LongVariable;
00064 typedef Variable<LongLong>  LongLongVariable;
00065 typedef Variable<char>      CharVariable;
00066 typedef Variable<bool>      BoolVariable;
00067 
00068 // these don't really store references, they're just used to manipulate the compiler
00069 typedef Variable<AtomicFloat&>                      AtomicFloatVariable;
00070 typedef Variable<AtomicDouble&>                     AtomicDoubleVariable;
00071 typedef Variable<AtomicInt&>                        AtomicIntVariable;
00072 typedef Variable<AtomicLong&>                       AtomicLongVariable;
00073 typedef Variable<AtomicLongLong&>                   AtomicLongLongVariable;
00074 typedef Variable<AtomicPointer&>                    AtomicPointerVariable;
00075 typedef Variable<AtomicExtendedPointer&>            AtomicExtendedPointerVariable;
00076 typedef Variable<AtomicDynamicPointer&>             AtomicDynamicPointerVariable;
00077 
00078 typedef Variable<FloatArray&>                       FloatArrayVariable;
00079 typedef Variable<DoubleArray&>                      DoubleArrayVariable;
00080 typedef Variable<IntArray&>                         IntArrayVariable;
00081 typedef Variable<ShortArray&>                       ShortArrayVariable;
00082 typedef Variable<Int24Array&>                       Int24ArrayVariable;
00083 typedef Variable<LongArray&>                        LongArrayVariable;
00084 typedef Variable<CharArray&>                        CharArrayVariable;
00085 typedef Variable<BoolArray&>                        BoolArrayVariable;
00086 typedef Variable<Buffer&>                           BufferVariable;
00087 
00088 typedef Variable<Text&>                             TextVariable;
00089 typedef Variable<TextArray&>                        TextArrayVariable;
00090 
00091 typedef Variable<FloatBreakpoint&>                  FloatBreakpointVariable;
00092 typedef Variable<DoubleBreakpoint&>                 DoubleBreakpointVariable;
00093 typedef Variable<IntBreakpoint&>                    IntBreakpointVariable;
00094 typedef Variable<ShortBreakpoint&>                  ShortBreakpointVariable;
00095 typedef Variable<Int24Breakpoint&>                  Int24BreakpointVariable;
00096 typedef Variable<LongBreakpoint&>                   LongBreakpointVariable;
00097 typedef Variable<Breakpoint&>                       BreakpointVariable;
00098 
00099 typedef Variable<FloatBreakpoints&>                 FloatBreakpointsVariable;
00100 typedef Variable<DoubleBreakpoints&>                DoubleBreakpointsVariable;
00101 typedef Variable<IntBreakpoints&>                   IntBreakpointsVariable;
00102 typedef Variable<ShortBreakpoints&>                 ShortBreakpointsVariable;
00103 typedef Variable<Int24Breakpoints&>                 Int24BreakpointsVariable;
00104 typedef Variable<LongBreakpoints&>                  LongBreakpointsVariable;
00105 typedef Variable<Breakpoints&>                      BreakpointsVariable;
00106 
00107 typedef Variable<FloatWavetable&>                   FloatWavetableVariable;
00108 typedef Variable<DoubleWavetable&>                  DoubleWavetableVariable;
00109 typedef Variable<IntWavetable&>                     IntWavetableVariable;
00110 typedef Variable<ShortWavetable&>                   ShortWavetableVariable;
00111 typedef Variable<Int24Wavetable&>                   Int24WavetableVariable;
00112 typedef Variable<LongWavetable&>                    LongWavetableVariable;
00113 typedef Variable<Wavetable&>                        WavetableVariable;
00114 
00115 typedef Variable<FloatSignal&>                      FloatSignalVariable;
00116 typedef Variable<DoubleSignal&>                     DoubleSignalVariable;
00117 typedef Variable<IntSignal&>                        IntSignalVariable;
00118 typedef Variable<ShortSignal&>                      ShortSignalVariable;
00119 typedef Variable<Int24Signal&>                      Int24SignalVariable;
00120 typedef Variable<LongSignal&>                       LongSignalVariable;
00121 typedef Variable<Signal&>                           SignalVariable;
00122 
00123 typedef NumericalArray< Variable<float> >           FloatVariableArray;
00124 typedef NumericalArray< Variable<double> >          DoubleVariableArray;
00125 typedef NumericalArray< Variable<int> >             IntVariableArray;
00126 typedef NumericalArray< Variable<short> >           ShortVariableArray;
00127 typedef NumericalArray< Variable<Int24> >           Int24VariableArray;
00128 typedef NumericalArray< Variable<Long> >            LongVariableArray;
00129 typedef NumericalArray< Variable<LongLong> >        LongLongVariableArray;
00130 typedef NumericalArray< Variable<char> >            CharVariableArray;
00131 typedef NumericalArray< Variable<bool> >            BoolVariableArray;
00132 
00133 typedef NumericalArray< Variable<float> >           FloatVariables;
00134 typedef NumericalArray< Variable<double> >          DoubleVariables;
00135 typedef NumericalArray< Variable<int> >             IntVariables;
00136 typedef NumericalArray< Variable<short> >           ShortVariables;
00137 typedef NumericalArray< Variable<Int24> >           Int24Variables;
00138 typedef NumericalArray< Variable<Long> >            LongVariables;
00139 typedef NumericalArray< Variable<LongLong> >        LongLongVariables;
00140 typedef NumericalArray< Variable<char> >            CharVariables;
00141 typedef NumericalArray< Variable<bool> >            BoolVariables;
00142 
00143 #endif // PLONK_VARIABLEFORWARDDECLARATIONS_H
 All Classes Functions Typedefs Enumerations Enumerator Properties