Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r78419 - sandbox/variadic_templates/boost/composite_storage/pack/multiple_dispatch
From: cppljevans_at_[hidden]
Date: 2012-05-10 22:28:03


Author: cppljevans
Date: 2012-05-10 22:28:02 EDT (Thu, 10 May 2012)
New Revision: 78419
URL: http://svn.boost.org/trac/boost/changeset/78419

Log:
reifier_virtfun seemed a better name since
the _virtfun suffix is meant to suggest the
implementation method and the previous
suffix, _visitor, seemed too general.

Added:
   sandbox/variadic_templates/boost/composite_storage/pack/multiple_dispatch/reifier_virtfun.hpp
      - copied, changed from r78360, /sandbox/variadic_templates/boost/composite_storage/pack/multiple_dispatch/reifier_visitor.hpp
Text files modified:
   sandbox/variadic_templates/boost/composite_storage/pack/multiple_dispatch/reifier_virtfun.hpp | 26 +++++++++++++-------------
   1 files changed, 13 insertions(+), 13 deletions(-)

Copied: sandbox/variadic_templates/boost/composite_storage/pack/multiple_dispatch/reifier_virtfun.hpp (from r78360, /sandbox/variadic_templates/boost/composite_storage/pack/multiple_dispatch/reifier_visitor.hpp)
==============================================================================
--- /sandbox/variadic_templates/boost/composite_storage/pack/multiple_dispatch/reifier_visitor.hpp (original)
+++ sandbox/variadic_templates/boost/composite_storage/pack/multiple_dispatch/reifier_virtfun.hpp 2012-05-10 22:28:02 EDT (Thu, 10 May 2012)
@@ -1,6 +1,6 @@
 //
-#ifndef BOOST_COMPOSITE_STORAGE_PACK_MULTIPLE_DISPATCH_REIFIER_VISITOR_HPP_INCLUDED
-#define BOOST_COMPOSITE_STORAGE_PACK_MULTIPLE_DISPATCH_REIFIER_VISITOR_HPP_INCLUDED
+#ifndef BOOST_COMPOSITE_STORAGE_PACK_MULTIPLE_DISPATCH_REIFIER_VIRTFUN_HPP_INCLUDED
+#define BOOST_COMPOSITE_STORAGE_PACK_MULTIPLE_DISPATCH_REIFIER_VIRTFUN_HPP_INCLUDED
 // (C) Copyright Larry Evans 2010.
 //
 // Permission to copy, use, modify, sell and distribute this software
@@ -203,7 +203,7 @@
   < typename ReifyApply
   , typename ArgsConcreteAbstract
>
-struct reifier_visitor
+struct reifier_virtfun
 ;
   template
   < typename ReifyApply
@@ -211,7 +211,7 @@
   , typename HeadAbstract
   , typename... TailAbstract
>
-struct reifier_visitor
+struct reifier_virtfun
   < ReifyApply
   , ptrs_target_source //container of pointers.
     < mpl::package
@@ -221,6 +221,13 @@
     , TailAbstract...
>
>
+ /**@brief
+ * Uses VIRTual FUNctions (the visitor design pattern, in superclass)
+ * to convert HeadAbstract* to its concrete
+ * subclass pointer, store pointer in a
+ * ptrs_target_source, and then call
+ * a ReifyApply with the modified ptrs_target_source.
+ */
 : reifier_base
   < ReifyApply
   , ptrs_target_source //container of pointers.
@@ -231,13 +238,6 @@
     , TailAbstract...
>
>
- /**@brief
- * Uses visitor design pattern (in superclass)
- * to convert HeadAbstract* to its concrete
- * subclass pointer, store pointer in a
- * ptrs_target_source, and then call
- * a ReifyApply with the modified ptrs_target_source.
- */
 , reifier_visit_concrete_seq
   //Uses CRTP:
   // http://www.informit.com/articles/article.aspx?p=31473&seqNum=3
@@ -249,7 +249,7 @@
   //
   < mpl::pair
     < typename ReifyApply::result_type
- , reifier_visitor
+ , reifier_virtfun
       < ReifyApply
       , ptrs_target_source
         < mpl::package
@@ -284,7 +284,7 @@
>
     super_t
     ;
- reifier_visitor
+ reifier_virtfun
       ( ReifyApply const& a_reify
       , now_tar_src_type* a_ptrs_tar_src
       )


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk