~ubuntu-branches/ubuntu/quantal/rheolef/quantal

« back to all changes in this revision

Viewing changes to skit/plib2/polymorphic_array_seq.icc

  • Committer: Bazaar Package Importer
  • Author(s): Pierre Saramito
  • Date: 2011-03-26 08:10:11 UTC
  • mfrom: (4.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20110326081011-378s3slxnhwhn1da
Tags: 5.93-2
* debian/control:
  - "vtk-tcl" dependency changed to "tcl-vtk|vtk-tcl" (closes: #619917)
  - "doxygen" dependency removed                      (closes: #616276)
* debian/rheolef-doc.install : add refman in .info format
* debian/rheolef-doc.doc-base.refman: created for .pdf .html & .info
* debian/rules:
  - clean some obsolete Makefile commandes

Show diffs side-by-side

added added

removed removed

Lines of Context:
69
69
// input/output
70
70
// ----------------------------------------------------------------------------
71
71
template <class T, class V>
72
 
iparstream&
73
 
polymorphic_array_seq_rep<T,V,N>::get (iparstream& ips) {
 
72
idiststream&
 
73
polymorphic_array_seq_rep<T,V,N>::get_values (idiststream& ips) {
74
74
    std::istream& is = ips.is();
75
75
    typedef typename T::template get<data_type> data_get_type;
76
76
    data_get_type get_element;
82
82
}
83
83
template <class T, class V>
84
84
template <class PutFunction>
85
 
oparstream&
86
 
polymorphic_array_seq_rep<T,V,N>::put (oparstream& ops, PutFunction put_element) const {
 
85
odiststream&
 
86
polymorphic_array_seq_rep<T,V,N>::put_values (odiststream& ops, PutFunction put_element) const {
87
87
    std::ostream& os = ops.os();
88
88
    for (size_type i = 0, n = size(); i < n; i++) {
89
89
        put_element (os, operator[](i));
92
92
    return ops;
93
93
}
94
94
template <class T, class V>
95
 
oparstream&
96
 
polymorphic_array_seq_rep<T,V,N>::put (oparstream& ops) const
 
95
odiststream&
 
96
polymorphic_array_seq_rep<T,V,N>::put_values (odiststream& ops) const
97
97
{
98
 
  return put (ops, _polymorphic_array_put_element_type<T>());
 
98
  return put_values (ops, _polymorphic_array_put_element_type<T>());
99
99
}
100
100
template <class T, class V>
101
101
void
102
102
polymorphic_array_seq_rep<T,V,N>::dump (std::string name) const {
103
103
    std::ofstream os (name.c_str());
104
104
    std::cerr << "! file \"" << name << "\" created." << std::endl;
105
 
    oparstream ops(os);
106
 
    put(ops);
 
105
    odiststream ops(os);
 
106
    put_values(ops);
107
107
}
108
108
// ----------------------------------------------------------------------------
109
109
// accessors & modifiers