TF++, Miscellaneous classes and modules in C++:
fortranaffio.h
Go to the documentation of this file.
1 
37 // include guard
38 #ifndef TF_FORTRANAFFIO_H_VERSION
39 
40 #define TF_FORTRANAFFIO_H_VERSION \
41  "TF_FORTRANAFFIO_H V1.2"
42 
43 #include <aff/array.h>
44 #include <aff/series.h>
45 #include <aff/iterator.h>
46 #include <tfxx/fortranio.h>
47 
48 namespace tfxx {
49  namespace fortranio {
50 
52  template<class C>
54  {
55  aff::Iterator<C> i(s);
56  while (i.valid()) { is >> *i; ++i; }
57  }
58 
60  template<class T>
63  {
64  readaff(is, s);
65  return(is);
66  }
67 
69  template<class T>
72  {
73  readaff(is, s);
74  return(is);
75  }
76 
77  } // namespace fortranio
78 } // namespace tfxx
79 
80 #endif // TF_FORTRANAFFIO_H_VERSION (includeguard)
81 
82 /* ----- END OF fortranaffio.h ----- */
void readaff(tfxx::fortranio::FortranBinInput &is, C &s)
read an aff container from the file
Definition: fortranaffio.h:53
tfxx::fortranio::FortranBinInput & operator>>(tfxx::fortranio::FortranBinInput &fi, blitz::Array< T, N > &a)
Input operator template for class FortranBinInput and blitz.
read FORTRAN binary data ,This class reads FORTRAN binary data. FORTRAN binary data is always written...
Definition: fortranio.h:137
Namespace containing all code of library libtfxx.