Skip to content
Snippets Groups Projects
Commit 57dad520 authored by Robert Klöfkorn's avatar Robert Klöfkorn
Browse files

added method for bug fix in borderBorder communication.


git-svn-id: https://dune.mathematik.uni-freiburg.de/svn/alugrid/trunk@1009 0d966ed9-3843-0410-af09-ebfb50bd7c74
parent 930031d7
No related branches found
No related tags found
No related merge requests found
...@@ -61,6 +61,11 @@ public : ...@@ -61,6 +61,11 @@ public :
inline void clear() { _wb = 0; _rb = 0; } inline void clear() { _wb = 0; _rb = 0; }
// reset read position // reset read position
inline void resetReadPosition() { _rb = 0; } inline void resetReadPosition() { _rb = 0; }
// return's true if size > 0 and read position is zero
// i.e. a read othe stream will result some valid data
inline bool validToRead () const { return (_wb > 0) && (_rb == 0); }
// return size of bytes allready written to stream // return size of bytes allready written to stream
inline int size() const { return _wb; } inline int size() const { return _wb; }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment