ADMB Documentation  -a65f1c97
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
model13.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  */
7 #include <admodel.h>
8 
9 void initial_params::restore(const ifstream& ofs)
10  {
11  for (int i=0;i<num_initial_params;i++)
12  {
13  (varsptr[i])->restore_value(ofs);
14  }
15  }
16 
17 void param_init_number::restore_value(const ifstream& ofs)
18  {
19  #ifndef __ZTC__
20  ofs >> dvariable(*this);
21  #else
22  ofs >> *this;
23  #endif
24  }
25 
26 void param_init_vector::restore_value(const ifstream& ofs)
27  {
28  ofs >> dvar_vector(*this);
29  }
30 
32  {
33  ofs >> dvar_vector(*this);
34  }
35 
36 void param_init_matrix::restore_value(const ifstream& ofs)
37  {
38  ofs >> dvar_matrix(*this);
39  }
dvar_vector()
Default constructor.
Definition: fvar_arr.cpp:150
virtual void restore_value(const ifstream &ifs)=0
dvariable()
Default constructor.
Definition: fvar.hpp:1526
virtual void restore_value(const ifstream &ifs)
Definition: model13.cpp:26
Description not yet available.
virtual void restore_value(const ifstream &ifs)
Definition: model13.cpp:36
static int num_initial_params
Definition: admodel.h:836
virtual void restore_value(const ifstream &ifs)
Definition: model13.cpp:31
static void restore(const ifstream &ifs)
Definition: model13.cpp:9
dvar_matrix()
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
Definition: fvar_mat.cpp:15
static adlist_ptr varsptr
Definition: admodel.h:838
virtual void restore_value(const ifstream &ifs)
Definition: model13.cpp:17