chunk_generator.hh (10373:342348537a53) | chunk_generator.hh (10792:11e66ec059c6) |
---|---|
1/* 2 * Copyright (c) 2001-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 109 unchanged lines hidden (view full) --- 118 /** 119 * Are we done? That is, did the last call to next() advance 120 * past the end of the region? 121 * @return True if yes, false if more to go. 122 */ 123 bool done() const { return (curSize == 0); } 124 125 /** | 1/* 2 * Copyright (c) 2001-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 109 unchanged lines hidden (view full) --- 118 /** 119 * Are we done? That is, did the last call to next() advance 120 * past the end of the region? 121 * @return True if yes, false if more to go. 122 */ 123 bool done() const { return (curSize == 0); } 124 125 /** |
126 * Is this the last chunk? 127 * @return True if yes, false if more to go. 128 */ 129 bool last() const { return (sizeLeft == 0); } 130 131 /** |
|
126 * Advance generator to next chunk. 127 * @return True if successful, false if unsuccessful 128 * (because we were at the last chunk). 129 */ 130 bool 131 next() 132 { 133 if (sizeLeft == 0) { --- 13 unchanged lines hidden --- | 132 * Advance generator to next chunk. 133 * @return True if successful, false if unsuccessful 134 * (because we were at the last chunk). 135 */ 136 bool 137 next() 138 { 139 if (sizeLeft == 0) { --- 13 unchanged lines hidden --- |