$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-commit] svn:boost r79886 - sandbox/boost_docs/subprojects/DebuggerVisualizers
From: filip.konvicka_at_[hidden]
Date: 2012-08-06 03:19:56
Author: fkonvick
Date: 2012-08-06 03:19:55 EDT (Mon, 06 Aug 2012)
New Revision: 79886
URL: http://svn.boost.org/trac/boost/changeset/79886
Log:
Adding new visualizers
Added:
   sandbox/boost_docs/subprojects/DebuggerVisualizers/boost_Bimap.msvc10.vis.txt   (contents, props changed)
   sandbox/boost_docs/subprojects/DebuggerVisualizers/boost__Intrusive_list.msvc8.vis.txt   (contents, props changed)
Text files modified: 
   sandbox/boost_docs/subprojects/DebuggerVisualizers/mic_visualizer.hpp |     7 ++++++-                                 
   1 files changed, 6 insertions(+), 1 deletions(-)
Added: sandbox/boost_docs/subprojects/DebuggerVisualizers/boost_Bimap.msvc10.vis.txt
==============================================================================
--- (empty file)
+++ sandbox/boost_docs/subprojects/DebuggerVisualizers/boost_Bimap.msvc10.vis.txt	2012-08-06 03:19:55 EDT (Mon, 06 Aug 2012)
@@ -0,0 +1,52 @@
+;-----------------------------------------
+; BOOST_VISUALIZER_START boost::bimaps::bimap
+;
+; Copyright Zsolt Kovács 2011 - 2012. Use, modification and distribution are subject
+; to the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt
+; or copy at http://www.boost.org/LICENSE_1_0.txt)
+;
+; @guid     CG808B31-3031-11DE-8C35-0812300C9B66
+; @platform msvc-8, msvc-9, msvc-10
+; @version  1.0
+; @author   Zsolt Kovács
+; @email    kovacs dot zsolt at gmail dot com
+;
+; Usage
+; =====
+; Copy contents into [Visualizer] section of autoexp.dat along with visualizers of boost::multi_index_container found in boost__MI.msvc8.vis.txt.
+; Visualization must be enabled in the code for each type at global namespace:
+;
+;   VISUALIZE_MULTI_INDEX_CONTAINER(TypeName::core_type);
+;
+; The macro is defined in the accompanying header file mic_visualizer.hpp.
+;
+; Alternatively after defning the following macro:
+;   #define VISUALIZE_BIMAP(TypeName) VISUALIZE_MULTI_INDEX_CONTAINER(TypeName::core_type);
+;
+; The two expressions will be equivalent:
+;   VISUALIZE_MULTI_INDEX_CONTAINER(TypeName::core_type);
+;   VISUALIZE_BIMAP(TypeName);
+
+;---------------------------------------------------
+; boost::bimaps::bimap - Bimap
+boost::bimaps::bimap<*,*,*,*,*> {
+	preview (#($c.core.node_count, " items (Bimap)"))
+	children (
+		#( #(core: $c.core)
+		 , #(original_contents_without_visualizer: [$c,!])
+		)
+	)
+}
+
+boost::bimaps::relation::mutant_relation<*,*,*,*>{
+    preview(#("( ", $c.left, ", ", $c.right, " )"))
+    children(
+        #( #(left:  $c.left)
+         , #(right: $c.right)
+         , #(original_contents_without_visualizer: [$c,!])
+        )
+    )
+}
+
+; BOOST_VISUALIZER_END boost::bimaps::bimap
+;-----------------------------------------
Added: sandbox/boost_docs/subprojects/DebuggerVisualizers/boost__Intrusive_list.msvc8.vis.txt
==============================================================================
--- (empty file)
+++ sandbox/boost_docs/subprojects/DebuggerVisualizers/boost__Intrusive_list.msvc8.vis.txt	2012-08-06 03:19:55 EDT (Mon, 06 Aug 2012)
@@ -0,0 +1,55 @@
+;-----------------------------------------
+; BOOST_VISUALIZER_START boost::intrusive::list
+;
+; Copyright Boris [monade] 2010. Use, modification and distribution are subject
+; to the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt
+; or copy at http://www.boost.org/LICENSE_1_0.txt)
+;
+; @guid     CF808B30-3031-11DE-8C30-0800200C9B66
+; @platform msvc-8, msvc-9, msvc-10
+; @version  1.0
+; @author   Boris [monade]
+; @email    monade at gmail dot com
+;
+; Usage
+; =====
+;
+; Copy & paste the following into autoexp.dat.
+
+;------------------------------------------------------------------------------
+;  boost::intrusive::list
+;------------------------------------------------------------------------------
+boost::intrusive::list<*,*>{
+	children
+	(
+		#list
+		(
+			head: $c.data_.root_plus_size_.root_.next_,
+			size: $c.data_.root_plus_size_.size_,
+			next: next_
+		) : *(($T1 *) (&$e))
+	)
+	preview
+	(
+		#(
+			"[", $e.data_.root_plus_size_.size_, "](",
+			#list
+			(
+				head: $c.data_.root_plus_size_.root_.next_,
+				size: $c.data_.root_plus_size_.size_,
+				next: next_
+			) : *(($T1 *) (&$e))
+			")"
+		)
+	)
+}
+boost::intrusive::list_iterator<boost::intrusive::list_impl<boost::intrusive::listopt<boost::intrusive::detail::base_hook_traits<*,boost::intrusive::list_node_traits<void*>,*,boost::intrusive::default_tag,*>,unsigned int,*> >,*>{
+	preview ( #(*($T1*)($e.members_.nodeptr_)))
+	children ( #(ptr: *($T1*)($e.members_.nodeptr_)))
+}
+;------------------------------------------------------------------------------
+;  boost::intrusive::list
+;------------------------------------------------------------------------------
+
+; BOOST_VISUALIZER_END boost::intrusive::list
+;-----------------------------------------
Modified: sandbox/boost_docs/subprojects/DebuggerVisualizers/mic_visualizer.hpp
==============================================================================
--- sandbox/boost_docs/subprojects/DebuggerVisualizers/mic_visualizer.hpp	(original)
+++ sandbox/boost_docs/subprojects/DebuggerVisualizers/mic_visualizer.hpp	2012-08-06 03:19:55 EDT (Mon, 06 Aug 2012)
@@ -1,4 +1,5 @@
-// Copyright Filip Konvièka 2007 - 2009. Use, modification and distribution are subject
+// Copyright Filip Konvièka 2007 - 2012, Zsolt Kovacs 2011 - 2012.
+// Use, modification and distribution are subject
 // to the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt
 // or copy at http://www.boost.org/LICENSE_1_0.txt)
 
@@ -163,5 +164,9 @@
 
 #endif
 
+/* Bimap visualizer uses the MIC visualizer */
+#define VISUALIZE_BIMAP(TypeName) \
+    VISUALIZE_MULTI_INDEX_CONTAINER(TypeName:: <F4>core_type);
+
 #endif