ADMB Documentation  -a65f1c97
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
d4_io1.cpp
Go to the documentation of this file.
1 
6 #include "fvar.hpp"
7 
8 #ifdef __TURBOC__
9  #pragma hdrstop
10  #include <iostream.h>
11  #include <iomanip.h>
12  #include <fstream.h>
13 #endif
14 
15 #ifdef __ZTC__
16  #include <iostream.hpp>
17  #include <iomanip.hpp>
18  #include <fstream.hpp>
19 #endif
20 
28 {
29  uostream& ostr = const_cast<uostream&>(output);
30  for (int i = values.hslicemin(); i <= values.hslicemax(); ++i)
31  {
32  ostr << values[i];
33  }
34  return ostr;
35 }
42 uistream& operator>>(const uistream& input, const d4_array& values)
43 {
44  uistream& istr = const_cast<uistream&>(input);
45  for (int i = values.hslicemin(); i <= values.hslicemax(); ++i)
46  {
47  istr >> values[i];
48  }
49  return istr;
50 }
int hslicemax() const
Definition: fvar.hpp:5317
Description not yet available.
Definition: fvar.hpp:5161
Description not yet available.
Definition: fvar.hpp:3398
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
values
Definition: adjson.h:22
const int output
Definition: fvar.hpp:9505
istream & operator>>(const istream &input, const d3_array &arr3)
Read values from input stream into arr3.
Definition: d3_io.cpp:60
ostream & operator<<(const ostream &_s, preshowpoint p)
Description not yet available.
Definition: admanip.cpp:48
Description not yet available.
Definition: fvar.hpp:3516
int hslicemin() const
Definition: fvar.hpp:5313