ADMB Documentation  -a65f1c97
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
d3_io1.cpp
Go to the documentation of this file.
1 
5 // i/o operations for class dmatrix
6 
7 #include "fvar.hpp"
8 
9 #ifdef __TURBOC__
10  #pragma hdrstop
11  #include <iostream.h>
12  #include <iomanip.h>
13  #include <fstream.h>
14 #endif
15 
16 #ifdef __ZTC__
17  #include <iostream.hpp>
18  #include <iomanip.hpp>
19  #include <fstream.hpp>
20 #endif
21 
29 {
30  uostream& uos = const_cast<uostream&>(output);
31  for (int i = arr3.slicemin(); i <= arr3.slicemax(); ++i)
32  {
33  uos << arr3[i];
34  }
35  return uos;
36 }
43 uistream& operator>>(const uistream& input, const d3_array& arr3)
44 {
45  uistream& uis = const_cast<uistream&>(input);
46  for (int i = arr3.slicemin(); i <= arr3.slicemax(); ++i)
47  {
48  uis >> arr3[i];
49  }
50  return uis;
51 }
59 {
60  uostream& uos = const_cast<uostream&>(output);
61  for (int i = varr3.slicemin(); i <= varr3.slicemax(); ++i)
62  {
63  uos << varr3[i];
64  }
65  return uos;
66 }
73 uistream& operator>>(const uistream& input, const dvar3_array& varr3)
74 {
75  uistream& uis = const_cast<uistream&>(input);
76  for (int i = varr3.slicemin(); i <= varr3.slicemax(); ++i)
77  {
78  uis >> varr3[i];
79  }
80  return uis;
81 }
int slicemin() const
Definition: fvar.hpp:4274
int slicemax() const
Definition: fvar.hpp:4275
int slicemax() const
Definition: fvar.hpp:3830
Description not yet available.
Definition: fvar.hpp:3398
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
int slicemin() const
Definition: fvar.hpp:3826
Description not yet available.
Definition: fvar.hpp:4197
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
Description not yet available.
Definition: fvar.hpp:3727