diff options
author | Daniel Burrows <dburrows@debian.org> | 2009-06-01 21:19:54 -0700 |
---|---|---|
committer | Daniel Burrows <dburrows@debian.org> | 2009-06-01 21:19:54 -0700 |
commit | 3f3ca72dcb2bd744ea0aa2c08dafd3fd2ff27ed7 (patch) | |
tree | 04ec2298cdbd2340314c0a7403116261c04e9939 /src/generic/problemresolver | |
parent | 6d21e3fe074c9728c0229e6222d5a2de6dcea0d4 (diff) | |
download | aptitude-3f3ca72dcb2bd744ea0aa2c08dafd3fd2ff27ed7.tar.gz |
Make choices mutable, allowing their IDs to be set.
This seems more attractive than having a bunch of "copy and change"
methods.
Diffstat (limited to 'src/generic/problemresolver')
-rw-r--r-- | src/generic/problemresolver/choice.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/generic/problemresolver/choice.h b/src/generic/problemresolver/choice.h index c3da99eb..2ea8de7e 100644 --- a/src/generic/problemresolver/choice.h +++ b/src/generic/problemresolver/choice.h @@ -301,6 +301,12 @@ public: return rval; } + /** \brief Update the ID of this choice. */ + void set_id(int new_id) + { + id = new_id; + } + int get_id() const { return id; } type get_type() const { return tp; } |