ADMB Documentation  11.1.2276
 All Classes Files Functions Variables Typedefs Friends Defines
model13.cpp
Go to the documentation of this file.
00001 /*
00002  * $Id: model13.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 void initial_params::restore(const ifstream& ofs)
00010   {
00011     for (int i=0;i<num_initial_params;i++)
00012     {
00013       (varsptr[i])->restore_value(ofs);
00014     }
00015   }
00016 
00017 void param_init_number::restore_value(const ifstream& ofs)
00018   {
00019     #ifndef __ZTC__
00020       ofs  >> dvariable(*this);
00021     #else
00022       ofs  >> *this;
00023     #endif
00024   }
00025 
00026 void param_init_vector::restore_value(const ifstream& ofs)
00027   {
00028     ofs  >> dvar_vector(*this);
00029   }
00030 
00031 void param_init_bounded_vector::restore_value(const ifstream& ofs)
00032   {
00033     ofs  >> dvar_vector(*this);
00034   }
00035 
00036 void param_init_matrix::restore_value(const ifstream& ofs)
00037   {
00038     ofs  >> dvar_matrix(*this);
00039   }