![]() |
pl-nk v0.4.5
Plonk|Plink|Plank are a set of cross-platform C/C++ frameworks for audio software development
|
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_CONTAINERFORWARDDECLARATIONS_H 00040 #define PLONK_CONTAINERFORWARDDECLARATIONS_H 00041 00042 class Text; 00043 class TextArray; 00044 class Dynamic; 00045 class Globals; 00046 class Int24; 00047 class Function; 00048 00049 template<class Base, unsigned IBits, unsigned FBits> class Fix; 00050 template<class Type> class AtomicValue; 00051 template<class Type> class AtomicExtended; 00052 template<class ObjectType> class SimpleArray; 00053 template<class ObjectType> class ObjectArray; 00054 template<class ObjectType, 00055 class BaseType = SmartPointer> class ObjectArrayInternal; 00056 template<class ArrayType, 00057 class RowType = ObjectArray<ArrayType> > class ObjectArray2DBase; 00058 template<class ArrayType, 00059 class RowType = ObjectArray<ArrayType> > class ObjectArray2D; 00060 template<class NumericalType> class NumericalArray; 00061 template<class NumericalType, PLONK_BINARYOPFUNCTION(NumericalType, op)> class NumericalArrayBinaryOp; 00062 template<class NumericalType, PLONK_UNARYOPFUNCTION(NumericalType, op)> class NumericalArrayUnaryOp; 00063 template<class NumericalType, 00064 class RowType = NumericalArray<NumericalType> > class NumericalArray2D; 00065 template<class ValueType, class KeyType = Text> class KeyValuePair; 00066 template<class ValueType, class KeyType = Text> class DictionaryInternal; 00067 template<class ValueType, class KeyType = Text> class Dictionary; 00068 template<class ValueType> class LinkedList; 00069 template<class ValueType> class LinkedListElement; 00070 00071 template<class ValueType> class LockFreeQueue; 00072 template<class ValueType> class LockFreeStack; 00073 00074 template<class ValueType> class SimpleQueue; 00075 template<class ValueType> class SimpleStack; 00076 template<class ValueType> class SimpleLinkedList; 00077 template<class ValueType> class SimpleMap; 00078 00079 template<class SampleType> class BreakpointInternal; 00080 template<class SampleType> class BreakpointBase; 00081 template<class SampleType> class BreakpointsInternal; 00082 template<class SampleType> class BreakpointsBase; 00083 template<class SampleType> class WavetableBase; 00084 template<class SampleType> class SignalBase; 00085 00086 template<class ReturnType, 00087 class ArgType1 = void, 00088 class ArgType2 = void, 00089 class ArgType3 = void> class FunctionContainer; 00090 template<class ReturnType, 00091 class ArgType1 = void, 00092 class ArgType2 = void, 00093 class ArgType3 = void> class FunctionContainerProxy; 00094 template<class FunctionType, 00095 class ReturnType, 00096 class ArgType1 = void, 00097 class ArgType2 = void, 00098 class ArgType3 = void> class FunctionCallerInternal; 00099 template<class FunctionType, 00100 class ReturnType, 00101 class ArgType1 = void, 00102 class ArgType2 = void, 00103 class ArgType3 = void> class FunctionProxyCallerInternal; 00104 template<class FunctionType, 00105 class ReturnType, 00106 class ArgType1 = void, 00107 class ArgType2 = void, 00108 class ArgType3 = void> class FunctionCallerBase; 00109 template<class FunctionType, 00110 class ReturnType, 00111 class ArgType1 = void, 00112 class ArgType2 = void, 00113 class ArgType3 = void> class FunctionProxyCallerBase; 00114 template<class FunctionType, 00115 int argumentCount = FunctionType::argumentCount, 00116 bool isProxy = FunctionType::isProxy> class FunctionCaller; 00117 00118 typedef ObjectArray<Dynamic> DynamicArray; 00119 typedef ObjectArray<Dynamic> Dynamics; 00120 00121 typedef NumericalArray<Bool> BoolArray; 00122 typedef NumericalArray<Char> CharArray; 00123 typedef NumericalArray<Short> ShortArray; 00124 typedef NumericalArray<Int> IntArray; 00125 typedef NumericalArray<Int24> Int24Array; 00126 typedef NumericalArray<Long> LongArray; 00127 typedef NumericalArray<LongLong> LongLongArray; 00128 typedef NumericalArray<UnsignedChar> UnsignedCharArray; 00129 typedef UnsignedCharArray ByteArray; 00130 typedef NumericalArray<UnsignedShort> UnsignedShortArray; 00131 typedef NumericalArray<UnsignedInt> UnsignedIntArray; 00132 typedef NumericalArray<UnsignedLong> UnsignedLongArray; 00133 typedef NumericalArray<Float> FloatArray; 00134 typedef NumericalArray<Double> DoubleArray; 00135 00136 typedef NumericalArray<Bool> Bools; 00137 typedef NumericalArray<Char> Chars; 00138 typedef NumericalArray<Short> Shorts; 00139 typedef NumericalArray<Int> Ints; 00140 typedef NumericalArray<Int24> Int24s; 00141 typedef NumericalArray<Long> Longs; 00142 typedef NumericalArray<LongLong> LongLongs; 00143 typedef NumericalArray<UnsignedChar> UnsignedChars; 00144 typedef UnsignedCharArray Bytes; 00145 typedef NumericalArray<UnsignedShort> UnsignedShorts; 00146 typedef NumericalArray<UnsignedInt> UnsignedInts; 00147 typedef NumericalArray<UnsignedLong> UnsignedLongs; 00148 typedef NumericalArray<Float> Floats; 00149 typedef NumericalArray<Double> Doubles; 00150 00151 typedef NumericalArray<Bool> Bool1D; 00152 typedef NumericalArray<Char> Char1D; 00153 typedef NumericalArray<Short> Short1D; 00154 typedef NumericalArray<Int> Int1D; 00155 typedef NumericalArray<Int24> Int241D; 00156 typedef NumericalArray<Long> Long1D; 00157 typedef NumericalArray<UnsignedChar> Unsigned1D; 00158 typedef UnsignedCharArray Byte1D; 00159 typedef NumericalArray<UnsignedShort> UnsignedShort1D; 00160 typedef NumericalArray<UnsignedInt> UnsignedInt1D; 00161 typedef NumericalArray<UnsignedLong> UnsignedLong1D; 00162 typedef NumericalArray<Float> Float1D; 00163 typedef NumericalArray<Double> Double1D; 00164 00165 typedef NumericalArray2D<Char> CharArray2D; 00166 typedef NumericalArray2D<Short> ShortArray2D; 00167 typedef NumericalArray2D<Int> IntArray2D; 00168 typedef NumericalArray2D<Int24> Int24Array2D; 00169 typedef NumericalArray2D<Long> LongArray2D; 00170 typedef NumericalArray2D<LongLong> LongLongArray2D; 00171 typedef NumericalArray2D<UnsignedChar> UnsignedCharArray2D; 00172 typedef NumericalArray2D<UnsignedChar> ByteArray2D; 00173 typedef NumericalArray2D<UnsignedShort> UnsignedShortArray2D; 00174 typedef NumericalArray2D<UnsignedInt> UnsignedIntArray2D; 00175 typedef NumericalArray2D<UnsignedLong> UnsignedLongArray2D; 00176 typedef NumericalArray2D<Float> FloatArray2D; 00177 typedef NumericalArray2D<Double> DoubleArray2D; 00178 00179 typedef NumericalArray2D<Char> Char2D; 00180 typedef NumericalArray2D<Short> Short2D; 00181 typedef NumericalArray2D<Int> Int2D; 00182 typedef NumericalArray2D<Int24> Int242D; 00183 typedef NumericalArray2D<Long> Long2D; 00184 typedef NumericalArray2D<LongLong> LongLong2D; 00185 typedef NumericalArray2D<UnsignedChar> UnsignedChar2D; 00186 typedef NumericalArray2D<UnsignedChar> Byte2D; 00187 typedef NumericalArray2D<UnsignedShort> UnsignedShort2D; 00188 typedef NumericalArray2D<UnsignedInt> UnsignedInt2D; 00189 typedef NumericalArray2D<UnsignedLong> UnsignedLong2D; 00190 typedef NumericalArray2D<Float> Float2D; 00191 typedef NumericalArray2D<Double> Double2D; 00192 00193 typedef NumericalArray<PLONK_TYPE_DEFAULT> Buffer; 00194 typedef NumericalArray2D<PLONK_TYPE_DEFAULT> Buffers; 00195 00196 00197 typedef ObjectArray2D<Text,TextArray> TextArray2D; 00198 typedef ObjectArray2D<Text,TextArray> Text2D; 00199 00200 typedef BreakpointBase<Float> FloatBreakpoint; 00201 typedef BreakpointBase<Double> DoubleBreakpoint; 00202 typedef BreakpointBase<Short> ShortBreakpoint; 00203 typedef BreakpointBase<Int> IntBreakpoint; 00204 typedef BreakpointBase<Int24> Int24Breakpoint; 00205 typedef BreakpointBase<Long> LongBreakpoint; 00206 typedef BreakpointBase<PLONK_TYPE_DEFAULT> Breakpoint; 00207 00208 typedef BreakpointsBase<Float> FloatBreakpoints; 00209 typedef BreakpointsBase<Double> DoubleBreakpoints; 00210 typedef BreakpointsBase<Short> ShortBreakpoints; 00211 typedef BreakpointsBase<Int> IntBreakpoints; 00212 typedef BreakpointsBase<Int24> Int24Breakpoints; 00213 typedef BreakpointsBase<Long> LongBreakpoints; 00214 typedef BreakpointsBase<PLONK_TYPE_DEFAULT> Breakpoints; 00215 00216 typedef WavetableBase<Float> FloatWavetable; 00217 typedef WavetableBase<Double> DoubleWavetable; 00218 typedef WavetableBase<Short> ShortWavetable; 00219 typedef WavetableBase<Int> IntWavetable; 00220 typedef WavetableBase<Int24> Int24Wavetable; 00221 typedef WavetableBase<Long> LongWavetable; 00222 typedef WavetableBase<PLONK_TYPE_DEFAULT> Wavetable; 00223 00224 typedef SignalBase<Float> FloatSignal; 00225 typedef SignalBase<Double> DoubleSignal; 00226 typedef SignalBase<Short> ShortSignal; 00227 typedef SignalBase<Int> IntSignal; 00228 typedef SignalBase<Int24> Int24Signal; 00229 typedef SignalBase<Long> LongSignal; 00230 typedef SignalBase<PLONK_TYPE_DEFAULT> Signal; 00231 00232 typedef AtomicValue<Int> AtomicInt; 00233 typedef AtomicValue<Long> AtomicLong; 00234 typedef AtomicValue<LongLong> AtomicLongLong; 00235 typedef AtomicValue<Float> AtomicFloat; 00236 typedef AtomicValue<Double> AtomicDouble; 00237 typedef AtomicValue<char*> AtomicPointer; 00238 typedef AtomicExtended<char*> AtomicExtendedPointer; 00239 typedef AtomicExtended<Dynamic*> AtomicDynamicPointer; 00240 00241 // fixed types 00242 typedef Fix<Char,6,2> FixI6F2; 00243 typedef Fix<Short,8,8> FixI8F8; 00244 typedef Fix<Short,4,12> FixI4F12; 00245 typedef Fix<Int,16,16> FixI16F16; 00246 typedef Fix<Int,8,24> FixI8F24; 00247 00248 typedef NumericalArray<FixI6F2> FixI6F2Array; 00249 typedef NumericalArray<FixI8F8> FixI8F8Array; 00250 typedef NumericalArray<FixI4F12> FixI4F12Array; 00251 typedef NumericalArray<FixI16F16> FixI16F16Array; 00252 typedef NumericalArray<FixI8F24> FixI8F24Array; 00253 00254 00255 #endif // PLONK_CONTAINERFORWARDDECLARATIONS_H