Commit 2ae88e4817dd1952bbac2f4a3aae52eb102415a4
1 parent
a781c7d3
initial implementation
Showing
1 changed file
with
44 additions
and
0 deletions
pyext/GNodeArray.i
0 → 100644
| 1 | +/*************************************************************************** | ||
| 2 | + * GNodeArray.i - Array of nodes class SWIG definition * | ||
| 3 | + * ----------------------------------------------------------------------- * | ||
| 4 | + * copyright : (C) 2008 by Jurgen Knodlseder * | ||
| 5 | + * ----------------------------------------------------------------------- * | ||
| 6 | + * * | ||
| 7 | + * This program is free software; you can redistribute it and/or modify * | ||
| 8 | + * it under the terms of the GNU General Public License as published by * | ||
| 9 | + * the Free Software Foundation; either version 2 of the License, or * | ||
| 10 | + * (at your option) any later version. * | ||
| 11 | + * * | ||
| 12 | + ***************************************************************************/ | ||
| 13 | +/** | ||
| 14 | + * @file GNodeArray.i | ||
| 15 | + * @brief GNodeArray class SWIG file. | ||
| 16 | + * @author J. Knodlseder | ||
| 17 | + */ | ||
| 18 | +%{ | ||
| 19 | +/* Put headers and other declarations here that are needed for compilation */ | ||
| 20 | +#include "GNodeArray.hpp" | ||
| 21 | +%} | ||
| 22 | + | ||
| 23 | + | ||
| 24 | +/***********************************************************************//** | ||
| 25 | + * @class GNodeArray | ||
| 26 | + * | ||
| 27 | + * @brief SWIG interface for the node array class. | ||
| 28 | + ***************************************************************************/ | ||
| 29 | +class GNodeArray { | ||
| 30 | +public: | ||
| 31 | + // Constructors and destructors | ||
| 32 | + GNodeArray(); | ||
| 33 | + GNodeArray(const GNodeArray& array); | ||
| 34 | + ~GNodeArray(); | ||
| 35 | + | ||
| 36 | + // Methods | ||
| 37 | + void nodes(const int& num, const double* array); | ||
| 38 | + void nodes(const GVector& vector); | ||
| 39 | + void set_value(const double& value); | ||
| 40 | + int inx_left(void); | ||
| 41 | + int inx_right(void); | ||
| 42 | + double wgt_left(void); | ||
| 43 | + double wgt_right(void); | ||
| 44 | +}; |