My Project  0.0.16
QUCS Mapping
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
nasolution.h
Go to the documentation of this file.
1 /*
2  * nasolution.h - nodal analysis solution template class definitions
3  *
4  * Copyright (C) 2006 Stefan Jahn <stefan@lkcc.org>
5  *
6  * This is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2, or (at your option)
9  * any later version.
10  *
11  * This software is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this package; see the file COPYING. If not, write to
18  * the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor,
19  * Boston, MA 02110-1301, USA.
20  *
21  * $Id: nasolution.h 1825 2011-03-11 20:42:14Z ela $
22  *
23  */
24 
25 #ifndef __NASOLUTION_H__
26 #define __NASOLUTION_H__
27 
28 /* The solution entry class. */
29 template <class nr_type_t>
30 class naentry
31 {
32  public:
33  naentry ();
34  naentry (const naentry &);
35  naentry (char *, nr_type_t, int);
36  ~naentry ();
37 
38  public:
39  char * n;
40  int current;
41  nr_type_t value;
42 };
43 
44 /* The solution class. */
45 template <class nr_type_t>
47 {
48  public:
49  nasolution ();
50  ~nasolution ();
51  nasolution (const nasolution &);
52 
53  void add (char *, nr_type_t, int);
54  naentry<nr_type_t> * find (char *, int);
55  void clear (void);
56 
57  private:
59 };
60 
61 #include "nasolution.cpp"
62 
63 #endif /* __NASOLUTION_H__ */