ADMB Documentation  11.5.3197
 All Classes Files Functions Variables Typedefs Friends Defines
model9.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  */
00007 #include <fvar.hpp>
00008 #include <admodel.h>
00009 
00010 int operator + (int n,data_int v)
00011 {
00012   return n+v.val;
00013 }
00014 
00015 int operator + (data_int v,int n)
00016 {
00017   return n+v.val;
00018 }
00019 
00020 int operator + (data_int v,data_int n)
00021 {
00022   return n.val+v.val;
00023 }
00024 
00025 data_int& data_int::operator=(const int xx)
00026 {
00027   val=xx;
00028   return *this;
00029 }
00030 
00031 ad_integer::ad_integer(const data_int& _d) : d(int(*(data_int*)(&_d))) {}
00032 /*
00033 
00034 index_type::index_type(const data_int& _x)
00035 {
00036   p = new number_index(int((data_int&)(_x)));
00037 }
00038 */