From 3bf081fcf993b1bf5d0ad4b36b192257aa8d8fe3 Mon Sep 17 00:00:00 2001 From: Raoul Gough Date: Fri, 31 Oct 2003 23:24:17 +0000 Subject: [PATCH] Rename notification functions (should be more meaningful for client code) [SVN r20580] --- .../python/suite/indexing/container_proxy.hpp | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/include/boost/python/suite/indexing/container_proxy.hpp b/include/boost/python/suite/indexing/container_proxy.hpp index 563d93a9..d35ee63c 100755 --- a/include/boost/python/suite/indexing/container_proxy.hpp +++ b/include/boost/python/suite/indexing/container_proxy.hpp @@ -1,4 +1,3 @@ -// // Header file container_proxy.hpp // // Copyright (c) 2003 Raoul M. Gough @@ -155,11 +154,11 @@ namespace boost { namespace python { namespace indexing { void detach_proxies (size_type from, size_type to); // Call before overwriting element(s) in the raw container - void detach_and_forget_proxies (size_type from, size_type to); - // Call before erasing elements from the raw container + void prepare_erase (size_type from, size_type to); + // Call before erasing elements directly from the raw container - void insert_proxies (size_type from, size_type to); - // Call after inserting elements into the raw container + void notify_insertion (size_type from, size_type to); + // Call after inserting elements directly into the raw container public: // Convenient replacement of elements (automatic proxy detachment) @@ -379,7 +378,7 @@ namespace boost { namespace python { namespace indexing { assert (to.ptr == this); // Detach and remove the proxies for the about-to-be-erased elements - detach_and_forget_proxies (from.index, to.index); + prepare_erase (from.index, to.index); // Erase the elements from the real container raw_iterator result @@ -539,7 +538,7 @@ namespace boost { namespace python { namespace indexing { template void container_proxy - ::detach_and_forget_proxies (size_type from_index, size_type to_index) + ::prepare_erase (size_type from_index, size_type to_index) { difference_type deleting = to_index - from_index; pointer_iterator erase_begin = m_proxies.begin() + from_index; @@ -556,7 +555,7 @@ namespace boost { namespace python { namespace indexing { } template - void container_proxy::insert_proxies ( + void container_proxy::notify_insertion ( size_type from_index, size_type to_index) { size_type count = to_index - from_index;