diff options
Diffstat (limited to 'externals/grill/vasp/source/vecblk.cpp')
-rw-r--r-- | externals/grill/vasp/source/vecblk.cpp | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/externals/grill/vasp/source/vecblk.cpp b/externals/grill/vasp/source/vecblk.cpp deleted file mode 100644 index 80917237..00000000 --- a/externals/grill/vasp/source/vecblk.cpp +++ /dev/null @@ -1,60 +0,0 @@ -/* - -VASP modular - vector assembling signal processor / objects for Max/MSP and PD - -Copyright (c) 2002 Thomas Grill (xovo@gmx.net) -For information on usage and redistribution, and for a DISCLAIMER OF ALL -WARRANTIES, see the file, "license.txt," in this distribution. - -*/ - -#include "main.h" -#include "vecblk.h" -//#include <math.h> - - -/////////////////////////////////////////////////////////////////////////// -// VecBlock class -/////////////////////////////////////////////////////////////////////////// - -VecBlock::VecBlock(BL cx,I msrc,I mdst,I marg,I blarg): - cplx(cx),asrc(msrc),barg(blarg),aarg(marg*blarg),adst(mdst) -{ - I i,all = asrc+aarg*blarg+adst; - vecs = new VBuffer *[all]; - for(i = 0; i < all; ++i) vecs[i] = NULL; -} - -VecBlock::~VecBlock() -{ - if(vecs) { - I all = asrc+aarg*barg+adst; - for(I i = 0; i < all; ++i) - if(vecs[i]) delete vecs[i]; - delete[] vecs; - } -} - -Vasp *VecBlock::_DstVasp(I n) -{ - Vasp *ret = new Vasp; - ret->Frames(Frames()); - for(I i = 0; i < n; ++i) ret->AddVector(Vasp::Ref(*_Dst(i))); - return ret; -} - -Vasp *VecBlock::_SrcVasp(I n) -{ - Vasp *ret = new Vasp; - ret->Frames(Frames()); - for(I i = 0; i < n; ++i) ret->AddVector(Vasp::Ref(*_Src(i))); - return ret; -} - -Vasp *VecBlock::_ResVasp(I n) -{ - return _Dst(0)?_DstVasp(n):_SrcVasp(n); -} - - - |