ADMB Documentation  -a65f1c97
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
f4_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 = varr4.hslicemin(); i <= varr4.hslicemax(); ++i)
31  {
32  ostr << varr4[i];
33  }
34  return ostr;
35 }
42 uistream& operator>>(const uistream& input, const dvar4_array &varr4)
43 {
44  uistream& istr = const_cast<uistream&>(input);
45  for (int i = varr4.hslicemin(); i <= varr4.hslicemax(); ++i)
46  {
47  istr >> varr4[i];
48  }
49  return istr;
50 }
Description not yet available.
Definition: fvar.hpp:5433
Description not yet available.
Definition: fvar.hpp:3398
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
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
int hslicemax() const
Definition: fvar.hpp:5624
Description not yet available.
Definition: fvar.hpp:3516
int hslicemin() const
Definition: fvar.hpp:5623