Revision 1106 trunk/src/tools99/ad_cif.cpp

ad_cif.cpp (revision 1106)
2 2
 * $Id$
3 3
 *
4 4
 * Author: David Fournier
5
 * Copyright (c) 2008-2012 Regents of the University of California 
5
 * Copyright (c) 2008-2012 Regents of the University of California
6 6
 */
7 7
#include <fvar.hpp>
8 8
#include "cifstrem.h"
......
24 24
  for (int i= z.indexmin(); i <= z.indexmax(); i++)
25 25
  {
26 26
    *this >> z[i];
27
  } 
27
  }
28 28
  return *this;
29 29
}
30 30

  
......
40 40
  for (int i= z.indexmin(); i <= z.indexmax(); i++)
41 41
  {
42 42
    *this >> z[i];
43
  } 
43
  }
44 44
  return *this;
45 45
}
46 46

  
47 47

  
48 48
cifstream& operator>>(cifstream& istr, const imatrix& z)
49
{ 
49
{
50 50
  if (allocated(z))
51 51
  for (int i= z.rowmin(); i <= z.rowmax(); i++)
52
  { 
52
  {
53 53
    istr >> z[i];
54 54
  }
55 55
  return istr;
......
61 61
  for (int i= z.indexmin(); i <= z.indexmax(); i++)
62 62
  {
63 63
    *this >> z[i];
64
  } 
64
  }
65 65
  return *this;
66 66
}
67 67

  
68 68
cifstream& operator>>(cifstream& istr, const dmatrix& z)
69
{ 
69
{
70 70
  if (allocated(z))
71 71
  for (int i= z.rowmin(); i <= z.rowmax(); i++)
72
  { 
72
  {
73 73
    istr >> z[i];
74 74
  }
75 75
  return istr;
76 76
}
77 77

  
78 78
cifstream& operator>>(cifstream& istr, const d3_array& z)
79
{ 
79
{
80 80
  if (allocated(z))
81 81
  for (int i= z.slicemin(); i <= z.slicemax(); i++)
82
  { 
82
  {
83 83
    istr >> z[i];
84 84
  }
85 85
  return istr;
86 86
}
87 87

  
88 88
cifstream& operator>>(cifstream& istr, const d5_array& z)
89
{ 
89
{
90 90
  if (allocated(z))
91 91
  for (int i= z.indexmin(); i <= z.indexmax(); i++)
92
  { 
92
  {
93 93
    istr >> z[i];
94 94
  }
95 95
  return istr;
96 96
}
97 97

  
98 98
cifstream& operator>>(cifstream& istr, const i4_array& z)
99
{ 
99
{
100 100
  if (allocated(z))
101 101
  for (int i= z.indexmin(); i <= z.indexmax(); i++)
102
  { 
102
  {
103 103
    istr >> z[i];
104 104
  }
105 105
  return istr;
106 106
}
107 107

  
108 108
cifstream& operator>>(cifstream& istr, const i3_array& z)
109
{ 
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff