projects
/
platform
/
upstream
/
libzypp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
228dbf5
)
Add DefaultIntegral::reset
author
Michael Andres
<ma@suse.de>
Mon, 11 Oct 2010 15:02:35 +0000
(17:02 +0200)
committer
Michael Andres
<ma@suse.de>
Mon, 11 Oct 2010 15:02:35 +0000
(17:02 +0200)
zypp/base/DefaultIntegral.h
patch
|
blob
|
history
diff --git
a/zypp/base/DefaultIntegral.h
b/zypp/base/DefaultIntegral.h
index 381d541c81210ae6cb7478f83ac34ed0c894b639..4ddf774d050369564253a4653837555fb4274937 100644
(file)
--- a/
zypp/base/DefaultIntegral.h
+++ b/
zypp/base/DefaultIntegral.h
@@
-57,6
+57,9
@@
namespace zypp
operator _Tp () const { return get(); }
//@}
+ /** Reset to the defined initial value. */
+ DefaultIntegral & reset() { _val = _Initial; return *this; }
+
/** \name Arithmetic operations.
* \c + \c - \c * \c / are provided via conversion to _Tp.
*/