From 0ed7a8b68dd73e2b0473b8127aeca99f3bac9061 Mon Sep 17 00:00:00 2001 From: Thomas Grill Date: Wed, 1 Apr 2009 21:13:09 +0000 Subject: cleaned up grill externals - replaced with svn:externals to svn.grrrr.org/ext/trunk/ svn path=/trunk/; revision=10951 --- externals/grill/vasp/source/vecblk.cpp | 60 ---------------------------------- 1 file changed, 60 deletions(-) delete mode 100644 externals/grill/vasp/source/vecblk.cpp (limited to 'externals/grill/vasp/source/vecblk.cpp') 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 - - -/////////////////////////////////////////////////////////////////////////// -// 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); -} - - - -- cgit v1.2.1