Qucs-core  0.0.18
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups 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$
22  *
23  */
24 
25 #ifndef __NASOLUTION_H__
26 #define __NASOLUTION_H__
27 
28 #include "valuelist.h"
29 
30 namespace qucs {
31 
32 /* The solution entry class. */
33 template <class nr_type_t>
34 class naentry
35 {
36  public:
37  naentry ();
38  naentry (const naentry &);
39  naentry (char *, nr_type_t, int);
40  ~naentry ();
41 
42  public:
43  char * n;
44  int current;
45  nr_type_t value;
46 };
47 
48 /* The solution class. */
49 template <class nr_type_t>
51 {
52  public:
53  nasolution ();
54  ~nasolution ();
55  nasolution (const nasolution &);
56 
57  void add (char *, nr_type_t, int);
58  naentry<nr_type_t> * find (char *, int);
59  void clear (void);
60 
61  private:
63 };
64 
65 } // namespace qucs
66 
67 #include "nasolution.cpp"
68 
69 #endif /* __NASOLUTION_H__ */
valuelist< naentry< nr_type_t > > entries
Definition: nasolution.h:62
nr_type_t value
Definition: nasolution.h:45
void clear(void)
Definition: nasolution.cpp:54
naentry< nr_type_t > * find(char *, int)
Definition: nasolution.cpp:67
void add(char *, nr_type_t, int)
Definition: nasolution.cpp:60