Skip to content

Commit c4ed70c

Browse files
Merge pull request #34 from J5lx/metis-reader-seeking
Document that metis_reader expects a seekable stream
2 parents 787bdff + 366b4d7 commit c4ed70c

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

doc/html/metis.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,9 @@ <h1><a class="toc-backref" href="#id7">Member Functions</a></h1>
124124
metis_reader(std::istream&amp; in);
125125
</pre>
126126
<p>Constructs a new METIS reader that will retrieve edges from the input
127-
stream <tt class="docutils literal"><span class="pre">in</span></tt>. If any errors are encountered while initially parsing
128-
<tt class="docutils literal"><span class="pre">in</span></tt>, <tt class="docutils literal"><span class="pre">metis_input_exception</span></tt> will be thrown.</p>
127+
stream <tt class="docutils literal"><span class="pre">in</span></tt>. The reader will read from the very beginning of the stream,
128+
and to this end, <tt class="docutils literal"><span class="pre">in</span></tt> must support seeking. If any errors are encountered
129+
while initially parsing <tt class="docutils literal"><span class="pre">in</span></tt>, <tt class="docutils literal"><span class="pre">metis_input_exception</span></tt> will be thrown.</p>
129130
<hr class="docutils" />
130131
<pre class="literal-block">
131132
edge_iterator begin();
@@ -266,7 +267,7 @@ <h1><a class="toc-backref" href="#id10">Member Functions</a></h1>
266267
</div>
267268
<div class="footer">
268269
<hr class="footer" />
269-
Generated on: 2009-05-31 00:21 UTC.
270+
Generated on: 2022-02-19 18:10 UTC.
270271
Generated by <a class="reference external" href="http://docutils.sourceforge.net/">Docutils</a> from <a class="reference external" href="http://docutils.sourceforge.net/rst.html">reStructuredText</a> source.
271272

272273
</div>

doc/metis.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,9 @@ Member Functions
118118
metis_reader(std::istream& in);
119119

120120
Constructs a new METIS reader that will retrieve edges from the input
121-
stream ``in``. If any errors are encountered while initially parsing
122-
``in``, ``metis_input_exception`` will be thrown.
121+
stream ``in``. The reader will read from the very beginning of the stream,
122+
and to this end, ``in`` must support seeking. If any errors are encountered
123+
while initially parsing ``in``, ``metis_input_exception`` will be thrown.
123124

124125
-----------------------------------------------------------------------------
125126

0 commit comments

Comments
 (0)