aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/vasp/source/env.h
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2009-04-01 21:13:09 +0000
committerThomas Grill <xovo@users.sourceforge.net>2009-04-01 21:13:09 +0000
commit0ed7a8b68dd73e2b0473b8127aeca99f3bac9061 (patch)
tree5c67818b38a5cc2f9caa5ca7f8640ca356adf02b /externals/grill/vasp/source/env.h
parentbb4c7f6a245394d09dac9adfb2efb093d3d98452 (diff)
cleaned up grill externals - replaced with svn:externals to svn.grrrr.org/ext/trunk/
svn path=/trunk/; revision=10951
Diffstat (limited to 'externals/grill/vasp/source/env.h')
-rw-r--r--externals/grill/vasp/source/env.h76
1 files changed, 0 insertions, 76 deletions
diff --git a/externals/grill/vasp/source/env.h b/externals/grill/vasp/source/env.h
deleted file mode 100644
index 11ad68ab..00000000
--- a/externals/grill/vasp/source/env.h
+++ /dev/null
@@ -1,76 +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.
-
-*/
-
-#ifndef __VASP_ENV_H
-#define __VASP_ENV_H
-
-#include "vasp.h"
-
-class Env:
- public flext
-{
-public:
- Env(): cnt(0),pos(NULL),val(NULL) {}
- Env(I argc,const t_atom *argv);
-// Env(const Env &p);
- ~Env();
-
- static BL ChkArgs(I argc,const t_atom *argv);
-
- V MakeList(flext::AtomList &ret) const;
-
- V Clear();
-
- BL Ok() const { return cnt && pos != NULL && val != NULL; }
-
-// friend class Iter;
-
- class Iter
- {
- public:
- Iter(const Env &e);
- V Init(R p);
-
- R ValFwd(R p)
- {
- if(p > npt) UpdateFwd(p);
- return pvl+k*(p-ppt);
- }
-
- R ValBwd(R p)
- {
- if(p < ppt) UpdateBwd(p);
- return pvl+k*(p-ppt);
- }
-
- protected:
- V UpdateFwd(R p);
- V UpdateBwd(R p);
-
- const Env &bp;
- I ix;
- R ppt,npt;
- R pvl,nvl;
- R k;
- };
-
- I Count() const { return cnt; }
- const R *Pos() const { return pos; }
- const R *Val() const { return val; }
- R Pos(I ix) const { return pos[ix]; }
- R Val(I ix) const { return val[ix]; }
-
-protected:
- I cnt;
- R *pos,*val;
-};
-
-#endif
-