ADMB Documentation  -a65f1c97
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
fvar_op3.cpp
Go to the documentation of this file.
1 /*
2  * $Id$
3  *
4  * Author: David Fournier
5  * Copyright (c) 2008-2012 Regents of the University of California
6  */
11 // file: fvar_ops.cpp
12 // operators involving prevariables
13 #include "fvar.hpp"
14 
15 #ifdef __TURBOC__
16  #pragma hdrstop
17  #include <iostream.h>
18 #endif
19 
20 #ifdef __ZTC__
21  #include <iostream.hpp>
22 #endif
23 
24 #include <math.h>
25 #include <stdio.h>
26 
31 int prevariable::operator==(const double v1) const
32  {
33  return(v->x==v1);
34  }
35 
40 int prevariable::operator<=(const double v1) const
41  {
42  return(v->x<=v1);
43  }
44 
49 int prevariable::operator<(const double v1) const
50  {
51  return(v->x<v1);
52  }
53 
58 int prevariable::operator>(const double v1) const
59  {
60  return(v->x>v1);
61  }
62 
67 int prevariable::operator>=(const double v1) const
68  {
69  return(v->x >=v1);
70  }
71 
76 int prevariable::operator!=(const double v1) const
77  {
78  return(v->x!=v1);
79  }
int operator==(const prevariable &v1) const
Description not yet available.
Definition: fvar_opr.cpp:83
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
double_and_int * v
pointer to the data
Definition: fvar.hpp:1333
int operator<=(const prevariable &v1) const
Description not yet available.
Definition: fvar_opr.cpp:92
int operator!=(const prevariable &v1) const
Description not yet available.
Definition: fvar_opr.cpp:128
int operator<(const prevariable &v1) const
Description not yet available.
Definition: fvar_opr.cpp:101
double x
&lt; value of the variable
Definition: fvar.hpp:195
int operator>=(const prevariable &v1) const
Description not yet available.
Definition: fvar_opr.cpp:119
int operator>(const prevariable &v1) const
Description not yet available.
Definition: fvar_opr.cpp:110