ADMB Documentation  11.5.3197
 All Classes Files Functions Variables Typedefs Friends Defines
fvar_op3.cpp
Go to the documentation of this file.
00001 /*
00002  * $Id$
00003  *
00004  * Author: David Fournier
00005  * Copyright (c) 2008-2012 Regents of the University of California
00006  */
00011 // file: fvar_ops.cpp
00012 // operators involving prevariables
00013 #include "fvar.hpp"
00014 
00015 #ifdef __TURBOC__
00016   #pragma hdrstop
00017   #include <iostream.h>
00018 #endif
00019 
00020 #ifdef __ZTC__
00021   #include <iostream.hpp>
00022 #endif
00023 
00024 #include <math.h>
00025 #include <stdio.h>
00026 
00027 void gradfree(dlink *);
00028 
00033 int prevariable::operator==(const double v1) const
00034     {
00035       return(v->x==v1);
00036     }
00037 
00042 int prevariable::operator<=(const double v1) const
00043     {
00044       return(v->x<=v1);
00045     }
00046 
00051 int prevariable::operator<(const double v1) const
00052     {
00053       return(v->x<v1);
00054     }
00055 
00060 int prevariable::operator>(const double v1) const
00061     {
00062       return(v->x>v1);
00063     }
00064 
00069 int prevariable::operator>=(const double v1) const
00070     {
00071       return(v->x >=v1);
00072     }
00073 
00078 int prevariable::operator!=(const double v1) const
00079     {
00080       return(v->x!=v1);
00081     }