GNodeArray.i
1.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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);
};