ADMB Documentation  11.1.2497
 All Classes Files Functions Variables Typedefs Friends Defines
model9.cpp
Go to the documentation of this file.
00001 /*
00002  * $Id: model9.cpp 1919 2014-04-22 22:02:01Z johnoel $
00003  *
00004  * Author: David Fournier
00005  * Copyright (c) 2008-2012 Regents of the University of California
00006  */
00007 #include <admodel.h>
00008 
00009 int operator + (int n,data_int v)
00010 {
00011   return n+v.val;
00012 }
00013 
00014 int operator + (data_int v,int n)
00015 {
00016   return n+v.val;
00017 }
00018 
00019 int operator + (data_int v,data_int n)
00020 {
00021   return n.val+v.val;
00022 }
00023 
00024 data_int& data_int::operator=(const int xx)
00025 {
00026   val=xx;
00027   return *this;
00028 }
00029 
00030 ad_integer::ad_integer(const data_int& _d) : d(int(*(data_int*)(&_d))) {}
00031 
00032 /*
00033 index_type::index_type(const data_int& _x)
00034 {
00035   p = new number_index(int((data_int&)(_x)));
00036 }
00037 */