1 #ifndef GCP_UTIL_RANGE_H
2 #define GCP_UTIL_RANGE_H
11 #include "gcp/util/common/Exception.h"
12 #include "gcp/util/common/LogStream.h"
21 std::ostream& operator<<(std::ostream& os,
54 friend std::ostream& gcp::util::operator << <>
127 errStr.appendMessage(
true,
"Start value has not been initialized\n");
140 errStr.appendMessage(
true,
"End value has not been initialized\n");
149 template <
class Type>
150 std::ostream& operator<<(std::ostream& os,
153 os <<
"(" << range.start_ <<
"-" << range.stop_ <<
")";
161 template <
class Type>
173 template <
class Type>
187 #endif // End #ifndef GCP_UTIL_RANGE_H
Range & operator*=(Type mult)
Definition: Range.h:174
void setStop(Type stop)
Definition: Range.h:115
Range & operator+=(Type incr)
Definition: Range.h:162
Type stop()
Definition: Range.h:137
void setStart(Type start)
Definition: Range.h:106
Type start()
Definition: Range.h:124
Definition: LogStream.h:21
Range()
Definition: Range.h:80
virtual ~Range()
Definition: Range.h:100