Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r56577 - in sandbox/statistics/fusion: . boost boost/statistics boost/statistics/detail boost/statistics/detail/fusion boost/statistics/detail/fusion/functor libs libs/statistics libs/statistics/detail libs/statistics/detail/fusion libs/statistics/detail/fusion/doc
From: erwann.rogard_at_[hidden]
Date: 2009-10-04 14:33:52


Author: e_r
Date: 2009-10-04 14:33:51 EDT (Sun, 04 Oct 2009)
New Revision: 56577
URL: http://svn.boost.org/trac/boost/changeset/56577

Log:
m
Added:
   sandbox/statistics/fusion/
   sandbox/statistics/fusion/boost/
   sandbox/statistics/fusion/boost/statistics/
   sandbox/statistics/fusion/boost/statistics/detail/
   sandbox/statistics/fusion/boost/statistics/detail/fusion/
   sandbox/statistics/fusion/boost/statistics/detail/fusion/functor/
   sandbox/statistics/fusion/boost/statistics/detail/fusion/functor/at_key.hpp (contents, props changed)
   sandbox/statistics/fusion/libs/
   sandbox/statistics/fusion/libs/statistics/
   sandbox/statistics/fusion/libs/statistics/detail/
   sandbox/statistics/fusion/libs/statistics/detail/fusion/
   sandbox/statistics/fusion/libs/statistics/detail/fusion/doc/
   sandbox/statistics/fusion/libs/statistics/detail/fusion/doc/readme.txt (contents, props changed)

Added: sandbox/statistics/fusion/boost/statistics/detail/fusion/functor/at_key.hpp
==============================================================================
--- (empty file)
+++ sandbox/statistics/fusion/boost/statistics/detail/fusion/functor/at_key.hpp 2009-10-04 14:33:51 EDT (Sun, 04 Oct 2009)
@@ -0,0 +1,61 @@
+//////////////////////////////////////////////////////////////////////////////
+// statistics::detail::fusion::functor::at_key.hpp //
+// //
+// (C) Copyright 2009 Erwann Rogard //
+// 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) //
+//////////////////////////////////////////////////////////////////////////////
+#ifndef BOOST_STATISTICS_DETAIL_FUSION_FUNCTOR_AT_KEY_HPP_ER_2009
+#define BOOST_STATISTICS_DETAIL_FUSION_FUNCTOR_AT_KEY_HPP_ER_2009
+#include <boost/utility/result_of.hpp>
+#include <boost/fusion/sequence/intrinsic/at_key.hpp>
+#include <boost/fusion/include/at_key.hpp>
+
+namespace boost{
+namespace statistics{
+namespace detail{
+namespace fusion{
+namespace functor{
+
+
+ template<typename K>
+ class at_key{
+
+ // M has to be a fusion::map
+ template<typename M>
+ struct result_impl
+ : boost::fusion::result_of::at_key<M, K>{};
+
+ public:
+
+ template<typename M>
+ struct result{};
+
+ template<typename M>
+ struct result<at_key(M&)>
+ : result_impl<M>{};
+
+ template<typename M>
+ typename result_impl<const M>::type
+ operator()(const M& p)const{
+ return boost::fusion::at_key<K>(p);
+ }
+
+ template<typename M>
+ typename result_impl<M>::type
+ operator()(M& p)const{
+ return boost::fusion::at_key<K>(p);
+ }
+
+ };
+
+
+}// functor
+}// fusion
+}// detail
+}// statistics
+}// boost
+
+#endif
+

Added: sandbox/statistics/fusion/libs/statistics/detail/fusion/doc/readme.txt
==============================================================================
--- (empty file)
+++ sandbox/statistics/fusion/libs/statistics/detail/fusion/doc/readme.txt 2009-10-04 14:33:51 EDT (Sun, 04 Oct 2009)
@@ -0,0 +1,28 @@
+//////////////////////////////////////////////////////////////////////////////
+// statistics::detail::fusion::doc::readme //
+// //
+// (C) Copyright 2009 Erwann Rogard //
+// 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) //
+//////////////////////////////////////////////////////////////////////////////
+
+[ Contact ]
+
+erwann.rogard_at_[hidden]
+
+[ Overview ]
+
+These are small C++ tools that exploit Boost.Fusion and are used throughout the sandbox/statistics package
+
+[ Compiler ]
+
+gcc version i686-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1
+
+[ Dependencies ]
+
+boost_1_39_0
+
+[ Related ]
+
+http://www.boost.org/doc/libs/1_40_0/libs/fusion/index.html


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