diff options
author | Murray Cumming <murrayc@murrayc.com> | 2016-04-13 12:49:17 +0200 |
---|---|---|
committer | Murray Cumming <murrayc@murrayc.com> | 2016-04-13 12:49:17 +0200 |
commit | d8d5e09979104b89efa42d08c6401028bb4025a3 (patch) | |
tree | 1e19aa1e51f092d30653d222389adc6c0c6922dc /sigc++/signal_base.h | |
parent | ded414399934a74c47b7480e391edb95dffa6247 (diff) | |
download | sigc++-d8d5e09979104b89efa42d08c6401028bb4025a3.tar.gz |
signal_base.h: Move temp_slot_list to signal.h
Because that is the only place where it is used.
Diffstat (limited to 'sigc++/signal_base.h')
-rw-r--r-- | sigc++/signal_base.h | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/sigc++/signal_base.h b/sigc++/signal_base.h index 8571154..c9d3172 100644 --- a/sigc++/signal_base.h +++ b/sigc++/signal_base.h @@ -212,38 +212,6 @@ struct SIGC_API signal_exec protected: /// The parent sigc::signal_impl object. signal_impl* sig_; - -}; - -/** Temporary slot list used during signal emission. - * Through evolution this class is slightly misnamed. It is now - * an index into the slot_list passed into it. It simply keeps track - * of where the end of this list was at construction, and pretends that's - * the end of your list. This way you may connect during emission without - * inadvertently entering an infinite loop, as well as make other - * modifications to the slot_list at your own risk. - */ -struct temp_slot_list -{ - using slot_list = signal_impl::slot_list; - using iterator = signal_impl::iterator_type; - using const_iterator = signal_impl::const_iterator_type; - - temp_slot_list(slot_list& slots) : slots_(slots) - { - placeholder = slots_.insert(slots_.end(), slot_base()); - } - - ~temp_slot_list() { slots_.erase(placeholder); } - - iterator begin() { return slots_.begin(); } - iterator end() { return placeholder; } - const_iterator begin() const { return slots_.begin(); } - const_iterator end() const { return placeholder; } - -private: - slot_list& slots_; - slot_list::iterator placeholder; }; } /* namespace internal */ |