My Project
0.0.16
QUCS Mapping
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
DownLoad
QUCS-src
qucs-0.0.16
qucs-core
src
history.h
Go to the documentation of this file.
1
/*
2
* history.h - history class definitions
3
*
4
* Copyright (C) 2006, 2007 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: history.h 1825 2011-03-11 20:42:14Z ela $
22
*
23
*/
24
25
#ifndef __HISTORY_H__
26
#define __HISTORY_H__
27
28
class
history
29
{
30
public
:
31
// constructor and destructor set
32
history
();
33
history
(nr_double_t);
34
history
(
const
history
&);
35
~history
();
36
37
void
append
(nr_double_t);
38
void
setAge
(nr_double_t a) { age = a; }
39
nr_double_t
getAge
(
void
) {
return
age; }
40
nr_double_t
duration
(
void
);
41
nr_double_t
last
(
void
);
42
nr_double_t
first
(
void
);
43
int
leftidx
(
void
);
44
int
unused
(
void
);
45
void
drop
(
void
);
46
void
setTvector
(
tvector<nr_double_t>
* v) { t = v; }
47
tvector<nr_double_t>
*
getTvector
(
void
) {
return
t; }
48
void
self
(void) { t = values; }
49
50
nr_double_t
interpol
(nr_double_t,
int
,
bool
);
51
nr_double_t
nearest
(nr_double_t,
bool
interpolate =
true
);
52
int
seek
(nr_double_t,
int
,
int
, nr_double_t&,
int
);
53
54
private
:
55
bool
sign;
56
nr_double_t age;
57
tvector<nr_double_t>
* values;
58
tvector<nr_double_t>
* t;
59
};
60
61
#endif
/* __HISTORY_H__ */
Generated on Tue Dec 25 2012 14:30:34 for My Project by
1.8.2