From 2ae88e4817dd1952bbac2f4a3aae52eb102415a4 Mon Sep 17 00:00:00 2001 From: knodlseder <> Date: Tue, 11 Mar 2008 21:15:27 +0000 Subject: [PATCH] initial implementation --- pyext/GNodeArray.i | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+), 0 deletions(-) create mode 100644 pyext/GNodeArray.i diff --git a/pyext/GNodeArray.i b/pyext/GNodeArray.i new file mode 100644 index 0000000..3a93a4a --- /dev/null +++ b/pyext/GNodeArray.i @@ -0,0 +1,44 @@ +/*************************************************************************** + * GNodeArray.i - Array of nodes class SWIG definition * + * ----------------------------------------------------------------------- * + * copyright : (C) 2008 by Jurgen Knodlseder * + * ----------------------------------------------------------------------- * + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + ***************************************************************************/ +/** + * @file GNodeArray.i + * @brief GNodeArray class SWIG file. + * @author J. Knodlseder + */ +%{ +/* Put headers and other declarations here that are needed for compilation */ +#include "GNodeArray.hpp" +%} + + +/***********************************************************************//** + * @class GNodeArray + * + * @brief SWIG interface for the node array class. + ***************************************************************************/ +class GNodeArray { +public: + // Constructors and destructors + GNodeArray(); + GNodeArray(const GNodeArray& array); + ~GNodeArray(); + + // Methods + void nodes(const int& num, const double* array); + void nodes(const GVector& vector); + void set_value(const double& value); + int inx_left(void); + int inx_right(void); + double wgt_left(void); + double wgt_right(void); +}; -- libgit2 0.21.4